Anatomy of CQRS

In previous chapters, we explained the relationship between Domain-Driven Design and CQRS and other Architectural Styles, focusing on Hexagonal Architecture as a foundation for CQRS. Now, it’s time to provide a proper overview of CQRS: what it is, what the moving parts are, which benefits and drawbacks it has, and what the valid use cases for such an interesting Architectural Style are.

Cheeper Use Case Analysis

If you were to create Cheeper from scratch, you might end up with your favorite Architectural Style, i.e. the one you’re most comfortable with. Maybe you’d choose Hexagonal Architecture with all the Domain-Driven Design Tactical Patterns like Aggregates, Repositories, and Application Services. In our experience, the code, ...

Get CQRS by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.