Scrivio Interview library
LeadershipPrincipal6 min read · updated 13 November 2026

A fintech product team wants to keep customer wallet balances in Redis as the only store, to get single-digit millisecond writes. They point to a managed Redis-compatible service that advertises multi-zone durability and promise zero data loss.

As the senior technical leader, how do you evaluate whether any Redis-based setup can meet the requirement, and what decision and conditions would you set?

I would first pin the requirement down to zero loss of acknowledged writes across named failures, from a process crash to a zone or region outage, plus history, audit and point-in-time recovery. Open-source Redis cannot promise that, because its replication is asynchronous and failover can promote a replica that missed acknowledged writes, so any zero-loss claim has to come from the managed service's documented design and its limits. My usual decision is a relational ledger as the source of truth with Redis in front for speed, and if the team still wants the managed service as the primary store, I would set written conditions: a durability model, failure-injection tests, independent reconciliation, an exit plan and sign-off from risk and compliance.

Why this question is asked

Wallet balances are money that customers trust us to hold, and in most countries they are regulated. A team that chooses its system of record because of write latency is optimising the wrong thing first, but they may still have a real point, so a senior leader cannot simply say no. Interviewers ask this to see whether we can turn a vague promise like zero data loss into testable requirements and judge a vendor claim against how the technology really works. In this answer, we will pin the requirement down, look at what Redis replication can and cannot promise, list the other needs of a ledger, describe the design most teams end up with, and set the conditions under which the team's choice could still go ahead.

1Pinning Down "Zero Data Loss"

Zero data loss means nothing until we say which data and which failures. The precise form is: no write that we acknowledged to the customer may be lost. Then we list the failures it must survive: the process crashing, the host dying, a whole availability zone going down, and possibly a whole region. Each step up costs more, and vendors often mean only the first two or three.

Wallets also need things beyond surviving a crash. We need an audit trail of every movement, the ability to restore the data to any point in time after a bad deployment corrupts balances, and answers for regulators about how the system of record is protected. Writing these down together with the product team and risk team is the first deliverable, because it turns an argument about technologies into a checklist.

2What Redis Replication Can and Cannot Promise

Open-source Redis replicates asynchronously: the primary replies OK before any replica has the write. WAIT makes a client wait until a number of replicas have received its writes, and WAITAOF waits until they have fsynced them, so both shrink the window for an individual write. But neither turns Redis into a consensus system. When the primary fails, Sentinel or Redis Cluster promotes a replica chosen by priority and replication offset, and nothing guarantees that the promoted replica has every write that was acknowledged. A client that waited for one replica may find that a different replica won the election.

So with open-source Redis, the recovery point objective (RPO, how much recent data we can lose) is small but not zero. Some managed Redis-compatible services work differently, for example by writing every change to a durable multi-zone transaction log before acknowledging it, as Amazon MemoryDB describes its design. That can change the answer, but only for what the vendor documents: which failures, what latency it adds, and what happens in a region failure. A marketing page saying multi-zone durability is not a durability model.

Where an acknowledged write can be lost
SetupProcess crashZone failureRegion failure
Redis, AOF everysec, async replicassafecan lose recent writescan lose recent writes
Redis with WAIT or WAITAOF per writesafesmaller window, not zerocan lose recent writes
Managed service with durable log (per docs)safesafe if documentedcheck the vendor's model
PostgreSQL, synchronous standby in another zonesafesafedepends on cross-region setup
The managed service row is only as strong as its written design and its tested limits.

3The Other Needs of a Ledger

Even if durability were solved, a balance store needs more. Moving money between two wallets must change both balances atomically, and the history of movements must be kept and queried. Finance needs reports, support needs to look up what happened to a payment last March, and the schema will change as the product grows. A relational database gives us transactions across accounts, constraints that stop a balance from going negative, a natural ledger table, mature backup with point-in-time recovery and tools that auditors already know. Redis gives us very fast single-key operations and Lua scripts, but history, reporting and point-in-time restore are things we would have to build ourselves.

4The Design Most Teams Choose

