Microservices should be loosely coupled, scalable, and independent. When shifting to the monolithic architecture to microservices architecture, should decomposes databases.
▪ Distributed data model with many smaller databases for particular microservice.
▪ Data schema changes can perform without any impact on other microservices, Changes to an individual database don’t impact other services.
▪ There isn’t a single point of failure in the application, the application is becomes more resilient.
▪ Individual databases are easier to scale, if 1 service peek the requests that only that microservice can scale independently.
https://microservices.io/patterns/data/database-per-service.html
Shifting to the monolithich archi to microservices arch
Decomposes database into a distributed data model
Evolve rapidly and easy to scale applications
Schema changes can perform without any impact
Scaling independently
https://microservices.io/patterns/data/database-per-service.html