Quick revision
The short answer
Event sourcing, storing every change as an immutable event and deriving current state from them, gives a full audit history, temporal queries and the ability to rebuild read models, but as a company-wide default it is a costly multi-year bet. Events are stored forever, so their schemas must stay readable for years; projections, snapshots and replays add operational work; and deleting personal data under privacy law is hard with immutable logs, needing techniques such as per-subject encryption with deletable keys. I would use it selectively in core domains where history is a business need, note that event-driven integration does not require event sourcing, and train teams with examples before any adoption.
What to remember
In this answer, we evaluated event sourcing as a company-wide default. It gives a full audit history, temporal queries and rebuildable read models, but events are stored forever, so schemas must be versioned and readable for years, and projections, snapshots and replays add operational work. Deleting personal data is hard with immutable logs and needs techniques such as per-subject encryption with deletable keys. We concluded it should be used selectively in core domains where history is a business need, that event-driven integration does not require event sourcing, and that teams need training and examples before adopting it.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Event sourcing, storing every change as an immutable event and deriving current state from them, gives a full audit history, temporal queries and the ability to rebuild read models, but as a company-wide default it is a costly multi-year bet. Events are stored forever, so their schemas must stay readable for years; projections, snapshots and replays add operational work; and deleting personal data under privacy law is hard with immutable logs, needing techniques such as per-subject encryption with deletable keys. I would use it selectively in core domains where history is a business need, note that event-driven integration does not require event sourcing, and train teams with examples before any adoption.
Why this question is asked
Event sourcing is one of the most powerful patterns in the DDD toolbox and one of the most expensive to adopt widely. When a chief architect proposes it for every new service, the decision affects how hundreds of engineers will store data for the next decade. Interviewers ask senior candidates to evaluate this to see whether they can weigh real benefits against long-term costs and come back with a constructive alternative rather than a simple yes or no. In this answer, we will recap how event sourcing works, look at what it really gives us, then at the costs that grow over years, the privacy problem, and finally a selective adoption plan.
1A Quick Recap of Event Sourcing
In a traditional service, the database holds the current state: the account row says the balance is 120. In an event-sourced service, the database holds the sequence of events that led to that state: AccountOpened, MoneyDeposited 200, MoneyWithdrawn 80. To get the current state, the aggregate loads its events and replays them in order. To change state, it appends a new event; nothing is ever updated in place.
Reads usually do not replay events on every request. Instead, projections listen to the event stream and maintain read models, ordinary tables or search indexes shaped for queries. That is why event sourcing is nearly always combined with CQRS, separating the write model from read models.
2What It Really Gives Us
The benefits are real. We get a complete audit history for free, because the history is the data: we know not only that the balance is 120 but every change and when it happened. We get temporal queries: what was the state of this policy on 1 March, replayed from events up to that date. And we can rebuild read models: if we need a new report or find a bug in a projection, we replay all events into a new projection, which is impossible if we only stored current state.
These benefits matter enormously in some domains. In accounting, insurance, trading or logistics, regulators and the business genuinely need to know how a state was reached, and an event-sourced ledger is a natural fit. In a product catalogue, a user profile service or a content management service, they rarely justify the cost.
3The Costs That Grow Over Years
The first long-term cost is that events are stored forever. An event written in 2026 must still be readable in 2034, after many changes to the code. So event schemas need versioning and upcasters, small functions that convert an old event version into the current one when loading. Every service accumulates these, and they must be tested against real historical data.
The second cost is operational. Projections can fall behind or fail and need monitoring, replays of millions of events take hours and must be planned, and long-lived aggregates need snapshots, a stored state at some version, so loading does not replay ten years of events. Eventual consistency between write and read sides appears in every user interface. Each team needs to understand all of this, and mistakes in event design are permanent, because the events cannot be edited.
| Aspect | Benefit | Long-term cost |
|---|---|---|
| History | Full audit trail by design | Events kept and readable forever |
| Queries | State at any point in time | Read models via projections, eventually consistent |
| Change | Rebuild read models by replay | Replays take hours at scale |
| Schema | Facts recorded in business terms | Versioning and upcasters for every event |
| Privacy | Clear record of personal data use | Erasure needs crypto-shredding or similar |
| People | Strong domain thinking | Steep learning curve for every team |
4The Privacy Problem
Privacy laws such as the GDPR give people the right to have their personal data erased. In a normal database we delete or anonymise the row. In an append-only event store, the person's name and address may sit in thousands of immutable events, copied into projections and backups.
The common technique is crypto-shredding: encrypt personal fields in each event with a key specific to that person, store the keys separately, and delete the key when erasure is requested. The events stay, but the personal data in them becomes unreadable. It works, but it adds a key management service, encryption on every write, decryption on every read, careful handling of projections and backups, and legal review of whether it counts as erasure in each jurisdiction. Another approach keeps personal data out of events, referencing it by id in a separate, deletable store. Both are real engineering work that every event-sourced service would have to do.
5A Selective Adoption Plan
My response to the architect would be to agree with the value and disagree with the scope. I would propose event sourcing as an approved pattern for core domains where history is a business requirement, such as the ledger, policy lifecycle or order fulfilment audit, chosen per bounded context with a short decision record. Everywhere else, the default stays state-based storage with domain events published through an outbox.
It is worth making one point explicit, because it is often the real motivation: event-driven integration does not require event sourcing. Services can publish integration events reliably through a transactional outbox while storing current state in ordinary tables. Most of the decoupling benefit the architect wants comes from that, at a fraction of the cost.
Before any team adopts it, the platform group provides training, a reference implementation with versioning, snapshots, projections and crypto-shredding solved once, and a pilot in one core domain. After a year, we review the pilot's operational cost and developer experience with real numbers and decide whether to widen the pattern.
- Is history or point-in-time state a business requirement?audit, regulation, disputesYesNext questionNoState-based storage with outbox events
- Is it a core domain with lasting investment?YesNext questionNoState-based storage; add an audit table
- Does the team have training and the reference platform?YesAdopt event sourcing, with a decision recordNoTrain and pilot first
3 steps in order. Play them, or step through them one at a time.
6Follow-up questions
Is an audit table not enough for most audit needs?
Often it is. Writing a history row in the same transaction as each change gives an audit trail without making the history the source of truth. Event sourcing is worth it when the history drives behaviour, such as replaying a policy to a past date or rebuilding derived views.
Which tools would you use on the JVM?
Options include Axon Framework with Axon Server, EventStoreDB, or a well-designed append-only table in PostgreSQL with an optimistic concurrency check. Each has different operational and licence implications, which should be part of the evaluation.
How do you migrate an event-sourced service off the pattern if needed?
Project the events into current-state tables, switch the write model to update those tables directly, and keep the old events as an archive. It is possible but expensive, which is another reason to adopt selectively.
7Conclusion
In this answer, we evaluated event sourcing as a company-wide default. It gives a full audit history, temporal queries and rebuildable read models, but events are stored forever, so schemas must be versioned and readable for years, and projections, snapshots and replays add operational work. Deleting personal data is hard with immutable logs and needs techniques such as per-subject encryption with deletable keys. We concluded it should be used selectively in core domains where history is a business need, that event-driven integration does not require event sourcing, and that teams need training and examples before adopting it.
Open with
I would tell the architect that event sourcing is valuable, but as a default for every service it is too expensive a bet. The benefits are real: the event log is a full audit history by design, we can answer what the state was on any date, and we can rebuild read models or create new ones by replaying events.
Then, if they want more
In a ledger, an insurance policy lifecycle or a trading system, those are business requirements. But the costs grow for years. Events are stored forever, so every schema change needs versioning and upcasters that keep 2026 events readable in 2034, and design mistakes are permanent.
Projections, snapshots and replays of millions of events are ongoing operational work, and every UI has to deal with eventual consistency. Privacy is another big one: erasing a person's data from immutable events needs something like crypto-shredding, encrypting personal fields with a per-person key and deleting the key, which brings key management and legal review into every service.
And I would point out that what many people actually want is event-driven integration, which we can get with an outbox on top of normal state storage, without event sourcing at all.
So my proposal is to approve it as a pattern for selected core domains where history matters, decided per bounded context with a decision record, build a reference implementation and training first, pilot it in one domain, and review the real cost after a year before going any wider.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "A chief architect proposes event sourcing as the company-wide architecture for all new...": https://scrivio-interview-library.netlify.app/java/domain-driven-design/5c8217f030/