COMMANDS & EVENTS
@indu_alagarsamy
Something
of
importance
happened
Do
something
Domain Event
Command
Slide 12
Slide 12 text
WHEN an aircraft type is changed:
Passenger gets notified with a new booking proposal
Passenger can cancel flight
Passenger can accept proposed booking
@indu_alagarsamy
Mycenae, Greece
A Business Process can be triggered by
an event from a different bounded context
AircraftTypeHasChanged
FLIGHT PLANNING
BOUNDED CONTEXT
BOOKING
BOUNDED CONTEXT
WHEN an aircraft type is changed
@indu_alagarsamy
Slide 15
Slide 15 text
Mycenae, Greece
Multiple messages can take part in a
business process
AircraftTypeHasChanged NotifyCustomer
RebookFlight
BookingWasCancelled
@indu_alagarsamy
FLIGHT PLANNING
BOUNDED CONTEXT BOOKING
BOUNDED
CONTEXT
Slide 16
Slide 16 text
WHEN an aircraft type is changed:
Only passengers with Premium status gets notified with
a new booking proposal
Passenger can cancel flight
Passenger can accept proposed booking
@indu_alagarsamy
@indu_alagarsamy
Talk to domain
experts.
Eventstorm with
them.
Models
are not
perfect
Evolve and
refactor with
an obsession
for domain
language
Strive for
Autonomy. Use
events to
communicate
between
bounded contexts
Slide 19
Slide 19 text
THANK YOU
@indu_alagarsamy
https://indu.dev
https://go.particular.net/ddd2020