Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Exploring Projections and Processors in Event S...

Exploring Projections and Processors in Event Sourcing

Projections und Prozessoren sind einer der Säulen, um mit Event Sourcing umzugehen. Dabei werden wir einsteigen, was diese Begriffe bedeuten und welche Probleme wir damit lösen möchten. Anschließend werden wir klassische Implementierungen betrachten und schauen, ob wir unsere Probleme damit lösen können oder eventuell sogar neue Probleme entstehen. Zu guter Letzt schauen wir uns einen anderen Lösungsansatz an, welche Vorteile es hat, aber auch welche Nachteile.

Links zu der library und github:

https://event-sourcing.patchlevel.io/latest/
https://github.com/patchlevel/event-sourcing

Avatar for David Badura

David Badura

July 05, 2024
Tweet

More Decks by David Badura

Other Decks in Technology

Transcript

  1. • Build from events • Keep it up to date

    • Updating and rebuilding
  2. An event bus is a design pattern to facilitate communication

    between different parts of an application. It acts as a central hub where events (messages) are published and subscribed to, allowing decoupled components to communicate without direct references to each other.
  3. • id • aggregate • aggregate_id • playhead • event

    • payload • recorded_on • id • message ◦ aggregate ◦ aggregate_id ◦ playhead ◦ event ◦ payload ◦ recorded_on
  4. From Beginning The subscriber will start from the beginning of

    the event stream and process all events. From Now Certain subscribers operate exclusively on post-release events, disregarding historical data. Once The subscribers are executed from the beginning to the end of the stream.