Chapter 5. Architecting Read-Side Data
As businesses scale, the demands on their data systems grow exponentially. Early on, a single monolithic database suffices for both reads and writes, providing a simple, unified model. However, as traffic increases and query complexity rises, this approach begins to show its limits. The database struggles to balance transactional consistency with fast, complex queries. Performance degrades, leading to slow user experiences and operational headaches.
Scaling read-heavy workloads requires restructuring how data is stored, accessed, and served. This chapter explores architectural patterns that organizations adopt to optimize read performance while maintaining system flexibility. We’ll start with read replicas, a common first step to alleviate database contention. From there, we’ll look at how materialized views, CQRS (Command Query Responsibility Segregation) and CDC (Change Data Capture) introduce specialized read models, enabling efficient query execution. ...
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