By louiscb
I have a droplet which contains a REST API that I query for data from another droplet which displays this information to customers. I want to know if setting up a private network (as described here would increase the speed at which the frontend droplet could fetch information from the API droplet. I still want both droplets to be independently accessible from outside the network, so I wouldn’t be closing off either droplet to the public Internet.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The easiest way to test this is to do a ping test between the two droplets between their public and private IP addresses.
If both are <1ms then whether you use the private IP address or public IP address won’t matter in terms of performance.
However, if you are requesting data between Servers on the public address, then that data will be counted as part of your data transfer quota. If you do it via the private network, then it isn’t counted as part of your data transfer quota.
If you are using a lot of data I would use the local private IP address just to reduce any data transfer fee, but if you are well below your quota, since you mentioned both servers are available publicly anyway, feel free to use the public IP address so long as the ping test above shows that whether you go over the private or public network there is no major difference in latency.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.