Jump to content
Not connected, Your IP: 3.19.56.45
cboettcher

Server names as primary keys?

Recommended Posts

I'd like to build a simple, small client that uses the status endpoint. In order to avoid abusing the API, I'd like to keep servers in a local database, only refreshing it every hour or so.

However, I'm not sure what I should be using as a primary key. My initial thought is to use the server name.

But do server names ever change? What other aspects of a server, if any, are immutable?

Share this post


Link to post

You're not the first one to write things using the AirVPN API, so you can maybe reuse some code and/or info. I'd love to see more activity in this direction.

9 hours ago, cboettcher said:

But do server names ever change? What other aspects of a server, if any, are immutable?


Server names don't change unless announced, so you can use that as primary.

NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...