Updating the proxy/load balancer

Now is the time to make a tremendous change to the application. When we talk about a big change, we are not talking so much at the code level, but rather at the level of impact it has for the application business and for the health of the system.

First, let's remove the upstream we had before. The configuration of the server had some problems, such as route collision and wrong routing:

upstream proxy_servers { server bookproject_userservice_1:3000; server bookproject_userservice_2:3000; server bookproject_userservice_3:3000; server bookproject_userservice_4:3000; server bookproject_famous_news_service_1:5000; server bookproject_famous_news_service_2:5000; server bookproject_famous_news_service_3:5000; server ...

Get Microservice Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.