8
Refactoring the Database
In the previous chapters, we explored how to use CQRS and event sourcing to break apart a monolithic application, allowing services to align with specific bounded contexts in a microservices architecture. However, while separating application logic is a crucial step, the database itself often remains a bottleneck, tightly coupled and shared across services. For a true transition to microservices, database refactoring is essential to ensure that each service has control over its own data and operates independently.
In this chapter, you’ll learn about the primary patterns for database refactoring, each addressing different strategies for managing and partitioning database tables to support service-specific ownership. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access