Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

Latest commit

 

History

History
69 lines (56 loc) · 2.71 KB

File metadata and controls

69 lines (56 loc) · 2.71 KB

EventSourcing example domain

This directory contains test assets that form a small event-sourcing functioning code example.

It is designed to demonstrate how to implement common business logic scenarios through the facilities of the EventSourcingWorkshop\EventSourcing component.

You can take the code from this directory, and use it as a blueprint for future business scenarios, after having properly event-stormed them.

Rough structure

Interaction diagram

graph TB
   subgraph Frontend
      Controller((Controller))
   end
   
   subgraph CommandBus
      Controller --> SayHello(SayHello)
      Controller --> SayGoodbye(SayGoodbye)
   end
   
   subgraph Aggregates
      SayHello --> Greeting{Greeting}
      SayGoodbye --> Greeting{Greeting}
   end
   
   subgraph EventStore
      Greeting --> HelloSaid>HelloSaid]
      Greeting --> GoodbyeSaid>GoodbyeSaid]
   end
   
   subgraph Projectors
      PendingGoodbyes[PendingGoodbyes]
      HelloSaid --> PendingGoodbyes
      GoodbyeSaid --> PendingGoodbyes
      HelloSaid --> DateOfLastDispensedGreeting[DateOfLastDispensedGreeting]
   end
   
   subgraph Projections/Read Models
      PendingGoodbyes -.-> projection_pending_goodbyes
      DateOfLastDispensedGreeting -.-> projection_date_of_last_dispensed_greeting
   end
   
   subgraph Policies
      HelloSaid --> WhenHelloSaidThenSayGoodbye[WhenHelloSaidThenSayGoodbye]
      WhenHelloSaidThenSayGoodbye --> SayGoodbye
   end
Loading