The usual outcome is a relational or distributed SQL ledger as the source of truth, with Redis in front where speed matters: cached balances for display, rate limits, and idempotency pre-checks that may be wrong without harm. Writes go to the ledger, and the cached balance is deleted or updated after the commit.

Does that meet the latency target? Often yes. A well-designed write path, one short transaction inserting a ledger entry and updating a balance row with a primary-key lookup, commits in a few milliseconds on a modern PostgreSQL with a synchronous standby in a nearby zone. Most single-digit millisecond requirements are about reads, which Redis serves. So before accepting the trade-off, we measure the real hot path rather than assuming the database is too slow.

Step throughLedger as source of truth, Redis in front
  1. Wallet APIvalidates the request, checks the idempotency key
  2. Rediscached balances, rate limits, fast pre-checks; may be wrong without harm
  3. Ledger databaseentries and balances in one transaction; constraints; source of truth
  4. Synchronous standby in another zoneacknowledged commits survive a zone failure
  5. Backups and point-in-time recoveryrestore after corruption; audit and reporting copies

5 layers, from the top down. Step through them one at a time.

5Conditions If the Team Still Chooses the Managed Service

Sometimes the team has strong reasons, and a leader's job is then to make the risk explicit rather than to block. I would set five conditions in writing. First, a written durability model from the vendor stating which failures lose no acknowledged writes, at what latency, and the limits. Second, our own failure-injection tests, killing nodes and zones under load and counting acknowledged writes afterwards. Third, reconciliation against an independent record, such as an append-only event log in another store, checked daily. Fourth, an exit plan describing how we would move the data to another system within a set time. Fifth, sign-off from risk and compliance, because the regulators will ask them, not us. If the team cannot meet these, the default design stands.

6Follow-up questions

What evidence from the vendor would change your mind?

A published, specific durability design, for example that every write is committed to a log replicated across several zones before the client gets OK, with stated latency, independent test results such as a Jepsen-style analysis of that exact service, and contractual commitments on data loss. I would want our own failure tests to agree with it. Even then I would check point-in-time recovery, history and audit, because durability alone does not make a ledger.

Why not keep Redis as primary and add WAIT on every write?

Because WAIT reduces the chance of loss but does not prevent it: the failover process can still promote a replica that missed the write, and WAIT gives no rollback when it times out. It also blocks a connection per write and adds a network round trip, so we pay much of the latency of a database without getting its guarantees.

7Conclusion

In this answer, we turned zero data loss into a precise requirement about acknowledged writes and named failures, plus audit and point-in-time recovery. We saw that open-source Redis replicates asynchronously, so WAIT and WAITAOF shrink the loss window without closing it, and that any zero-loss claim must come from a managed service's documented and tested design. Because a ledger also needs transactions, history, reporting and backups, the usual decision is a database ledger with Redis in front, and if the team still prefers the managed service, we go ahead only with a durability model, failure tests, reconciliation, an exit plan and risk sign-off.

What to say in the interviewAbout 80 seconds aloud

Open with

I would start by pinning down zero data loss: no acknowledged write lost across which failures, process, host, zone or region, and I would add the needs that regulated balances bring, an audit trail and point-in-time recovery.

Then, if they want more

Then I would be honest about Redis. Open-source Redis replicates asynchronously, so the primary acknowledges before replicas have the write. WAIT and WAITAOF shrink the window per write, but failover does not guarantee that only fully caught-up replicas are promoted, so acknowledged writes can still be lost.

If a managed service claims zero loss, that has to come from its documented design, such as a multi-zone transaction log, and its stated limits, and I would test it myself. A ledger also needs transactions across accounts, history, reporting, schema changes and backups to a point in time.

So my usual recommendation is a relational ledger as the source of truth with Redis in front for balances on display, rate limits and pre-checks, and I would measure the write path, because a short transaction usually commits in a few milliseconds.

If the team still wants the managed service as the primary store, I would require a written durability model, failure-injection tests, reconciliation against an independent record, an exit plan, and sign-off from risk and compliance.

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 evaluate whether any Redis-based setup can...": https://scrivio-interview-library.netlify.app/databases/redis-scaling/711ae8abc4/