Professional Documents
Culture Documents
In this lesson, we'll look at some ways we can prioritize advantages of the microservice architecture and some
potential trade-offs that should be considered.
• Prioritizing advantages
• Microservices involve trade-offs
• Two levels of microservices: Domain and technical
• Typical numbers of microservices in a system
Prioritizing advantages #
Which of the discussed reasons for switching to microservices is the most
important depends on the individual scenario. The use of microservices in a
greenfield system is the one exception.
The scaling of development is not the only scenario for a migration. For
example, when a single Scrum team wants to implement a system with
microservices, scaling development would not be a sensible reason since
the organization of development is not large enough for this. However, other
reasons are possible. Continuous delivery, technical reasons like robustness,
independent scaling, free technology choice, or sustainable development all
play a role in such a scenario.
When, for example, the last step of the order process is under
especially high load, this last step can be implemented in a separate
microservice. The microservice belongs to the domain of the order
process, but for technical reasons, it is implemented as a separate
microservice. This is an example of a technical division.
The drawing above shows an example for the two levels. Based on the
domains, an e-commerce application is divided into the microservices:
Search
Full-text search
Category-based search
Check out
Payment
Delivery
Search is further subdivided. The full-text search is separated from the
category-based search.
Independent scaling can be one reason for this. This architecture allows
the system to scale the full-text search independently of the category-
based search which is advantageous when both have to deal with
different levels of load.
Another reason could be the use of different technologies. The full-text
search can be implemented with a full-text search engine, which is
unsuitable for a category-based search.
Q U I Z
1
A division by domain always results in the deployment of a single
microservice for a change in the system.
COMPLETED 0%
1 of 3
In the next lesson, we’ll look at some challenges that the microservice
architecture poses.