Scrivio Interview library
LeadershipPrincipal7 min read · updated 13 November 2026

Twelve teams built job processing on Redis in different ways: plain lists, Streams, a library with its own Lua scripts, and Redisson queues. In the last year three incidents lost or duplicated jobs that customers noticed.

As the senior technical leader, how do you decide whether Redis stays the company's job-processing platform, and what do you standardise?

We decide by classifying the jobs, not by debating Redis in general: what a lost or duplicated job costs, how long a backlog must survive, and what ordering, scheduling and throughput each class needs. Redis stays for short-lived, high-throughput work that tolerates loss or duplicates; jobs that must not be lost either get Redis configured and proven for durability or move to a durable broker or database-backed job system. Whatever we keep, we standardise on one supported pattern per class, owned by a platform team, and migrate the riskiest teams first.

Why this question is asked

When twelve teams each build the same thing twelve ways, every incident teaches only one team. Three customer-visible incidents in a year is the moment a senior leader is expected to step in, and the interviewer wants to see how we make a platform decision with evidence rather than taste, and how we bring many teams along. In this answer, we will look at why the current situation produces incidents, classify the jobs by what they really need, decide where Redis fits, choose what to standardise, weigh building against buying, and plan the migration.

1Why Twelve Designs Produce Incidents

Each of the four approaches in use has different failure behaviour. Plain lists with BRPOP lose a job when a worker crashes. Streams keep unacknowledged entries, but only if someone claims them from dead consumers. A library with its own Lua scripts behaves however its authors decided, often undocumented. Redisson queues add their own semantics on top. So the same event, say a node failover or a deployment, loses jobs in one team, duplicates them in another and is harmless in a third.

The deeper problem is that nobody owns the question 'what does a job guarantee here?'. Each team made a reasonable local choice, but the company never decided which guarantees it needs. Before choosing technology, we read the three incident reviews and write down, for each, whether the job was lost or duplicated, which design was involved and which guarantee was missing. That list becomes the evidence for everything that follows.

2Classifying Jobs by What They Need

We ask every team to describe their jobs on a few dimensions: the cost of a lost job, the cost of a duplicated job, how long a backlog must survive (minutes during a deploy, or days during an outage), whether order matters, whether jobs are scheduled for later or prioritised, and the peak rate. This is a one-page form, not a project.

In most companies the answers fall into three classes. Cheap, fast work such as cache warming, thumbnail generation or analytics pings tolerates loss or retries easily and needs high throughput. Important but replayable work, such as sending notifications, needs at-least-once delivery and idempotency. Critical work, such as payments, order fulfilment or anything a customer pays for, must never be lost and must not run twice in a harmful way.

Job classes and where they fit
ClassExampleNeedsFits
Cheap, high volumethumbnails, cache warmspeed, loss toleratedRedis lists or Streams
Important, replayablenotifications, emailsat-least-once, retries, DLQRedis Streams via standard lib, or broker
Criticalpayments, fulfilmentdurable, auditable, exactly-once effectdurable broker or DB-backed jobs

3Where Redis Fits, and What Durability Really Costs

Redis queues are excellent for the first class: sub-millisecond latency, huge throughput and simple operations. They can serve the second class well if we use a reliable pattern consistently. For the third class, Redis can only be trusted with care. Persistence must be AOF with frequent fsync, which costs write throughput; eviction must be off; and we must accept or remove the window in which an asynchronously replicated write acknowledged by the primary disappears during failover. Some managed Redis-compatible services offer durable, multi-zone writes, which changes that last point, but it is a product choice we would have to verify, not assume.

So the decision is not 'Redis yes or no'. It is 'Redis for classes one and two, and for class three only if we deliberately pay for durability and accept the failover stance in writing; otherwise a durable broker such as Kafka, RabbitMQ with quorum queues, a managed queue, or a database-backed job system where the job is written in the same transaction as the business change'. That last option, sometimes called the outbox approach, is often the simplest for critical jobs, because the job cannot exist without the order or the order without the job.

4What We Standardise

For each class we pick one supported library or pattern, and a platform team owns it. Owning means the team provides a client library with the reliable pattern built in, retries with backoff, a dead-letter queue, idempotency guidance and helpers, standard metrics (queue depth, oldest job age, failures, dead letters), dashboards, alerts and runbooks. Product teams configure a queue; they do not design one.

