July 2017
Intermediate to advanced
414 pages
11h 18m
English
The underlying principle of a microservice is that it is autonomous and self-contained. In order to adhere to this principle, there may be situations where we will have to duplicate code and libraries. These could be either technical libraries or functional components:

For example, eligibility for flight upgrade will be checked at the time of check-in, as well as when boarding. If check-in and boarding are two different microservices, we may have to duplicate the eligibility rules in both the services. This was the trade-off between adding dependency versus code duplication.
It may be easy to embed code compared to ...
Read now
Unlock full access