📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

You're starting a new product area with complex rules and several teams. How would you run an event storming session? Explain the format (big picture, process and design level), what comes out of it (domain events, commands, policies, aggregates, bounded contexts, hot spots), and how you turn those outputs into an architecture and a backlog.

Covers planning and facilitating event storming at big-picture, process and design level, reading its outputs, and turning them into bounded contexts, aggregates, an ADR and a sliced backlog.

Senior Architecture Advanced architecture backlog bounded-context domain-driven-design event-storming facilitation

🎯 Key points

  • Event storming (Alberto Brandolini): collaborative modelling with sticky notes on a timeline, domain experts and developers together
  • Three levels: big picture (whole domain, find contexts), process level (one flow with commands and policies), design level (aggregates)
  • Colour grammar: orange events (past tense), blue commands, purple policies, yellow actors and aggregates, pink external systems, green read models, red hot spots
  • Policies ('whenever event X, then command Y') capture the business decisions that drive the flow; each becomes a handler, process manager or saga
  • Pivotal events and language changes suggest bounded context boundaries; hot spots become spikes or questions
  • Facilitator keeps everyone writing, draws out quiet experts, parks debates and keeps the language precise
  • Outputs become a context map, aggregates with invariants, an ADR, and a backlog of thin vertical slices (e.g. 'lodge a claim end to end with cover check')
  • Revisit the board as learning grows; record lessons and feed them into the next session

⏱ 30-second answer

Event storming (Alberto Brandolini) is a workshop where domain experts and developers map a business process as domain events on a timeline, using colour-coded sticky notes. It runs at three levels. Big picture: the whole domain, chaotic exploration, then sort into a timeline; pivotal events and language changes reveal bounded contexts, and hot spots (red) capture disagreements. Process level: one flow, adding commands, actors, policies ("whenever X, then Y"), read models and external systems. Design level: group commands and events around aggregates and their invariants.

I turn the outputs into a context map, aggregate designs, an ADR, and a backlog of thin vertical slices along the event flow. The trade-off: a few hours of expensive people's time, in exchange for finding misunderstandings before they are coded.

🗣 Full answer (senior)

How I would answer this in an interview

"Event storming is the fastest way I know to get a shared picture of a complex domain. You put domain experts, product and engineers in a room, physically or on a Miro board, and model the business as a timeline of domain events: things that happened, in past tense, on orange stickies. 'Claim lodged', 'Assessor assigned', 'Claim approved'. Events are a good starting point because experts think in them naturally and they're concrete.

I run it at three levels. The big picture session is half a day with as many perspectives as possible. Everyone writes events at once, then we enforce a timeline, and the interesting parts appear: places where two people use the same word differently, places where a handoff happens, which I mark as pivotal events, and red hot spots for disagreements and unknowns. Those give me candidate bounded contexts. Then process-level sessions on one flow at a time add blue commands, the yellow actors who issue them, purple policies like 'whenever a claim is lodged over [$50k], assign a senior assessor', green read models showing what the user needs to see to decide, and pink external systems. Design level is where engineers group commands and events around aggregates and write down their invariants.

For example, at [company] I facilitated a big picture session for a [claims] product with [12] people. The biggest outcome was a hot spot: underwriting and claims meant different things by 'policy in force', which had caused [recurring incidents]. That became a separate context with a translation between them. Afterwards I turn the wall into artefacts: a context map, an ADR for the chosen boundaries, aggregate sketches, and a backlog sliced along the event flow, so the first slice is 'lodge a claim end to end' rather than 'build the claims database'. The mistake I see is treating the workshop as a one-off; I keep the board and revisit it when we learn something."


The colour grammar

Sticky Colour Example
Domain event Orange Claim Lodged
Command Blue Lodge Claim
Actor Small yellow Policyholder, Assessor
Policy Purple (lilac) Whenever claim > $50k, assign senior assessor
Aggregate Large yellow Claim
External system Pink Payment gateway, legacy PAS
Read model Green Claim summary with policy cover
Hot spot Red / magenta "Who decides fraud referral?"

The three levels

Level Who Duration Output
Big picture Experts across the business, product, tech leads 3-4 hours Timeline, pivotal events, hot spots, candidate contexts
Process level Experts for one flow + team 2-3 hours per flow Commands, policies, read models, actors, externals
Design level Team + one expert 2 hours per area Aggregates, invariants, event names for code

From wall to work

