Question

Two servers to communicating with each other to reduce latency

Hello!

I’m planning to create an API which will be hosted on one droplet and a website access point on another droplet. What I want is that the website will use the API to do everything it needs.

So for example, if my API has the “create post” code, when a user attempts to create a post using the website, it will send a HTTP request to the API to create that post.

I wonder if there is maybe some way to make those 2 droplet communicate with each other without the public network latency, just like 2 computers communicating each other when sitting on the same network.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This question was answered by @CrypticDesigns:

I think you are looking for private networking. Since a few years digitalocean has this option for all the datacenters. You can find a tutorial about it here:

View the original comment