Scrivio Interview library
LeadershipPrincipal7 min read · updated 12 November 2026

Some architects propose making Kafka the system of record for the company, with infinite retention on key topics and databases treated as derived views. How would you evaluate this proposal for a ten-year horizon?

Making Kafka the system of record gives us a replayable history and strong decoupling, but it turns topic contracts and retention into commitments that must hold for ten years. I would evaluate it on storage cost (tiered storage helps), the obligation to delete personal data from an immutable log, schema evolution over many years, the time and tooling needed to rebuild views from long histories, and whether we can operate, back up and recover the cluster as seriously as a database. My likely answer is to adopt it only for domains where history has clear value, with explicit ownership and governance, and to keep databases as the source of truth elsewhere.

Why this question is asked

Proposals like this come from a real insight: if every change is an event in a durable log, any database is just a view that can be rebuilt, and new services can replay history to build their own views. Over a ten-year horizon, though, the decision is less about elegance and more about obligations, costs and failure modes. Interviewers ask it at this level to see whether we can evaluate an architecture as a long-lived commitment. In this answer, we will be clear about what the proposal offers, then examine storage, data deletion, schema evolution, rebuilding views and operations, and finish with how I would decide and where I would apply it.

1What the Proposal Offers

In the proposed model, a topic such as orders.events holds every order change since the beginning, with retention.ms set to -1, meaning keep for ever. Services build databases, search indices and caches by consuming the topic, and if a view is lost or needs a new shape, they rebuild it by replaying from offset zero. This is event sourcing at company scale.

The benefits are real: history is never lost, new consumers need no export from the owning team, buggy views are fixed by replaying, and producers and consumers are decoupled. The question is what this costs over ten years.

2Storage Cost and Tiered Storage

Infinite retention means storage grows for ever. A topic receiving 5 MB/s writes about 430 GB a day, roughly 160 TB a year, and with replication factor 3 on broker disks that is close to half a petabyte a year for one topic. Over ten years, keeping that on broker disks is very expensive.

Tiered storage changes the economics. Older log segments are moved to object storage, and brokers keep only recent data locally; consumers reading old offsets fetch it from the remote tier transparently. It arrived as early access in Kafka 3.6 and was marked production ready in a later 3.x release, so check your version and provider. Object storage costs a fraction of replicated broker disk, but reading years of history from it is slower and has its own request costs, which matters for rebuilds. Compacted topics, which keep only the latest record per key, are a cheaper alternative where we need current state rather than full history.

3Deleting Personal Data From an Immutable Log

Data protection laws give people the right to have their personal data erased, and retention rules often say how long we may keep certain data. A database can delete a row. A Kafka log cannot delete one record from the middle of a segment. For keyed, compacted topics we can write a tombstone, a record with the key and a null value, and compaction eventually removes earlier records for that key, but not immediately and not in topics that use time-based retention.

The common technique is crypto-shredding: encrypt each person's personal fields with a key specific to that person, kept in a separate key store, and delete the key when the person asks to be erased. The events stay in the log, but the personal parts become unreadable. This works, but it must be designed in from the first day, every producer must follow it, and every consumer must handle events it can no longer decrypt. That is a significant, permanent cost of the proposal.

4Schema Evolution Over Many Years

An event written today must still be readable in 2036 by code that does not exist yet. Over ten years, the meaning of an order changes many times: fields are added, split, renamed and retired. With infinite retention, every consumer that replays from the beginning must understand every version of the event ever written.

A schema registry with compatibility rules, such as backward or full compatibility in Avro or Protobuf, prevents breaking changes from being published, but it does not remove the burden of old versions. Teams end up writing upcasters, code that converts old event versions into the current shape during replay, and that code accumulates for a decade. Topic contracts therefore become long-lived public APIs, and changing them needs the same care as changing a public API.

5Rebuilding Views Takes Time

Replay is the selling point, so we must check it is practical. Suppose orders.events holds 20 billion events after ten years, and a rebuilding consumer can process 100,000 events per second. A full replay takes 200,000 seconds, more than two days, and longer if the view's database cannot absorb writes that fast. During that time the new view is not usable, so we need a way to build it alongside the old one and switch over.

This is solvable with tooling: snapshots of views at known offsets so replays start from a recent point, parallel replay across partitions, and a tested runbook. But it must be built and exercised regularly, ideally by rebuilding a real view every quarter, or it will fail the first time it is truly needed.

