By Kfir Ben-Ami
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.
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!
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:
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.