concept event - source system in category c#

appears as: event-sourced systems, n event-sourced system, event-sourced system
Functional Programming in C#: How to write better C# code

This is an excerpt from Manning's book Functional Programming in C#: How to write better C# code.

Now that you’ve seen how event sourcing offers a viable, append-only model for persistence, from which present or past states can be easily computed, let’s see what an event-sourced system looks like from a high-level architectural point of view.

10.3. Architecture of an event-sourced system

The data flows in an event-sourced system are different from those in a traditional system, where data is backed up by a relational store. As figure 10.5 shows, in CRUD-oriented systems the program deals in entities, or, better, in states. States are saved in the DB, states are retrieved by the server, and states are sent to the client. The transformations between the “model” (the data stored in the DB) and the “view model” (the data sent to the client) are often very minor.

Figure 10.5. High-level comparison of data flows in a traditional vs. event-sourced system.

In an event-sourced system, things are quite different. What we persist is events. But users won’t want to see an event log, so the data that we surface for the users’ consumption must be structured in a meaningful way. For this reason, an event-sourced system can be split neatly into two separate parts: