O'Reilly logo

Practical Microservices by Umesh Ram Sharma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Database per microservice

The next idea is each microservice having its own database. This gives another free hand to the developer to choose the database type as per the need of the microservice. The developer need not stick to the only database technology used by other microservices. This seems something like distributed CDM. This seems to be a convincing thing to do. However, it has its own challenges. Tight coupling is not introduced only based on shared data, rather it also depends on data flow among different services. To keep the system in a consistent state, one must execute all the commands to fulfill the request or roll back to the original state if any step fails. This is comparatively easy in a traditional data model that has ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required