Wall output Becomes
Clusters and pivotal events Bounded contexts on a context map; modules in the solution
Hot spots Spikes, questions for the product owner, risks in the ADR
Commands + events per aggregate Aggregate methods and domain events
Policies Event handlers, process managers, sagas
Read models Query endpoints and screens
Event flow Backlog of vertical slices, ordered by value and risk

Production example

A [3.5-hour] big picture session with [12] people for a [claims] product produced [about 180] events, [6] candidate contexts and [14] hot spots. Resolving the 'policy in force' hot spot before coding avoided a model that would have repeated a known incident class, and the first release slice was in production in [five weeks].

🔍 What the interviewer is checking

Checks that the candidate can facilitate collaborative domain modelling and turn its outputs into architecture decisions and a delivery plan.

Green flags

  • Knows the three levels and the colour grammar
  • Uses pivotal events and language changes to find bounded contexts
  • Treats hot spots as first-class outputs
  • Turns outputs into a context map, ADR and vertical slices

Red flags

  • Thinks event storming is just brainstorming
  • Runs it without domain experts
  • Maps every cluster straight to a microservice

📚 Learn in depth

1. Why events first

Events are facts the business already talks about, they are unambiguous in time (past tense), and ordering them forces people to reconcile their mental models. Starting with entities or screens invites solution design too early.

2. Big picture flow

1. Chaotic exploration  everyone writes orange events, no discussion   (20-30 min)
2. Enforce the timeline order left to right, remove duplicates          (45 min)
3. Pivotal events       mark the big transitions (Claim Lodged, Claim Approved)
4. Swimlanes / clusters  group by area; language changes = boundary candidates
5. People and systems   add actors and external systems
6. Hot spots            red stickies for conflicts and unknowns
7. Opportunities / risks vote on where to focus next

3. Process-level grammar

[Actor] ── uses ──► [Read model] ── decides ──► [Command] ──► [Aggregate / System] ──► (Event)
                                                                                │
                                              [Policy] ◄── "whenever" ────────┘
                                                 │
                                                 └──► [Command] ... (next step)

This loop is exactly the shape of a CQRS / event-driven system, which is why it translates well into code.

4. From design level to code

  • A cluster Lodge Claim → Claim → Claim Lodged becomes Claim.Lodge(...) raising ClaimLodged.
  • A policy becomes a handler: ClaimLodged → if amount > threshold → AssignSeniorAssessor.
  • Rules written on the aggregate sticky become invariants and unit tests.

5. Facilitation tips

  • Invite people who know the domain, not just managers; 8-15 people for big picture.
  • Unlimited wall or board; plenty of stickies; no chairs if in person.
  • The facilitator asks "what happens next?", "what has to be true before this?", "who decides?"; does not model alone.
  • Park solution debates as hot spots.
  • Remote: Miro or Mural template with the colour legend, short timeboxes, breakout rooms per swimlane.

6. After the session

  1. Photograph or export the board; keep it as a living artefact.
  2. Write the context map and an ADR for boundaries.
  3. Create a glossary per context from the event and command names.
  4. Slice the backlog along the flow: each slice delivers one event end to end.
  5. Schedule process- and design-level sessions for the riskiest areas first.

Try it yourself

  1. Run a 90-minute mini event storm on a process you know (e.g. onboarding a new employee) with two colleagues.
  2. Mark pivotal events and see where the language changes.
  3. Take one process-level flow and write the aggregate methods and domain event records in C#.
  4. Turn the flow into five vertical-slice backlog items with acceptance criteria in the domain language.

💻 Code

Turning design-level stickies into code: commands, an aggregate, events and a policy.

Wall (process/design level, claims):
  [Policyholder] -> (read model: Policy cover) -> [Lodge Claim] -> {Claim} -> (Claim Lodged)
  (Claim Lodged) -> [Policy: whenever amount > $50k, assign senior assessor] -> [Assign Assessor]
  Hot spot: who decides fraud referral? -> spike + question for product owner
namespace Claims.Domain;

public interface IDomainEvent { DateTimeOffset OccurredAt { get; } }

// Orange stickies become events, named exactly as on the wall.
public sealed record ClaimLodged(Guid ClaimId, decimal Amount, DateTimeOffset OccurredAt) : IDomainEvent;
public sealed record AssessorAssigned(Guid ClaimId, string AssessorLevel, DateTimeOffset OccurredAt) : IDomainEvent;

public enum ClaimStatus { Draft, Lodged, UnderAssessment }

