Scrivio Interview library
LeadershipPrincipal5 min read · updated 13 November 2026

Leaders want a single Kafka cluster stretched across three cloud regions so that losing a region loses no data and needs no failover.

Round-trip times between regions are 30 to 70 ms. How do you evaluate this request, and what would you recommend?

A single cluster stretched over regions 30 to 70 ms apart makes every acks=all write wait for a cross-region round trip, slows metadata changes because the controller quorum commits across regions, and turns replication and consumer reads into expensive cross-region traffic. I would offer the alternative of a cluster per region with asynchronous replication such as MirrorMaker 2, which has a small non-zero recovery point and needs failover, and recommend deciding per data class, with the trade-off in cost, latency and recovery objectives signed off by the business and tested with a regional failure.

Why this question is asked

'No data loss and no failover' is a reasonable thing for leaders to want, and it sounds achievable because Kafka already replicates across zones. Across regions, physics changes the answer: every synchronous guarantee now costs tens of milliseconds and real money. Interviewers ask this to see whether a senior engineer can turn a broad request into a decision the business can make with eyes open. In this answer, we will recap what a stretched cluster means, measure its cost in latency and money, describe the alternative, and then go through how to decide per data class and present the trade-off.

1A Quick Recap: What 'Stretched' Means

In a stretched cluster, brokers in all three regions belong to one Kafka cluster. With broker.rack set to the region, each partition gets one replica per region. With acks=all, a write is acknowledged only after every in-sync replica has it, and min.insync.replicas=2 refuses writes unless at least two regions are in sync, so every acknowledged record exists in at least two regions. Lose a region and the other two still have every acknowledged record, and leadership moves automatically. That is exactly the promise leaders asked for: zero data loss and no manual failover.

The controllers, which manage the cluster's metadata in KRaft mode, would also be spread over the regions, so the cluster keeps a majority of voters when one region goes away.

2The Latency Cost

Within one region, a replica round trip takes about 1 ms. Across regions it takes 30 to 70 ms. With acks=all, the leader waits until all in-sync followers have fetched the record, so the slowest region sets the pace, which means at least one cross-region round trip, plus the follower's fetch timing. So produce latency moves from a few milliseconds to something like 40 to 100 ms or more at p99, for every topic on the cluster, not just the critical ones.

Step throughOne acks=all write in a stretched cluster
Producer (region 1)Leader (region 1)Follower (region 2)
Produce batch, acks=all
Append to local log
Fetch new records (30 to 70 ms away)
Records
Next fetch confirms the offset
Acknowledge after the cross-region round trip

6 messages in order. Play them, or step through them one at a time.

The acknowledgement cannot arrive before data has crossed the region boundary and the follower has confirmed it.

The control plane slows down too. The KRaft quorum commits every metadata change, such as a leader election or a topic creation, only when a majority of voters have it, so each change pays a cross-region round trip. During a failure, when hundreds of leader elections happen at once, that adds up. Consumer group coordination and transactions also pay cross-region latency when the coordinator is far from the client.

3The Money Cost

Cross-region transfer is usually billed at a much higher rate per GB than cross-zone transfer. Replication alone sends each byte to two other regions; at 200 MB/s of produce, that is 400 MB/s, around 35 TB per day crossing regions, before any consumer reads from a leader in another region. Follower fetching helps consumers, but replication is fixed by the design. For many companies this becomes one of the largest items in the platform's budget.

4The Alternative: A Cluster per Region

Each region runs its own cluster with normal zone-level replication, and data is copied between regions asynchronously, for example with MirrorMaker 2, which also translates consumer offsets so consumers can resume in another region. Produce latency stays local, and each cluster's metadata operations stay fast.

The cost is that asynchronous copies lag. If a region fails, the last few seconds of data may not have reached the other region, which is a recovery point objective (RPO) greater than zero. Producers and consumers must fail over to another region's cluster, which needs tooling, rehearsed runbooks and applications that can tolerate some duplicates or gaps. Recovery time (RTO) is minutes, not zero.

Stretched cluster versus cluster per region
AspectStretched clusterCluster per region + async copy
Data loss on region failureNone for acks=all writesSeconds of recent data (RPO > 0)
FailoverAutomatic leader electionClient failover, offset translation
Produce latencyAdds a 30 to 70 ms round tripLocal, a few ms
Metadata operationsCross-region quorum commitsLocal
Cross-region transferReplication of every byte, twiceOne copy of the data that needs it
Blast radiusOne cluster, one control planeRegions fail independently

5Deciding per Data Class

The request treats all data as equally critical, but it rarely is. A few streams, such as payment ledger events, may truly need zero loss across regions; most, such as clickstream, logs or recommendations, can accept losing a few seconds in a rare regional disaster. So I would classify streams and offer two tiers: synchronous cross-region writes for the small critical set, ideally on a dedicated cluster stretched across the two or three nearest regions to keep the round trip low, and per-region clusters with asynchronous copies for everything else.

Then I would present the decision in the business's terms: for each tier, the RPO and RTO it delivers, the latency it adds and what it costs per month, and ask the business owners to sign off. Whichever design is chosen, we test it with a real regional failure exercise, because neither design's promises are real until we have seen them work.

6Follow-up questions

Could an observer or a two-region layout reduce the latency?

Placing replicas so that the acknowledging majority sits in two close regions reduces latency, but then losing one of those two regions can leave the cluster without enough in-sync replicas or controller voters. Every way of lowering latency in a synchronous design weakens one of the guarantees, which is why the choice should be explicit.

What would you tell leaders who still want one global cluster for everything?

I would show the measured latency from a test cluster stretched across the actual regions, the monthly transfer cost at our volumes, and the list of applications whose latency targets would break. Usually the numbers make the case for tiers, and leaders keep the zero-loss guarantee where it matters most.

7Conclusion

In this answer, we evaluated a cluster stretched over three regions: it delivers zero loss and automatic failover, but every acks=all write and every metadata change pays a 30 to 70 ms round trip, and replication becomes costly cross-region traffic. A cluster per region with asynchronous copies keeps latency local but has a non-zero RPO and needs failover. The recommendation is to decide per data class, keep synchronous cross-region writes for a small critical set, and have the business sign off on cost, latency and recovery objectives before testing a regional failure.

What to say in the interviewAbout 90 seconds aloud

Open with

I would first take the goal seriously and then show what it costs. A stretched cluster with one replica per region, acks=all and min.insync.replicas 2 really does give zero loss and automatic failover.

Then, if they want more

But every acknowledged write now waits for a follower in another region, so produce latency goes from a few milliseconds to roughly 40 to 100 at p99, for every topic. The KRaft quorum also commits across regions, so leader elections and other metadata changes slow down, which hurts most during a failure.

And replication sends every byte to two other regions, which at our volume is a big transfer bill. The alternative is a cluster per region with asynchronous replication, like MirrorMaker 2 with offset translation. Latency stays local and regions fail independently, but the RPO is a few seconds, not zero, and clients have to fail over.

My recommendation would be to decide per data class. A small set of streams, say payment events, may justify synchronous cross-region writes, ideally on a dedicated cluster across the nearest regions. Most streams can accept seconds of loss in a rare regional disaster and go per region.

I would put both options in front of the business as RPO, RTO, added latency and monthly cost, get sign-off, and then run a real regional failure test, because neither design's promises count until we've seen them work.

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 "Round-trip times between regions are 30 to 70 ms. How do you evaluate this request, and...": https://scrivio-interview-library.netlify.app/spring-boot/kafka-internals/16c5654351/