By dim912
We have a simple nodejs application deployed in a basic droplet ( 1 core, 3 GB). The application has a /health API which simply prints “OK” ( nothing else no processing)
Run application on docker (installed on the droplet) => Response time around 15ms
Start the docker container which contains the simple /health API. (nodejs)
logged into the docker container on droplet (docker exec -it <containerId> sh)
curl the application from the docker container (curl --insecure -o /dev/null -s -w 'Total: %{time_total}s\n' https://localhost:443/health)
Here the application responses within 15ms. Which is quite fast and acceptable. :)
Run application Directly on droplet => Response time around 150ms
curl --insecure -o /dev/null -s -w 'Total: %{time_total}s\n' https://localhost:443/health)Even the /health API of the docker container is called from the droplet, the response time is 150ms.
This proves that, droplet adds about 120ms, delay to API response. We are developing an auto completion API and this 120ms delay kills us.
Did anybody observe this before. Please help for this.
Thank you. Regards, Dimuthu Senanayaka
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!
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.