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.

1 comment

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.

×
1 answer

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

edited by MattIPv4
Submit an Answer