App platform - load balancing tcp traffic

Hello everyone,

Recently I’ve started using digital ocean app platform for setting microservice based architecture for my startup but I’m having issues with horizontal scalling.

At the time I have:

  • 1 main api that sends TCP commands to microservice
  • 1 microservice, but scaled horizontally to two instances of container

They are communicating through TCP, but the problem is that only one instance of microservice is used to do the hard work, the second one never gets any traffic.

What can I do with this situation?

Submit an answer
Answer a question...

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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
June 11, 2022

Hi there,

The load balancing that comes with the App Platform is a built-in part that can’t be configured.

It is distributing incoming requests evenly across all containers that pass a health check and are tasked with providing capacity to your service.

Can you confirm that both of your instances are with status healthy and are passing the health checks?