Will a private network increase the bandwidth between two droplets?

July 12, 2019 85 views
DigitalOcean

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.

1 comment
  • Don't know for certain but id say it would consume bandwidth as it is still requesting it over the internet. There would probably be some latency compared to using the REST APi on the same machine / requesting from SSD which would probably be faster.

1 Answer

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.

Have another answer? Share your knowledge.