Quick revision
The short answer
I decide per data class, starting from how often users actually move between regions and what an old or lost cart costs. Active-active with CRDT types gives local writes and automatic merges, but each type merges by its own rule and it is a licensed commercial feature; a single write region keeps semantics simple but puts cross-region latency on remote writes and loses recent writes in a regional failover; independent regions are simplest, and state that must follow the user can live in a store built for multi-region replication with Redis as a regional cache.
What to remember
In this answer, we started from how often users change regions and what lost state costs, then compared active-active CRDT replication with its per-type merge rules and licence, a single write region with remote-write latency and lossy failover, and independent regions with a durable multi-region store for the state that must follow the user. We decided per data class with cost, drills and skills in view, and wrote down the consistency each class gets.
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.
I decide per data class, starting from how often users actually move between regions and what an old or lost cart costs. Active-active with CRDT types gives local writes and automatic merges, but each type merges by its own rule and it is a licensed commercial feature; a single write region keeps semantics simple but puts cross-region latency on remote writes and loses recent writes in a regional failover; independent regions are simplest, and state that must follow the user can live in a store built for multi-region replication with Redis as a regional cache.
Why this question is asked
Cross-region state is where architecture decisions get expensive fast, and where product promises often run ahead of what the system can deliver. A request such as the cart should follow the user sounds small, but it touches latency, consistency, failure behaviour, licence cost and team skills at once. Interviewers ask this leadership question to see whether we start from data and user impact rather than from a vendor's feature list, and whether we write down what each choice really guarantees. In this answer, we will measure the need, examine each of the three options and its costs, decide per data class, and turn the decision into something product and operations can rely on.
1Start From the Data and the User
Before choosing a replication model, we ask how often a user's traffic actually moves between regions, and why. If it happens only during a regional failover or when someone travels across continents, it may affect a fraction of a percent of sessions. Then we ask what happens to those users today: their cart is empty, or they must log in again. Measuring both gives the value of the feature: perhaps 0.2 percent of sessions move, and a lost cart halves the chance of purchase for them.
Each data class also has different needs. Sessions can often be rebuilt by asking the user to log in again, or avoided entirely with signed tokens. Carts are worth more, but a cart can also be stored durably when it changes. Feature flags are read everywhere, written rarely by a few people, and are easiest of all: one source with replicas or a flag service. Lumping all three into one Redis decision is how teams overpay.
2Option 1: Active-Active With CRDT Types
Active-active means every region accepts writes to its own copy and the copies exchange changes in the background. CRDTs (conflict-free replicated data types) are data types designed so that concurrent changes can always be merged without coordination. The catch is that each type has its own merge rule. Counters merge by adding the increments from every region, which is usually what we want. Sets favour adds, so an item added in one region while removed in another typically stays. Plain strings take the last writer, which can silently drop one region's update.
So the application must accept those outcomes. A cart modelled as a set of items merges reasonably; a cart stored as one JSON string would lose an item when two regions update it at the same time. The other costs are commercial and organisational: this is a vendor's paid feature, it ties us to that vendor's engine, and the team must learn to reason about merges.
3Option 2: One Write Region With Replicas Elsewhere
Here one region holds the primary and the others hold replicas. Reads are local everywhere; writes from other regions travel to the primary region, adding perhaps 70 to 150 ms per write between continents. Semantics stay simple: one copy decides, and there are no merges.
The weak point is a regional failure. Replication is asynchronous, so the last seconds of writes in the failed region may never have reached the others, and someone must promote a replica in another region with a tested runbook. Until then, writes everywhere fail or queue.
4Option 3: Independent Regions
Each region keeps its own Redis and nothing replicates. This is the simplest to run and contains failures perfectly: a problem in one region cannot spread. For data that must survive a region move, we store it in a system built for multi-region replication, for example a cart table in a globally replicated database, and keep Redis as a regional cache that is filled on demand when the user appears in a new region. The first request after a move is slower by one database read, which is usually invisible.
| Option | Strengths | Costs |
|---|---|---|
| Active-active CRDT | local writes everywhere, automatic merge | per-type merge rules, licence, lock-in |
| Single write region | simple semantics, local reads | remote write latency, failover loses recent writes |
| Independent regions | simplest, failures stay local | state does not follow the user by itself |
| Independent plus durable store | cart follows user via the store | one slower read after a move |
5Deciding Per Data Class and Writing It Down
For this company I would likely keep sessions regional, accept a re-login after a rare region move or move to signed tokens; serve feature flags from one source of truth with regional replicas or caches; and for carts, write each change to a multi-region store and cache it regionally, unless the measured value of instant cross-region carts justifies active-active. The decision is made with cost over three years, a failure drill for each option and the team's skills on the table, not the vendor's demo.
Then we write down the consistency each class gets, in plain terms product can quote: a cart survives a region move but may show a change from the last second late; a session does not survive a region move. That stops promises from drifting beyond the design.
- Measure region moves and the cost of lost stateper data class
- Is the loss cheap to recover from?YesKeep the region independentNoNeed cross-region state
- Do concurrent writes merge naturally?YesConsider active-active CRDTNoSingle source of truth
- Compare 3-year cost, drills, team skills
- Publish the consistency each class gets
5 steps in order. Play them, or step through them one at a time.
6Follow-up questions
What would you measure in the first month to test your decision?
How many sessions actually changed region and why, how many of them hit a missing or stale cart, the conversion of those users compared with others, the cross-region replication lag and its peaks, the number of merge conflicts if we chose active-active, and the cost of the new components. If moves turn out to be ten times rarer than assumed, we simplify; if conflicts appear in carts, we revisit the data model.
Is a lost cart after a regional failure acceptable?
It is a product decision, which is why we put a number on it. During a full regional outage, users already see errors, so an empty cart afterwards may be acceptable; for a high-value business it may not be. Writing it down turns an implicit risk into an explicit choice.
Would Valkey or open-source Redis give active-active?
Not as a built-in feature at the time of writing: open-source Redis and Valkey replicate from one primary. Multi-primary with CRDTs is a commercial offering, so check current editions before relying on it.
7Conclusion
In this answer, we started from how often users change regions and what lost state costs, then compared active-active CRDT replication with its per-type merge rules and licence, a single write region with remote-write latency and lossy failover, and independent regions with a durable multi-region store for the state that must follow the user. We decided per data class with cost, drills and skills in view, and wrote down the consistency each class gets.
Open with
I would not pick a replication model for Redis as a whole; I would decide per data class. First I measure how often users really move between regions, which is mostly failover and travel, and what a lost or old cart or session costs us, because asking for a new login or rebuilding a cart may be far cheaper than replicating.
Then, if they want more
Then I look at the three options honestly. Active-active with CRDT types gives local writes everywhere and automatic merges, but every type merges by its own rule, counters add up, sets favour adds and plain strings take the last writer, so the cart model must be designed for that, and it is a commercial feature with licence cost and lock-in.
A single write region with replicas elsewhere keeps semantics simple but adds cross-region latency to remote writes and needs a promotion runbook, and in a regional failure the last asynchronous writes are lost.
Independent regions are simplest and contain failures, and the state that must follow a user can live in a store built for multi-region replication, with Redis as a regional cache filled on demand.
My likely answer is regional sessions, flags from one source, and carts in a durable multi-region store cached regionally, but I would put three-year cost, failure drills and team skills on the table, and write down the consistency each class gets so product promises match the design.
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
- Redis 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 "As the senior technical leader, how do you decide between active-active replication, a...": https://scrivio-interview-library.netlify.app/databases/redis-scaling/f76c77e081/