// The large yellow sticky becomes the aggregate; blue commands become methods.
public sealed class Claim
{
    private readonly List<IDomainEvent> _events = [];
    public IReadOnlyList<IDomainEvent> Events => _events;

    public Guid Id { get; } = Guid.CreateVersion7();
    public ClaimStatus Status { get; private set; } = ClaimStatus.Draft;
    public decimal Amount { get; private set; }

    public void Lodge(decimal amount, DateTimeOffset now)
    {
        if (Status != ClaimStatus.Draft) throw new InvalidOperationException("Claim already lodged.");
        if (amount <= 0) throw new ArgumentOutOfRangeException(nameof(amount));
        (Amount, Status) = (amount, ClaimStatus.Lodged);
        _events.Add(new ClaimLodged(Id, amount, now));
    }

    public void AssignAssessor(string level, DateTimeOffset now)
    {
        if (Status != ClaimStatus.Lodged) throw new InvalidOperationException("Only lodged claims get an assessor.");
        Status = ClaimStatus.UnderAssessment;
        _events.Add(new AssessorAssigned(Id, level, now));
    }
}
namespace Claims.Application;

using Claims.Domain;

// The purple sticky becomes a policy: an event handler that issues the next command.
public sealed class SeniorAssessorPolicy(IClaimRepository claims, TimeProvider clock)
{
    public const decimal Threshold = 50_000m;

    public async Task HandleAsync(ClaimLodged e, CancellationToken ct)
    {
        var claim = await claims.GetAsync(e.ClaimId, ct) ?? throw new InvalidOperationException("Claim not found.");
        claim.AssignAssessor(e.Amount > Threshold ? "Senior" : "Standard", clock.GetUtcNow());
        await claims.SaveChangesAsync(ct);
    }
}

public interface IClaimRepository
{
    Task<Claim?> GetAsync(Guid id, CancellationToken ct);
    Task SaveChangesAsync(CancellationToken ct);
}

⚠ Common mistakes

  • Mistake: Only developers in the room. Why it is wrong: you model your assumptions, not the business. Instead: domain experts are mandatory; developers mostly ask questions.
  • Mistake: Starting with entities, tables or screens. Why it is wrong: it jumps to solution design and anchors on the existing system. Instead: start with domain events in past tense; they also map directly onto event-driven and CQRS designs later (events, commands, read models).
  • Mistake: Letting the loudest voices dominate. Why it is wrong: frontline experts who know the exceptions stay quiet and their knowledge is lost. Instead: silent writing first, round-robin walkthroughs, and the facilitator asking quieter people directly.
  • Mistake: Resolving every disagreement on the spot. Why it is wrong: the session stalls on one debate. Instead: mark it as a hot spot and move on; follow up afterwards.
  • Mistake: Skipping policies. Why it is wrong: the decisions that connect events to the next command ("whenever a claim over $50k is lodged, assign a senior assessor") are the business rules; without them the flow has gaps and the code invents behaviour. Instead: ask "what happens whenever this event occurs?" after every pivotal event.
  • Mistake: Treating it as a one-off workshop. Why it is wrong: the model goes stale as you learn. Instead: keep the board and revisit it at process and design level as you build.
  • Mistake: Turning the output into horizontal tasks ("build the database", "build the API"). Why it is wrong: nothing usable ships for weeks. Instead: vertical slices along the event flow.
  • Mistake: Mapping each sticky cluster straight to a microservice. Why it is wrong: boundaries are still hypotheses. Instead: start as modules in a modular monolith and validate boundaries.
  • Mistake: Vague event names ("Data updated", "Status changed"). Why it is wrong: in the workshop nobody can tell which business fact happened, so people talk past each other, and in code the event carries no meaning for subscribers, who must inspect payloads to guess. Instead: specific past-tense business facts ("Claim approved", "Excess waived") that become the event type names in code.

🏛 Senior insight: trade-offs

Event storming is cheap compared with building the wrong thing: a few hours of experts' time versus months of rework. The facilitator's job is to keep the language precise, make sure every voice is heard (the claims officer who handles the edge cases often knows more than the manager), and surface conflict, because the hot spots are where the real design decisions hide. The senior part is turning a wall of stickies into decisions people commit to: a context map, an ADR, and a first slice small enough to ship in weeks.

It is also iterative. After each slice ships I compare what we built with the board: which events were missing, which policies turned out to be manual, which hot spots were wrong. Those lessons go onto the board and into a short retro note, and the next process- or design-level session starts from the updated model rather than a blank wall.

