Dealing with Eventual Consistency and Idempotency in projections
event-driven.io·5h·
Discuss: r/programming

Auditability, diagnostics, time travelling are usually the first mentioned features when speaking about Event Sourcing. All of them are great, but to me, projections are the real killer feature of an event-driven approach. Why?

Projections are different interpretations of the same fact. Look at the photo below. Muhammad Ali is standing in triumph over Sonny Liston. Each of them interprets the same fact from an entirely different perspective.

The same happens in our systems. Let’s take a shopping cart as an example. After we added a product item to the shopping cart, we have to:

  • update details of the shopping cart,
  • increase the total amount in the summary view,
  • adjust the number of products in the inventory,
  • send a notification in the user menu.

All of that is triggered…

Similar Posts

Loading similar posts...