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

Adv2 Scenario3

Christopher Bennage edited this page Jan 30, 2015 · 1 revision

Approach #3, saga

Saga

  1. The UI sends a command to register X and Y onto conference #157. The command is routed to a new Order aggregate.
  2. The new Order aggregate, with an ID of 4239, is persisted to the data store.
  3. The Order aggregate raises an event that is handled by the ReservationProcess saga.
  4. The ReservationProcess saga determines that a command should be sent to the ConferenceSeatsAvailability aggregate with an ID of 157.
  5. The ConferenceSeatsAvailability aggregate is re-hydrated from the data store.
  6. The total number of seats booked is updated in the ConferenceSeatsAvailability aggregate and it is persisted to the data store.
Clone this wiki locally