Microservices and Clusters

2

Good morning. I have a question about clusters and microservices.

What is the correct way to deploy a microservice, one per cluster? Or could it be more?

I will illustrate:
I have an app that is made up of 10 microservices. Each microservice has 2 containers, 1 for the other "skeleton" mvc for the database.
Then in all use 20 containers (without stagger).

api-cadastro-de-pessoa -> 2 containers
api-cadastro-de-produtos -> 2 containers
api-carrinho-de-compra -> 2 containers
e assim vai.

The correct one would be to deploy one api per cluster? I'm learning Azure with kubernetes. Worthy of attention

    
asked by anonymous 13.09.2018 / 16:25

1 answer

1

There is no right way to do it, of course there may be a way to make it more coherent for you. Each case is a case, if I were with the same problem that you only use 1 cluster depending on the demand, it all depends on the configuration of your machine and the requisition number for your application.

If you are using node below 200k / req I think it will look good, even though I use 1 thread.

    
13.09.2018 / 18:42