Quick revision
The short answer
Append-only records give us full history, natural audit, easy replication and analytics, and fewer update conflicts, but they cost derived read models, eventual consistency, more storage, the long-term evolution of old event schemas and new skills for every team. I would not adopt it company-wide by decree: I would use it where history is the business (finance, orders, compliance), keep plain CRUD where it is enough, and set governance up front, especially for erasing personal data from records that are never supposed to change.
What to remember
In this answer, we weighed an append-only data model as a company-wide default. It brings history, audit, easier replication and fewer conflicts, but costs read models, eventual consistency, storage and permanent schema evolution, and it asks every team for new skills. The sensible path is to adopt it where history matters, such as finance, orders and compliance, keep CRUD elsewhere, record the choice per service, pilot first, and settle retention and personal-data erasure before the first event is stored.
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.
Append-only records give us full history, natural audit, easy replication and analytics, and fewer update conflicts, but they cost derived read models, eventual consistency, more storage, the long-term evolution of old event schemas and new skills for every team. I would not adopt it company-wide by decree: I would use it where history is the business (finance, orders, compliance), keep plain CRUD where it is enough, and set governance up front, especially for erasing personal data from records that are never supposed to change.
Why this question is asked
Proposals like this sound attractive in architecture meetings: never lose information, replay anything, feed analytics for free. They also change how every developer in the company writes and reads data, for years. Interviewers ask senior candidates this because the right answer is not yes or no; it is a structured judgement about where the model pays for itself and what it will cost the organisation. In this answer, we will recap what an append-only model is, weigh its real benefits and costs with an example, look at the people side, decide where to adopt it, and set out the governance rules, including personal data, that must exist before anyone starts.
1A Quick Recap: Mutable Entities Versus Append-Only Records
In the usual model, a table holds the current state. An Order row has a status column, and when the order ships we run UPDATE orders SET status = 'SHIPPED'. The previous value is gone unless we saved it somewhere else.
In an append-only model we never change a record. We write facts as they happen: OrderPlaced, PaymentCaptured, OrderShipped. Each one is an immutable event with a timestamp. The current state is derived by reading the events in order, either on demand or into a separate table that is kept up to date, which is called a read model or projection. Event sourcing is the strict form of this, where the events are the only source of truth; a softer form keeps normal tables and adds an append-only history beside them.
2Weighing the Benefits Against the Costs
The benefits are real. We get complete history for free, which answers questions like what did this customer's address look like when we sent the invoice. Audit becomes a property of the model instead of extra code. Replicating data to other services and to analytics is easier, because consumers just read new events from a position. And because we only insert, two transactions rarely fight over the same row, so optimistic lock conflicts on hot rows mostly disappear.
The costs are just as real, and they arrive later. Every screen that shows current state needs a read model, and that read model is updated after the event is written, so users can briefly see stale data; this is eventual consistency, and product teams must design for it. Storage grows: a ledger with 50 million events a year keeps all of them, plus projections. Above all, old events never go away, so their schema has to stay readable forever. When the OrderPlaced event gets a new required field in year three, every consumer must still understand the year-one version, which needs versioning, upcasting (converting old events to the new shape on read) and discipline.
| Concern | Mutable CRUD tables | Append-only records |
|---|---|---|
| History and audit | extra audit tables or none | built in |
| Reading current state | one simple query | read model, maybe stale |
| Update conflicts | on hot rows | rare, inserts only |
| Storage | current rows only | every event forever, plus projections |
| Schema change | migrate the table | old event versions must stay readable |
| Deleting personal data | DELETE the row | needs crypto-shredding or redaction |
| Skills needed | common | event modelling, idempotent consumers |
3The People Side: Skills and Mixed Styles
An architecture is only as good as the teams who apply it. Event modelling is a different skill from table design: choosing events that describe business facts (PaymentCaptured) rather than technical changes (RowUpdated), deciding event granularity, and writing consumers that are idempotent, meaning they can safely process the same event twice. Teams that learn this on the job in production make expensive mistakes.
The second risk is mixing styles carelessly. If one service treats events as the truth while another quietly updates the same data in a table, nobody knows which one is right when they disagree. So whatever we choose, each piece of data needs one clearly named source of truth, and the style should be consistent inside a bounded area of the business.
4Where I Would Adopt It and Where I Would Not
The pattern earns its cost where history is the business itself. A payment ledger, order lifecycles with disputes and refunds, insurance claims, and anything a regulator asks us to reconstruct are good fits: we need the history anyway, and building it on top of mutable tables means writing audit code that is easy to get wrong.
For a product catalogue, user preferences or an internal admin tool, plain CRUD with an audit table or Hibernate Envers is cheaper and perfectly adequate. So my recommendation would be a policy, not a mandate: append-only where the domain needs history, with a short decision record per service explaining the choice, and a pilot in one domain first, for example the payment ledger, with clear success measures such as audit requests answered without manual SQL and no rise in incident rate.
- Must we reconstruct past states?YesUse append-only recordsNoNext question
- Are update conflicts on hot rows a real problem?YesConsider append-onlyNoNext question
- Is an audit table or Envers enough?YesKeep CRUD with auditNoDiscuss case by case
- Record the decisionshort decision record per service
4 steps in order. Play them, or step through them one at a time.
A few honest questions settle most domains quickly.
5Governance Before Anyone Starts
Immutable data collides with privacy law. Under GDPR a person can ask for their personal data to be erased, but our model says records never change. We must decide how to handle this before the first event is written, not after the first erasure request. Common answers are to keep personal data out of events and store only a reference to a separate, deletable record, or to encrypt personal fields with a per-person key and delete the key on erasure (crypto-shredding), which makes the stored bytes unreadable.
Alongside that, we need retention rules per event type (how long we keep it and what happens after), a schema registry or equivalent with compatibility rules for event versions, and clear ownership of each event stream. Without these, the event store becomes a permanent archive that nobody is allowed to change and nobody fully understands.
6Follow-up questions
Is event sourcing required to get history?
No. Many teams keep normal tables as the source of truth and add an append-only history, for example with Hibernate Envers or an outbox table that records each change as an event. That gives most of the audit and integration benefit without forcing every read through projections.
How do we handle a schema change in old events?
We version events and keep consumers able to read every version still stored. Additive changes with defaults are the safe kind. For bigger changes we write an upcaster that converts old versions to the new shape when they are read, and we test it against real samples of old events.
What would make you stop the rollout?
Clear signs that the cost exceeds the benefit: teams spending more time on projections and replay bugs than on features, user complaints about stale screens, or erasure requests we cannot satisfy. That is why I would agree on measures before the pilot starts.
7Conclusion
In this answer, we weighed an append-only data model as a company-wide default. It brings history, audit, easier replication and fewer conflicts, but costs read models, eventual consistency, storage and permanent schema evolution, and it asks every team for new skills. The sensible path is to adopt it where history matters, such as finance, orders and compliance, keep CRUD elsewhere, record the choice per service, pilot first, and settle retention and personal-data erasure before the first event is stored.
Open with
I'd start by separating the idea from the mandate. Append-only records give real benefits: full history and audit for free, simple replication to other services and analytics, and far fewer update conflicts because we only insert.
Then, if they want more
But the costs show up later. Every current-state screen needs a read model, which means eventual consistency the product has to accept. Storage keeps growing. And old events live forever, so we need versioning and upcasting for their schemas.
Teams also need event modelling skills and idempotent consumers, and mixing styles carelessly, where one service trusts events and another updates tables, creates confusion about the source of truth. So I wouldn't adopt it everywhere.
I'd use it where history is the business, like a payment ledger, order lifecycles or anything a regulator wants reconstructed, and keep CRUD with an audit table or Envers for things like catalogues or settings. I'd run a pilot in one domain with agreed success measures and write a short decision record for each service.
Before any event is written, I'd also want governance: retention rules per event type, schema compatibility rules, owners for each stream, and a clear answer for GDPR erasure, typically keeping personal data out of events or using crypto-shredding.
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 documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Data JPA reference, Hibernate ORM documentation, Spring Framework reference, Transaction management
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 "Some architects propose making event or append-only records the main data model across...": https://scrivio-interview-library.netlify.app/databases/jpa-fundamentals/146b968974/