Event Storming
Event Storming is a workshop where business people and developers build the story of the business together, on a long wall, with colored sticky notes. Start with domain events in the past tense, put them in time order, add commands, actors, policies and questions, and then look for borders. The result is a shared understanding, a list of open questions, and good candidates for bounded contexts.
Author: bezzad
Contents
The problem: a requirements document full of guesses
Our shop wants to add “returns and refunds”. The product manager writes a 20-page document. Developers read it, build for three months, and then learn in the demo:
- The warehouse checks a returned item before any refund. Nobody wrote this.
- Finance refunds gift cards in a different way. Nobody asked them.
- “Order” means something different to the warehouse than to finance.
The knowledge was there, but it was in different heads. A document passed from person to person does not bring those heads together. A workshop does.
The idea: tell the business story with events
Event Storming (created by Alberto Brandolini) is a workshop. The right people stand in front of a very long wall (or a big online board) and build the story of the business with sticky notes. Everyone can write; nobody needs to know a modeling language.
The main building block is the domain event: something that happened that the business cares about, written in the past tense: “Order placed”, “Payment refunded”. Events are easy for everyone to understand, and they force precise language.
The sticky notes
- Domain event (orange on paper). Something that happened. Past tense.
- Command (blue). A request that causes an event: “Place order”.
- Actor (small yellow). The person or role who gives the command.
- Policy (lilac). A reaction rule: “whenever this event happens, do that command”.
- Read model (green). The information an actor looks at to decide: “cart with total price”.
- External system (pink). Something outside our control: the payment provider.
- Hot spot (bright red or pink). A question, a risk, a disagreement. Hot spots are gold: they show where the real problems are.
How a session runs
- Chaotic exploration. Everyone writes events they know, alone, and puts them on the wall in rough time order. No discussion yet. Many notes are good.
- Make a timeline. Together, sort the events from left to right. Remove duplicates. Discussions start here; every disagreement becomes a hot spot.
- Find the pivotal events. Some events change the phase of the story: “Order placed”, “Order shipped”. Mark them. They are often where one team hands work to another.
- Add commands and actors. Who or what causes each event?
- Add policies and external systems. “When payment is taken, reserve the stock.” These are the rules that connect parts.
- Walk the story. Someone tells the story from left to right, out loud. Missing steps and wrong guesses appear quickly.
- Collect the hot spots. They become the list of open questions and risks.
Three levels
- Big picture. The whole business flow, with many departments. Goal: shared understanding and the biggest problems. A few hours to a day.
- Process level. One process in detail, for example returns. Goal: a clear process with all rules and actors.
- Design level. Close to the code: which aggregate takes which command and protects which rule. Goal: a design developers can build.
From events to borders
When the timeline is clear, look for natural groups:
- Pivotal events often sit on a border, where the work moves from one team or department to another.
- Words change meaning. “Product” in shopping is a name, photo and price; in fulfillment it is weight and shelf. Different meaning is a strong sign of a different bounded context.
- Different people own different parts. The finance people cared about payment events; the warehouse people about stock and shipping.
- Policies cross borders. “When payment is taken, reserve the stock” is a message between two contexts. It shows how they will talk, often with events.
These groups are candidates, not final answers. Check them with the business and with the coupling rules: things that change together should stay together.
What you get
- A shared picture of the business that everybody helped build.
- A common language (the event names).
- A ranked list of hot spots: questions, risks, places to simplify.
- Candidate bounded contexts and the messages between them.
- A good start for the C4 context and container diagrams.
Common mistakes
| Mistake | Result | The right way |
|---|---|---|
| Only developers in the room | Guesses about the business, again. | Business experts must be there. |
| Events in the present or future tense | Vague notes like “manage order”. | Past tense, specific: “Order placed”. |
| Discussing too early | Few ideas, long debates. | Write alone first, then sort together. |
| Ignoring hot spots | The real problems stay hidden. | Collect and rank them at the end. |
| Treating the result as the final design | Borders that do not fit later. | Treat groups as candidates and check them. |
Summary in six lines
- Event Storming is a workshop that builds the business story together on a wall.
- The main note is the domain event, in the past tense.
- Add commands, actors, policies, read models, external systems and hot spots.
- Write alone first, then sort a timeline together, then walk the story.
- Pivotal events, changes in word meaning and different owners suggest borders.
- The result is shared understanding, a list of open questions and candidate bounded contexts.