ArchDeck · 115 cards

← All families
Open full library ↗
← Back to family

ED0 · Event Driven Patterns

Commands, Events & State

Name the input. Name the output. Choose the step.

Overview

A command asks for a decision, an event records an outcome, and state describes a condition. Sketch these three kinds of information before choosing queues, workers, or services. This guide maps the nine transitions in Yves Goeleven’s Processing Patterns taxonomy; ED10 and ED11 add coordination across participants.

When to use

  • Reviewing an event model with mixed responsibilities
  • Deciding what belongs in a handler, projection, or integration adapter

Quick assessment

  • Is this message a request or an established fact?
  • Who can reject the requested change?
  • Which component owns the resulting state?

In practice

How it works

Read rows as inputs and columns as outputs.

Make it work

Sketch one user journey and mark each transition. Assign the decision owner, durability boundary, and evidence of completion.

The trade-off

This is a responsibility map, not a deployment plan. Messaging and event sourcing are separate choices.

What is the input, and what is the output?

Key patterns

Input → outputCommandEventState
CommandED7 DelegationED2 Aggregate RootED6 Downstream Activity
EventED8 ReactionED5 Event ProcessingED3 Projection
StateED1 Task ProcessingED4 Event GeneratorED9 State Transformation

Try it: a booking screen shows available seats; a traveler requests a reservation; the reservation owner accepts or rejects it; a read view shows the result. Label each handoff before deciding how to deploy it.

Coordination: ED10 Choreography distributes next-step decisions; ED11 Orchestration tracks them centrally.

Counter-patterns

  • Calling an instruction an event to hide its intended recipient
  • Choosing a broker before understanding the business flow
  • Treating a read view as permission to change authoritative state

Reality check

This is a responsibility map, not a deployment blueprint. Several steps can run in one application. Messaging, separate databases, and event sourcing are independent choices.

Sources

Explore the full library and printable cards