By hamy
I am planning on building a system that requires apps to call each other via http requests and am trying to figure out how to get two apps to call each other. From the API reference (https://developers.digitalocean.com/documentation/v2/#retrieve-an-existing-app) it seems this may be possible by:
But I wanted to see if there was a best practice somewhere that was different.
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!
If the two services are part of the same site, you might consider putting both services in the same application. Service components in the same app can communicate over a local network using the component name as the address. For example, if your app has two services, api and web, web can reach api at http://api:80. Public services will always be exposed internally on port 80. These internal requests don’t count against the bandwidth utilization for an app, while requests from one app to another app’s public URL will.
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.