Evaluating the proposal over ten years
ConcernQuestion to answerMitigation
StorageCost of years of replicated data?tiered storage, compaction where possible
ErasureCan we delete a person's data?crypto-shredding, tombstones on compacted topics
SchemasCan 2036 code read 2026 events?registry compatibility rules, upcasters
RebuildsHow long does a full replay take?view snapshots, parallel replay, drills
OperationsCan we recover the cluster itself?replication across sites, tested restores

6Operating Kafka Like a Database

If Kafka is the record and databases are derived, then losing the cluster means losing the company's data, not just a few hours of messages. The cluster needs the operational maturity we expect from the primary database: replication across availability zones, a second cluster in another region kept in sync by a replication tool, regular tested recovery, careful access control on who can delete topics or change retention, and audit of those changes.

Backups are harder than for a database: there is no simple point-in-time dump of a petabyte log, so disaster recovery usually relies on cross-cluster replication plus object storage for tiered data, and both must be tested. A mistaken retention change could delete years of history in minutes, so such changes need guardrails.

7How I Would Decide

I would not accept or reject the proposal for the whole company. I would ask, domain by domain, whether the history itself has clear business value. Order lifecycles, payments ledgers and inventory movements often do: auditors, analysts and new services all benefit from complete history. User profile updates or click events often do not, and keeping them for ever mainly creates erasure obligations.

For the domains that qualify, I would adopt it with explicit governance: a named owning team for each record topic, schema rules, a data protection design such as crypto-shredding, a retention policy reviewed yearly, and a tested rebuild process. For other domains, the database stays the source of truth and publishes changes through an outbox or change data capture with finite retention. I would start with one domain, run it for a year including a full rebuild drill, and expand based on what we learn.

Step throughDeciding per domain
  1. Does the full history have clear business value?
    YesConsider Kafka as the recordNoKeep the database as the record
  2. Can we meet erasure obligations?
    YesDesign crypto-shredding firstNoDo not use infinite retention
  3. Assign an owner and schema rules
  4. Pilot one domain for a yearinclude a full rebuild drill
  5. Expand only on evidence

5 steps in order. Play them, or step through them one at a time.

8Follow-up questions

Is a compacted topic a good system of record?

For current state it can be, because compaction keeps the latest value per key and supports tombstones for deletion. But it loses history, so it does not give the full audit trail that motivates the proposal. Many designs combine both: an event topic with long retention for history and a compacted topic for current state.

9Conclusion

In this answer, we evaluated making Kafka the system of record for ten years. It offers replayable history and decoupling, but it turns topic contracts and retention into long-lived commitments. We weighed storage cost and tiered storage, erasure of personal data through crypto-shredding or tombstones, schema evolution over many years, the days a full rebuild can take, and the need to operate and recover the cluster like a primary database. The conclusion is to adopt it only for domains where history has clear value, with explicit ownership and governance, and to pilot before expanding.

What to say in the interviewAbout 90 seconds aloud

Open with

I would take the proposal seriously, because it does give us a replayable history, easy onboarding of new consumers and decoupling. But over ten years it turns every record topic into a permanent contract, so I would evaluate a few things.

Then, if they want more

Storage: infinite retention on a busy topic is hundreds of terabytes a year with replication, so we would need tiered storage to move old segments to object storage, and compaction where we only need current state.

Erasure: we cannot delete one record from a log, so personal data needs crypto-shredding from day one, with per-person keys we can delete, or tombstones on compacted topics. Schemas: code in 2036 must read events from 2026, so we need a schema registry with compatibility rules and upcasters for old versions.

Rebuilds: replaying twenty billion events at a hundred thousand per second takes over two days, so we need view snapshots, parallel replay and regular drills. And operations: if the cluster is the record, it needs cross-region replication, tested recovery, and strict control over retention changes, like a primary database. My recommendation would be to decide per domain.

Where the history has clear business value, such as orders or payments, adopt it with a named owner, governance and a one-year pilot including a full rebuild. Elsewhere, keep the database as the source of truth and publish changes through an outbox or change data capture.

About this answer

Last updated
12 November 2026
Versions it names
Kafka 3.6
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.
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 Kafka the system of record for the company, with infinite...": https://scrivio-interview-library.netlify.app/spring-boot/kafka/48640a00bf/