- Microservice Patterns and Best Practices
- Vinicius Feitosa Pacheco
- 136字
- 2021-06-30 19:02:48
The y-axis
In this strategy, a verb or route is used by the balancer to identify where to go with the request. The following image represents the y-axis:
The principle does not seem to be very scalable, but it is exactly the junction with the y-axis and x-axis that is used to scale microservices.
This join between y-axis and x-axis allows us, occasionally, to bring scalability to just part of the microservices. In the following diagram, it can be seen that News was the most scaled microservice, followed by Recommendations, but Users have no major changes. This type of scalability technique greatly reduces the drawbacks of shared resource access, as each microservice structure manages and uses only its own resources, such as caches and databases. Take a look at the following diagram: