-
Book Overview & Buying
-
Table Of Contents
Microservices Design Patterns in .NET - Second Edition
By :
Effective database design is fundamental to the success of microservices architecture. Unlike traditional monolithic applications that rely on a single, centralized database, microservices require careful planning. A core characteristic of microservices architecture is loose coupling between services. We need to maintain each service’s independence and individuality and allow them to interact with the data they need when needed autonomously.
We want to ensure that one service’s data manipulation does not inhibit another service’s ability to use its data. In the infrastructure, we would also consider having each database in its hosting environment to facilitate maximum uptime for each service. This way, one box outage would not take down all the hosted services. This is called database per service.
When implementing database per service, you can consider polygot persistence as an extension, where you choose the most...