Chain, Command and Observer

One order, dispatched three ways. Who ends up running the work, and when.

Chain, Command and Observer dispatching one placed order (interactive map)

One POST /orders descends the guards in registration order, and whichever one trips returns its own status. Past them, PlaceOrderHandler can hand the confirmation on two ways. As a row in the outbox, which a worker collects later and which survives that worker dying, or as an OrderPlaced event walked handler by handler on the request thread.

← All cheatsheets