concept Event Sourcing in category reactive

This is an excerpt from Manning's book Reactive Application Development.
Event Sourcing, or persisting a sequence of events (behaviors)—not to be confused with message-driven, which means reacting to a message—provides a means by which you can capture the real intent of your users. In an Event Sourcing system, all data operations are viewed as a sequence of events that are recorded to an append-only store. In this section, we provide two examples that best showcase the capabilities of Event Sourcing: the canonical example of a bank account register and the CRUD shopping cart redone as a reactive shopping cart.
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.
Most of us have used relational (SQL) databases at some point in our careers, and those databases have worked well. You can use SQL for Event Sourcing as well as the CQRS query side, but the concrete column model (in which every column and its type is known at design time and enumerated in a table) is inflexible compared with NoSQL. NoSQL allows the storage of documents containing any number of attributes that need not be known at design time, making the construction of CQRS/ES systems much faster and more agile than the construction of relational models containing strict sets of table fields. With NoSQL, you can serialize an object and its varying fields to a table. The table may also contain multiple types of objects of differing sizes and shapes, making it easy to store all the events of a domain type. With SQL, you have to know the columns ahead of time and constantly maintain migration scripts when your event or read stores change over time—lots of overhead that you can avoid by using any of the excellent open source NoSQL solutions available today.
So far in this chapter, you’ve learned about the distinct paths of CQRS and seen the distinct nature of the command and query sides. How they relate is where Event Sourcing is a natural fit and sits atop CQRS nicely, as we discuss in the next section.