Technique When it fits Cost When not to
Big picture event storming New product area, several teams, unclear boundaries Half a day for 8-15 people Small, well-understood feature
Process / design level Complex flow, designing aggregates and policies 2-3 hours per flow Simple CRUD
Example mapping Refining one story's rules 25 minutes per story Finding boundaries
Domain storytelling Explaining an existing process with experts 1-2 hours Exploring many processes at once

I measure the session's value by how many hot spots were resolved before coding and whether the first slice shipped without a major model change.

🔗 Follow-ups the interviewer may ask

  1. When: Candidate says pivotal events reveal bounded contexts. Why: Checks they can define and justify bounded contexts.
    How to answer

    A bounded context is an explicit boundary around a model tailored to one part of the business, inside which one ubiquitous language is consistent and which can evolve independently of others. Outside it, the same word can mean something else: Customer in Sales is a lead with a credit check, in Billing it is a payer with invoices, in Support it is a contact with tickets. One shared Customer for all three gives a bloated, coupled model.

    You discover boundaries with event storming (where experts argue over a term, or a pivotal event like "Order Placed"), a glossary, workflow handoffs and who owns which rules. Each context owns its data; others keep only the identity (CustomerId) and learn about changes through published events or an API, never by reading its tables. A context maps to a module or to one or more services, owned by one team (Conway's law). The trade-off: some duplicated data in exchange for models that change independently.

  2. When: Candidate mentions grouping commands and events into aggregates at design level. Why: Checks aggregate boundary design.
    How to answer

    An aggregate is a cluster of entities and value objects that must stay consistent together, with one entity as the aggregate root. Outside code talks only to the root, so the root can enforce the invariants: rules that must be true whenever the transaction commits (an order's total equals its lines; a booking never exceeds capacity).

    Keep aggregates small: draw the boundary around real invariants, not around every relationship. Reference other aggregates by id (CustomerId), not by object, so loading an order does not drag in the customer. Change one aggregate per transaction; when another aggregate must react, publish a domain event and update it in a separate transaction. The trade-off is eventual consistency between aggregates in exchange for low contention and clear ownership.

  3. When: Candidate produces a context map from the session. Why: Checks knowledge of context-mapping relationship patterns.
    How to answer

    A context map shows the bounded contexts and how their teams and models relate. Each relationship has an upstream (whose model influences others) and a downstream. The patterns describe who adapts: partnership (teams succeed or fail together), shared kernel (a small model both own), customer-supplier (upstream plans for downstream needs), conformist (downstream simply adopts the upstream model), anti-corruption layer (downstream translates to protect its model), open host service with a published language (upstream offers a stable, versioned protocol for many consumers) and separate ways (do not integrate).

    I choose by power (can I influence the upstream?), upstream model quality, how core my context is and how many consumers exist. The trade-off is translation cost versus model purity: an ACL costs code, conforming costs your model.

🛠 Real-world problems: how you handle them

Event storming exposes conflicting meanings of 'policy in force'
Situation
An [insurer] was starting a new [claims] product with [three] teams and a legacy policy administration system. Previous projects had had [recurring incidents] where claims were accepted on lapsed policies.
Signals
Early backlog refinement kept stalling on 'is the policy active?'; two teams had drafted different data models; incident history showed [several] cover-date errors in a year.
Investigation
Ran a [3.5-hour] big picture event storm with [12] people from underwriting, claims, finance and engineering on a Miro board; marked pivotal events and hot spots; followed up with a process-level session on lodgement.
Resolution
Defined separate Underwriting and Claims contexts, with Claims holding a `Cover` value object (cover on a date) translated from underwriting's policy model through an ACL. Wrote an ADR for the boundaries and sliced the backlog so the first slice was 'lodge a claim end to end with cover check'.
Prevention
Kept the board as a living artefact, a glossary per context in the repo, design-level sessions before each new flow, and a domain test suite for cover rules named in the experts' language.

How to tell it (STAR)

**S:** At [company], we were starting a new claims product with three teams, and past projects had accepted claims on lapsed policies [several times a year]. **T:** As [tech lead], I needed [a shared model and clear boundaries before we started building]. **A:** I facilitated a big picture event storm with [12] people. The biggest hot spot was that underwriting and claims meant different things by 'policy in force', so I proposed separate contexts with a translation layer, wrote the ADR with both teams, and sliced the backlog along the event flow. **R:** The first slice shipped in [five weeks], and in the first [year] we had [no] cover-date incidents.

More in Domain-Driven Design

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me