Report this

What is the reason for this report?

How to improve routing between microservices?

Posted on December 12, 2019

Hi @all,

in short: I’ve deployed an application which is separated in several microservices.

The requests from outside are all going to one microservice which redirects the message to other microservices (API Gateway Patten).

Then, the microservices must communicate with each other by also going over the API Gateway.

Everything works fine, but now with my droplets I’ve noticed something: The requests going between several microservices take between 50ms and 3000ms. Since it’s definitely not an internal microservice problem, I assume it’s the routing.

How can I improve the routing and get rid of these delays? Static routing? Would it also make it faster to have the microservice in an internal network?

Help and suggestions are highly appreciated!



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!

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.

Hi @badaemon, that’s a cool question! I believe that you are right, I would definitely suggest trying with an internal network to see how it performs.

Besides that, is your whole setup with droplets or are you using a cluster like Kubernetes? Are you running the application on the droplets directly or do you use containers like Docker?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.