An event log fills quickly and becomes hard to reread when no page explains it. I therefore map event sourcing on a single architecture diagram before a team treats every append as obvious: what is stored, what is derived, and what is only in transit. ByteDiagram is the tool we build; I mention it only in the closing notes about how I draw the page.
This post is about mapping the pattern, not about picking a brand of log. If the question is how a broker such as Kafka is itself built, read the Apache Kafka architecture diagram first. If the question is how a managed bus routes custom events, see the EventBridge custom event bus diagram. Those posts stay on the transport. This one stays on the source of truth.
Why the event log needs a map
Martin Fowler's 2005 note on Event Sourcing states the idea cleanly: capture all changes to application state as a sequence of events, store those events, and use the log to reconstruct past states. Microsoft's Azure Architecture Center describes the same move in current language: instead of storing only the current state, store the full series of actions on an object in an append-only store that acts as the system of record, then materialize domain objects from that store.
The difficulty is not the sentence. Several different boxes get called "the event log" in conversation: the official record, a projection built so a screen can be queried, and a broker that fans events out. When those three share a single label, people get lost: they replay a stream that was never the source of truth, or they treat a bus as if it could answer what the current state of an order is. A diagram fixes the vocabulary before the code hardens it.
The boxes I put on the page
I limit the boxes and arrange them from left to right:
- The command side, where a request to change something arrives.
- The event stream for one entity, an ordered sequence of events that belong to that object.
- The event store, the append-only system of record.
- Projections, or materialized views, that turn the stream into something a query can use.
- An optional snapshot, which is a shortcut for rebuild, not a second source of truth.
- A gateway to external systems, so replay does not repeat side effects.
Microsoft's pattern page is useful here because it names the same split. Each entity has its own event stream. Applications derive current state by replaying the events in that stream, a process it calls rehydration. Because replaying a long stream on every request is costly, applications typically keep materialized views: read-only projections of the event store that are optimized for querying. Fowler makes the same distinction in older words: after a few changes you are persisting two different things, an application state and an event log. He notes that the official system of record can be either the event log or the current application state. On my page the event store is the system of record, and every current-state box is labelled as derived.
Write intent, not only the new number
Event design belongs on the diagram, not only in a schema file. Microsoft's guidance is to capture the business intent behind each change, not only the resulting state. In its seat-reservation example, an event that records that two seats were reserved is more valuable than an event that records that remaining seats changed to 42. The first event tells you what happened. The second only tells you the new number.
I put a short example on the page, as labels on two event boxes in the same stream. State-focused events, Microsoft warns, reduce the event store to a change log with no business meaning. Intent-focused events give you a meaningful audit trail and the flexibility to build new read models later without changing how writes are recorded.
How a command becomes an append
Microsoft walks through a workflow that I copy onto the page as a numbered sequence, because this is where people get lost. The presentation layer reads from a read-only store when it fills a screen. When a user takes an action, it sends a command, not a direct write to that store. A command handler loads the entity by retrieving its event stream from the event store and replaying those events to reconstruct current state. Business logic then runs and new events are raised. Event handlers persist those events, update projections, and, where needed, talk to other systems.
I number those steps and I keep the read store and the event store as separate boxes. If they collapse into one, the diagram has already failed its job. Concurrency sits on the event store as a small note: Microsoft describes optimistic concurrency, where two handlers can load the same entity and both try to append, and the store rejects an append if the stream changed since it was read. The handler then reloads, reevaluates, and retries. That is enough to draw.
Rebuilds, snapshots, and what is allowed to be missing
The reason to keep the log at all is that you can throw the derived state away and build it again. Fowler lists complete rebuild, temporal query, and event replay as the facilities that sit on top of the log. Microsoft calls the everyday version of this rehydration, and recommends snapshots as an optimization: a serialized copy of the entity at a point in the stream, so you replay only what came after. Snapshots are not a replacement for the stream. The stream remains the source of truth, and snapshots can be regenerated from it. That sentence goes on the snapshot box, because if a snapshot is drawn as a second official record, readers will not know which copy to trust.
Microsoft also notes a hard rule: you should never update the event data in place. The way to undo a change is to append a compensating event, which reverses or corrects a previous one. The original event stays. I draw that as a later event in the same stream, labelled as compensation, with the earlier event still visible.
The broker is a neighbour, not the store
Microsoft states this distinction directly. Do not confuse an event store with an event stream message broker. Message brokers such as Apache Kafka, it says, typically lack per-entity stream queries and optimistic concurrency. They work well as a distribution layer to fan events out to projections and external consumers, but they are not a substitute for an event store.
On the diagram, Kafka or any other broker sits to the side, on the fan-out path from the event store, not in the system-of-record slot, and it then feeds projections and external systems.
If a team already uses a broker as the official log, the diagram should say so honestly, and it should also say which of those store behaviours they have had to build themselves.
Projections, delay, and the search path
Materialized views are eventually consistent. Microsoft is explicit: there is a delay between handling a request, appending to the event store, publishing, and consumers updating a projection. During that window the read model can lag. The diagram should mark that lag, not hide it.
One common projection is a search index, which has its own write-to-query path and its own moment when a write becomes visible to a query. I do not fold that path into this page. I give it one box and point to how I diagram a search index pipeline from write to query. When the open question is still what a pipeline ought to accomplish, before any product is picked, I start from why I diagram a data pipeline first.
External systems and replay
Replay is only safe if side effects do not fire a second time. Fowler's discussion of external updates is the reason I keep a gateway on the page. If events cause update messages to external systems, replay will go wrong because those systems cannot tell real processing from a rebuild. His advice is to wrap external systems with a gateway that can be disabled during replay, in a way that is invisible to domain logic. Idempotency belongs next to that gateway. Microsoft notes that delivery to consumers is typically at least once, so handlers must be safe if they see the same event twice. The projection updater and the external gateway both need that property.
What stays off the diagram
I leave vendor capability lists off the page, along with made-up throughput, lag percentages, and replay times nobody timed. Fowler and Microsoft describe the pattern; they do not supply a team's numbers. An empty label is more honest than an invented figure. Microsoft's tip is to apply it where the history matters, such as a ledger or an order pipeline, and to keep ordinary CRUD where the complexity is not justified. If only part of the system is event sourced, the diagram should show that boundary.
ByteDiagram notes for the event log
These ByteDiagram panels were checked in the guest canvas on 12 November 2026; the export line is from our 19 Oct 2026 check.
Templates ("Start from a template") offers "Web App Stack" and "Microservices" starters, which give a first skeleton for the command side and the store. Icons sit in groups — Databases, Messaging & Streaming, AWS Services, Azure, Google Cloud — which is enough for the store, the broker, and the cloud edges. A "Section", labelled "Dashed zone for grouping steps", can ring the event store and the read models, and "Auto-arrange" realigns boxes after edits.
When a command, an append, and a later projection update are easy to shuffle, Timeline helps: slide the bars so each box appears in that order, then press Play or Pause, or loop the playback, to walk the same path again. On this page the append would play first and the projection after it. Once the sheet is finished, its Export menu includes PNG, SVG and Animated GIF (checked 19 Oct 2026). For a design review a still image is usually enough; an animated one matters only when readers keep swapping the sequence. No account is required to try it: the guest canvas top bar reads "Local only". A longer guide to playing a diagram in sequence is how to animate an architecture diagram step by step, if the playback controls themselves need a walkthrough.
FAQ
What is an event sourcing architecture diagram?
It is one page that shows an append-only event store as the system of record, the event stream of each entity, the projections built from those streams, and the path a command takes before a new event is appended. It also marks neighbours such as a message broker so they are not mistaken for the store.
How is an event store different from a message broker such as Kafka?
Microsoft's Event Sourcing pattern says not to confuse the two. Brokers such as Apache Kafka typically lack per-entity stream queries and optimistic concurrency. They are useful for distributing events to projections and other consumers, but they are not a substitute for an event store.
Do I have to replay every event to show current state?
No. The event stream remains the source of truth, but you can keep materialized views for queries and snapshots to speed up rehydration. Microsoft describes a snapshot as the entity's state at a point in the stream, after which you replay only the later events.
How should a correction appear on the diagram?
As a new compensating event in the same stream, not as an edit to the old one. Microsoft's guidance is that event data should not be updated in place, and that a compensating event reverses or corrects a previous event while leaving the original in the log.
Sources
Checked on 15 November 2026.
- Martin Fowler, Event Sourcing (12 December 2005): the event sequence as the record of change, rebuild, temporal query, replay, and external-update gateways.
- Microsoft Azure Architecture Center, Event Sourcing pattern: the append-only store as system of record, per-entity streams, rehydration, projections, intent-focused events, optimistic concurrency, compensating events, snapshots, and the warning not to treat a message broker such as Apache Kafka as an event store.
- ByteDiagram team: the page lists Rahish as Founder & CEO.
- ByteDiagram guest canvas: Templates, Icons, the Section shape, Auto-arrange and Timeline, checked 12 November 2026; Export menu, checked 19 October 2026.
Draw the log before anyone gets lost
Pick one entity you already care about and draw its stream, the store it lives in, the projections that read it, and anything that is only a bus. Label which box is the system of record, mark compensation as an append, and prefer an empty label to a guessed figure.
Map the event log on one page
Use ByteDiagram, the tool we built, to place the command, the event store, each stream and the projections on one sheet, wrap the derived read models in a dashed section, and take a still PNG or SVG into the review.
Visit ByteDiagram