Command Query Responsibility Segregation (CQRS) is a pattern within microservice architectures that decouples reads (queries) from writes (commands). This enables an application to optimize database writes to a slower disk-based SQL database, while pre-fetching and caching that data using Redis Enterprise’s integrated Change Data Capture (CDC) capability for read-optimized querying. Doing so enables the data to be shared with other microservices without breaking isolation and coupling their deployments.
CQRS is a microservices design pattern that separates read and update operations for a data store to optimize its performance, scalability, and security.
The problem | The Redis Enterprise solution |
---|---|
Accessing data across domains creates too many dependencies | |
Cannot optimize for both writes (durability and consistency) and reads (real-time queries) | |
Excessive reads cause performance penalties and higher infrastructure costs | |
Developing code for syncing data increases complexity and OpEx cost |
Industries