The standard should be boring and documented: the guarantee in one sentence ('at-least-once; handlers must be idempotent'), what happens on a worker crash, a Redis failover and a deployment, and how to replay dead letters. A design review is required for anything outside the standard, so exceptions are possible but deliberate.

5Build or Buy

A managed queue or workflow engine removes operational load, gives durability and visibility out of the box, and moves on-call burden to a vendor. It also costs money per message, adds latency, and couples us to a provider. Self-hosting a broker gives control at the cost of people to run it. Keeping Redis is cheapest where it already works.

We decide on total cost, not habit: engineering time spent on the twelve designs, the cost of the three incidents (refunds, support, reputation), the infrastructure bill for each option and the skills we have. Often the result is mixed: Redis for the cheap class, a managed broker or database-backed jobs for the critical class.

6Migrating by Risk

We start with the teams whose jobs were lost or duplicated, because the risk is proven there, then the other critical-class workloads, then the rest as they change anyway. From a fixed date, new queue designs on Redis need a short review against the standard. We track progress publicly: workloads per class, how many are on the standard, and incidents per quarter. A migration that has no visible measure tends to stall at sixty percent.

Step throughDeciding a team's job platform
  1. Fill in the job profileloss cost, duplicate cost, backlog, rate
  2. Would a lost job hurt a customer or money?
    YesCritical classNoCheck duplicates
  3. Critical: durable Redis proven and accepted?
    YesRedis with AOF, no eviction, written stanceNoDurable broker or DB-backed jobs
  4. Use the standard library for the classretries, DLQ, metrics, runbooks
  5. Migrate teams with incidents firstreview new designs after a set date

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

7Follow-up questions

What would make you keep Redis even for important jobs?

Evidence that it meets the requirement at an acceptable cost. If the jobs are replayable from a source of truth, if we run AOF with fsync every second and can live with losing about a second of jobs on a crash, or if we use a managed variant with synchronous durable writes, and if the standard library makes handlers idempotent, Redis can be the right answer. Low latency, a team that already knows it well, and no new system to operate are real advantages. What I would not accept is keeping it because it is already there.

How do you get twelve teams to agree?

By making the standard easier than staying put. The platform team migrates the first two workloads with the owning teams, so the library is proven on real traffic, and the incident data shows why it matters. Teams keep the right to an exception through review, which keeps the conversation about requirements rather than preferences.

How do you measure success?

Customer-visible job incidents per quarter, the share of critical workloads on a durable, standard path, and the operational load: pages related to queues and the time teams spend on queue code. If incidents drop and teams spend less time on plumbing, the decision worked.

8Conclusion

In this answer, we started from the incidents and classified jobs by the cost of loss and duplication, backlog length, ordering, scheduling and rate. Redis fits short-lived, high-throughput work and, with a standard reliable pattern, important replayable work; critical jobs need durability Redis gives only with deliberate configuration and an accepted failover stance, or a durable broker or database-backed system. We standardise one owned pattern per class with retries, dead letters, idempotency guidance, metrics and runbooks, decide build or buy on total cost, and migrate the teams with incidents first.

What to say in the interviewAbout 80 seconds aloud

Open with

I would start from the three incidents and the jobs, not from an opinion about Redis. Every team describes its jobs: what a lost job costs, what a duplicate costs, how long a backlog must survive, ordering, scheduling and peak rate.

Then, if they want more

That usually gives three classes. Cheap, high-volume work like thumbnails fits Redis very well. Important but replayable work, like notifications, can stay on Redis Streams if everyone uses one reliable pattern.

Critical work, payments or fulfilment, must not be lost, and Redis only gives that with care: AOF with frequent fsync, no eviction, and an explicit, written stance on losing acknowledged writes during failover, or a durable managed variant.

Otherwise that class moves to a durable broker or a database-backed job system where the job is written in the same transaction as the business change. Then I standardise one supported library per class, owned by a platform team, with retries, dead letters, idempotency guidance, metrics, alerts and runbooks, so teams configure queues instead of designing them.

I would weigh managed services against self-hosting on total cost, including the incidents. Finally I migrate by risk, starting with the teams that lost jobs, and require a review for any new Redis queue design after a set date, with progress tracked visibly.

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 whether Redis stays the company's...": https://scrivio-interview-library.netlify.app/databases/redis-patterns/70d6bdf26c/