Quick revision
The short answer
Start from requirements per data class: RPO and RTO, whether consumers must resume at identical offsets, active-active or active-passive, residency rules and acceptable cross-region cost. MirrorMaker 2 is open and vendor-neutral but has approximate offset translation and must be operated; vendor offset-preserving replication simplifies failover but ties us to the vendor, so we price the lock-in and the exit path; application dual writes lack atomicity and push complexity into every team, so they fit only narrow, reconcilable cases. Decide per tier, standardise one mechanism per tier, test failover with real consumers on a schedule, and revisit as Kafka and vendor features change.
What to remember
In this answer, we saw that the replication choice should start from requirements per data class: RPO, RTO, offset needs, mode, residency and cost. MirrorMaker 2 is neutral but approximate and must be operated, vendor offset-preserving replication eases failover at the price of lock-in that we price with an explicit exit path, and dual writes lack atomicity and spread complexity, so they fit only narrow reconcilable cases. We decide per tier, standardise one mechanism per tier, test failover with real consumers on a schedule, and review yearly.
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.
Start from requirements per data class: RPO and RTO, whether consumers must resume at identical offsets, active-active or active-passive, residency rules and acceptable cross-region cost. MirrorMaker 2 is open and vendor-neutral but has approximate offset translation and must be operated; vendor offset-preserving replication simplifies failover but ties us to the vendor, so we price the lock-in and the exit path; application dual writes lack atomicity and push complexity into every team, so they fit only narrow, reconcilable cases. Decide per tier, standardise one mechanism per tier, test failover with real consumers on a schedule, and revisit as Kafka and vendor features change.
Why this question is asked
Cross-region replication is a decision that outlives the people who make it. Once fifty teams build failover runbooks around one mechanism, changing it takes years. Today's MM2 clusters need constant attention, a vendor offers something easier, and some teams want to bypass the platform altogether. Interviewers ask this to see whether we can lead a decision with real trade-offs, rather than picking the newest or the most familiar option. In this answer, we will set out the requirements per data class, look at the three options and what each really costs, decide per tier, and set up the testing and review that keep the decision right.
1Start From Requirements, Not Tools
Not all data needs the same protection. Payment events may need an RPO, the data we can afford to lose, of seconds and an RTO, the time to recover, of minutes. Clickstream analytics might accept an hour of loss and a day of recovery. So we group topics into a few data classes and write down, per class, the RPO and RTO, whether consumers must resume at exactly the same offsets after failover, whether the class is active-active or active-passive, which residency rules apply, and how much cross-region traffic we will pay for.
| Tier | RPO / RTO | Offsets and mode |
|---|---|---|
| Critical (payments) | seconds / minutes | Exact resume desirable; active-passive |
| Business (orders, inventory) | under a minute / 15 minutes | Reprocessing OK if idempotent; active-active |
| Analytics (clickstream) | an hour / a day | Replay fine; one-way copy |
| Regional only (EU personal data) | local DR only | Must not leave the region |
Doing this first changes the conversation. Instead of arguing which tool is best, we ask which tool meets each tier's requirements at the lowest total cost, including the cost of operating it and of leaving it later.
2Option 1: MirrorMaker 2
MM2 is open source, part of Apache Kafka, and works between any Kafka clusters, managed or self-run, from any vendor. That neutrality is its biggest strength: it never ties the replication choice to a hosting choice. Its costs are real, though. It re-produces records, so offsets differ between clusters and consumer failover relies on translation that is deliberately approximate; consumers must be idempotent and accept some reprocessing. And we operate it as a Connect cluster per flow, with its own monitoring, upgrades and failure modes, which is the attention our current setup needs.
Much of today's pain may be operational rather than inherent: hand-built MM2 clusters, missing alerts on checkpoint age, no standard deployment. Part of the evaluation is honestly asking how much of the cost would disappear with standard automation, before we compare it with a vendor.
3Option 2: Vendor Offset-Preserving Replication
Some vendors replicate between their own managed clusters in a way that keeps offsets identical. That removes the hardest part of failover: a consumer resumes at the same offset in the other region, with no translation and no extra reprocessing. For the critical tier, that is valuable.
The price is lock-in, and it is broader than it looks. The feature works only between that vendor's clusters, so in practice both sides of every replicated flow, and the teams' runbooks, depend on the vendor. We price that explicitly: the licence cost over five years, the cost of migrating out if prices rise or the vendor changes direction, and a written exit path, for example falling back to MM2 with translated offsets. If the exit path is credible and the price acceptable, lock-in is a trade we can make knowingly for the tiers that benefit most.
4Option 3: Application Dual Writes
The teams' proposal is to write each event to both regions directly. It looks simple, but there is no atomicity between two clusters: one write can succeed while the other times out, and the application cannot roll back the first. Retries create duplicates, partial failures create gaps, and the two regions slowly diverge with no tool to show where.
6 messages in order. Play them, or step through them one at a time.
No step can make both writes succeed or fail together.
Every team that dual-writes must also build reconciliation, retry logic and monitoring, so the complexity the platform should own is copied into fifty codebases. We accept dual writes only for narrow cases where the data is idempotent and can be reconciled, for example reference data that is fully republished every hour, and only with a reconciliation job that compares the regions.
5Deciding per Tier and Proving It Works
With requirements and costs on the table, the decision is per tier, and each tier gets exactly one standard mechanism. A typical outcome is vendor offset-preserving replication for the critical tier if its exit path holds up, MM2 with standard automation and checkpoint monitoring for the business and analytics tiers, no replication at all for regional-only data, and dual writes nowhere except documented exceptions. One mechanism per tier means one runbook, one set of alerts and one skill set to maintain.
A replication design is only as good as its last failover test. We schedule failovers per tier, at least quarterly for critical data, with real consumers rather than synthetic ones, and measure actual RPO, RTO and reprocessing against the targets. The results go to the same review as the decision itself.
6Revisiting the Decision
The landscape moves. Kafka itself keeps improving MM2 and its offset translation, vendors add features and change prices, and storage-based approaches change the cost of cross-region copies. So the decision has a review date, yearly, with three inputs: failover test results, the full cost of each mechanism including our engineers' time, and the state of the alternatives. Because each tier has one mechanism behind a standard runbook, changing a tier is a bounded migration rather than a rewrite across fifty teams.
7Follow-up questions
How do you stop teams from dual-writing anyway?
By making the standard mechanism easy and good: self-service requests to replicate a topic, clear failover runbooks and published RPO numbers. Then we review architecture proposals for dual writes and ask for reconciliation designs, which usually makes the cost visible enough that teams choose the platform.
Is identical offsets ever strictly required?
Rarely. Most consumers can be made idempotent, which makes approximate translation acceptable. It matters most where reprocessing has external side effects that cannot be deduplicated, which is often a sign to fix idempotence in that consumer rather than to buy replication.
What does a credible exit path from the vendor look like?
A tested procedure to set up MM2 between the clusters, translate offsets and cut consumers over, with the time and effort measured once in a rehearsal. Without that rehearsal, the exit path is an assumption.
8Conclusion
In this answer, we saw that the replication choice should start from requirements per data class: RPO, RTO, offset needs, mode, residency and cost. MirrorMaker 2 is neutral but approximate and must be operated, vendor offset-preserving replication eases failover at the price of lock-in that we price with an explicit exit path, and dual writes lack atomicity and spread complexity, so they fit only narrow reconcilable cases. We decide per tier, standardise one mechanism per tier, test failover with real consumers on a schedule, and review yearly.
Open with
I would start from requirements, not tools. I would group topics into a few data classes and write down for each the RPO and RTO, whether consumers must resume at identical offsets, active-active or active-passive, residency rules and what cross-region traffic we will pay for.
Then, if they want more
Then I would compare the options against those tiers. MirrorMaker 2 is open source and vendor-neutral, which I value, but offsets differ between clusters, translation is approximate so consumers must be idempotent, and we operate it as a Connect cluster. I would check how much of our current pain is just missing automation and monitoring.
Vendor offset-preserving replication makes consumer failover much simpler, but it ties both sides and our runbooks to one vendor, so I would price the lock-in over several years and require a rehearsed exit path. Application dual writes I would discourage: there is no atomicity between regions, partial failures make the clusters diverge, and every team would rebuild retries and reconciliation.
I would allow them only for narrow, idempotent, reconcilable data. The decision is then per tier, with one standard mechanism per tier, for example vendor replication for the critical tier if the exit path holds and MM2 for the rest.
Finally, we test failover with real consumers on a schedule and revisit the decision yearly as Kafka and vendor features change.
About this answer
- Last updated
- 13 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
- Apache Kafka documentation
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 vendor offers offset-preserving replication between its managed clusters, and some...": https://scrivio-interview-library.netlify.app/spring-boot/kafka-operations/3838d03787/