DO Ideas 2

Allow lookup by hostname in Droplet API.

My applications are aware of which datacenter they are located in so that they can contact the correct DB instance located in the same datacenter. Currently I have to get all of my droplets and then loop through to find the one that has this droplet's hostname. When my application grows to several hundred instances, this setup wont be very ideal causing unnecessary load on both my applications and the DO API. Ideally I would rather make a GET call using the current droplet's Hostname as a parameter, rather than the ID of the droplet (which I don't have access to on this machine that just started itself).

I think that by adding this additional call (and not removing current functionality), the API will have much more potential for auto scaling applications.

  • Aaron
  • Sep 11 2018
  • Attach files
  • Stephen Major commented
    September 11, 2018 17:30

    check out console.io service discovery.... it is also has key/value store just for this purpose... its how we are handling the problem you are facing