January 2020
Intermediate to advanced
640 pages
16h 56m
English
Now, let's take a look at some anti-patterns that you might encounter when working with microservice-based projects and explore alternative ways of dealing with them.
Sharing a database is probably the biggest mistake that engineers new to the microservice pattern make when they attempt to split a monolith into microservices for the first time. As a rule of thumb, each microservice must be provisioned with its own, private data store (assuming it needs one) and expose an API so that other microservices can access it. This pattern provides us with the flexibility to select the most suitable technology (for example, NoSQL, relational) for the needs of each particular microservice.
Communication ...