When event sourcing helps business record history

Understand events, corrections and projections, with a worked account example and checks for replay, privacy, schema changes and external side effects.

Presentation, command handlers, an event store, a queue and handlers update projections and external systems.
Microsoft’s event-sourcing example separates commands, event history and derived read views. Resized and letterboxed for web; figure contents are unchanged. Microsoft, Azure Architecture Center, Event Sourcing pattern overview · CC BY 4.0

Should business records use event sourcing?

Event sourcing stores accepted changes as events and derives current state from their history. It can support reconstruction and investigation, but adds complexity around schemas, corrections, privacy and external effects. Choose it when those requirements justify the cost, and distinguish accepted business events from unverified statements or ordinary application logs.

Keep these in mind

  • An incoming message is not automatically an accepted business event.
  • Corrections need explicit meaning and traceable relationships.
  • Replaying history must not repeat live external actions.
Accepted event → Versioned history → Projection → Linked correction → Controlled replay
Accepted changes build a current view while preserving the explanation behind later corrections.

Choose the record that represents the truth

An incoming request, an approved adjustment and a verified receipt are different events. Define which belong in the authoritative business history.

The Azure event-sourcing pattern describes storing changes in an append-only record. It also highlights the pattern’s significant trade-offs.

Many applications can use ordinary records with a suitable change history. Avoid adopting event sourcing only because an AI interface produces many messages.

Separate events from the current projection

A projection converts accepted events into a useful current view. Different projections can show an account balance, open work or a historical timeline.

Martin Fowler’s event-sourcing discussion explains reconstruction from event history. The original discussion is architectural guidance, not a financial-control standard.

Document the calculation and event versions used by each projection. A saved history cannot explain a total if its interpretation remains unknown.

A worked balance-history example

Consider an illustrative account beginning with an accepted ₹50,000 invoice. A verified ₹15,000 receipt reduces the remaining amount to ₹35,000.

An authorized ₹3,000 credit then reduces it to ₹32,000. These simplified figures exclude tax and allocation complications.

A later correction should explain the affected event and approved adjustment. Deleting the earlier receipt would obscure why yesterday’s view differed.

Define corrections without hiding meaning

A compensating event can reverse or adjust an earlier accepted change. Its meaning should be explicit rather than a generic negative amount.

Privacy and retention requirements also need a design. Append-only storage is not permission to keep unnecessary personal information forever.

Decisions in an illustrative event-history design
SituationRequired designReason
Duplicate receipt eventStable event identity and deduplicationAvoid reducing the amount twice.
Incorrect allocationLinked correction with authorityExplain the changed customer account.
New event schemaVersioned interpretation or migrationKeep older events understandable.
Record contains personal dataRetention and deletion strategyAvoid indefinite sensitive-data accumulation.

Replay in a controlled environment

Reconstruction should use stored events and documented interpretation rules. Calls to a live payment or messaging service require separate treatment.

A replay that sends historical reminders again has crossed an unsafe boundary. Disable external effects or replace them with recorded responses.

Compare reconstructed state with known checkpoints. Differences should produce an investigation rather than a silent replacement of production records.

  1. Define accepted event types and their business authority.
  2. Assign stable identifiers and version each event schema.
  3. Document correction and sensitive-data handling rules.
  4. Rebuild projections without live external side effects.
  5. Verify reconstructed results against independently checked examples.

Budget for the operational burden

Event sourcing adds responsibilities for replay, monitoring, migrations and support tooling. Staff also need a readable explanation of unusual histories.

Measure recovery time and projection lag alongside write throughput. A system that records quickly may still take too long to reconstruct.

Keep source statements separate when they have not been accepted. Their evidence may support review without becoming authoritative financial events.

Choose the pattern for a defined need such as historical reconstruction. An ordinary application with well-designed change records may meet simpler requirements more economically.

Keep representative historical event samples for schema-change tests. A new reader should reconstruct their intended meaning without depending on undocumented assumptions.

Also test rebuilding after an event type is retired. Retaining a name without the old interpretation can create a technically readable but incorrect history. Define how authorized corrections appear in both historical and current views.

Common questions

Is event sourcing the same as an audit log?

No. An audit log records activity, while an event-sourced model uses events to derive its state. Implementations can combine both.

Can events ever require deletion?

Privacy, retention and security requirements can require special handling. Plan data minimization, separation and deletion mechanisms before choosing an append-only design.

Sources & further reading

Primary references for the facts and frameworks discussed. Original worked examples are illustrative and separate from research results.

  1. Event Sourcing pattern, Azure Architecture Center ↗

    Supports append-only state changes, projections and complexity trade-offs.

  2. Event Sourcing, Martin Fowler ↗

    Primary architectural discussion supporting reconstruction and external-system concerns.

Published by the team building Daltn. Comparisons are first-party analysis, not independent reviews. Our editorial approach.

Your contact details

We use your email and role to respond to early-access requests. For an Enterprise demo, we use your name, work email, company and any workflow details you share to follow up about the demo.

You can ask us to update or delete your details by emailing ceo@dotsuper.net.