concept Event Store in category c#

appears as: Event Store
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.

  • A specialized event DB such as Event Store (https://geteventstore.com).
  • How this atomicity is achieved is somewhat intricate and strictly depends on the infrastructure you’re targeting (both for storage and for event propagation). For instance, if you use Event Store, you can take advantage of durable subscriptions to event streams, which guarantee that the event is delivered at least once to the subscriber (that’s the meaning of “durable” in this context).

    So, by using Event Store, you could simplify the logic in saveAndPublish to only save the event. Event handlers then subscribe to Event Store’s event streams, as shown in figure 10.7.

    Figure 10.7. Event handlers can subscribe to event streams published by Event Store.

    Implementing an event-sourced system, on the other hand, is relatively simple: most of what’s required was covered in this chapter. You can write an effective implementation using any DB—either NoSQL or relational—as underlying storage. For a large-scale application, it still pays to use a DB specifically designed for ES such as Event Store, which is open source.[5] In short, if you want an assertion-based approach, you pretty much have to use Datomic; with ES, you may need or choose to use Event Store.