Chapter 8. CQRS and Event Sourcing

This chapter covers

  • The basics of Command Query Responsibility Segregation
  • CQRS in reactive systems
  • Commands and queries
  • CQRS and Event Sourcing combined

As you’ve seen in the previous chapters, the reactive paradigm is a powerful way to think about distributed computing. In this chapter, we build on that foundation by exploring two design patterns introduced in chapter 1: Command Query Responsibility Segregation (CQRS) and Event Sourcing (ES). We should note, however, that although these techniques work in concert and are a natural fit for reactive programming, they’re by no means the only way to design a reactive system.

To achieve our goal of exploring these two design patterns, we look at a common type ...

Get Reactive Application Development 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.