Quick revision
The short answer
I would set latency objectives per use case and measure them at the client, including the network, with server-side percentiles as a supporting signal, rather than one platform-wide p99. The platform promises what it controls, server execution and availability per tier, while application teams own payloads, command choice, pooling and GC, and the published rules list what voids the objective. Tiers get different designs, the objectives run on probes, error budgets and reviews, and I would refuse in writing to promise what physics or the design rule out, such as 2 ms p99 across regions or during failover.
What to remember
In this answer, we saw that a single platform-wide p99 hides very different workloads, so objectives should be defined per use case and measured at the client, with server percentiles as support. The platform promises what it controls, application teams own their payloads, commands, pooling and GC, and published rules say what voids the objective. Tiers with different designs make 2 ms achievable for checkout, probes and error budgets run it, and limits such as cross-region calls and failover are refused in writing.
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 would set latency objectives per use case and measure them at the client, including the network, with server-side percentiles as a supporting signal, rather than one platform-wide p99. The platform promises what it controls, server execution and availability per tier, while application teams own payloads, command choice, pooling and GC, and the published rules list what voids the objective. Tiers get different designs, the objectives run on probes, error budgets and reviews, and I would refuse in writing to promise what physics or the design rule out, such as 2 ms p99 across regions or during failover.
Why this question is asked
A request for a guaranteed p99 under 2 ms across 120 instances sounds like a technical requirement, but it is really a question about accountability: who is responsible for which part of the latency, and what happens when the number is missed. Interviewers ask it at senior levels to see whether we can turn a slogan into objectives that are measurable, achievable and fair to both the platform team and the product teams. In this answer, we will see why one number does not work, define objectives that users feel, split responsibility, design tiers, run the objectives day to day, and be clear about what we refuse.
1Why One Platform-Wide Number Fails
Across 120 instances there are very different workloads: session lookups that take 0.1 ms, batch jobs that read thousands of keys, analytics that run large sorted-set queries. A single platform-wide p99 averages these together. The checkout path could suffer badly while the platform number looks fine, or a batch user could make the number look bad while checkout is perfect.
There is also the question of where to measure. Product leadership cares about the time checkout waits for Redis, which includes the network, the client library and the application's own threads. A server-side number excludes all of that. So an objective has to be defined per use case and measured where users feel it.
2Objectives Where Users Feel Them
For checkout, the objective could read: 99 percent of Redis calls from the checkout service complete in under 2 ms, measured at the client by the Lettuce command latency metric, over a rolling 28 days, within one region. The server-side percentiles from INFO latencystats are a supporting signal that helps us see whether a miss came from the server or from the path to it.
Because checkout now makes several Redis calls per request, the objective also needs the number of calls in mind: five sequential calls at 2 ms each is already 10 ms of the request budget. Part of the work is helping the checkout team pipeline or batch those calls, which often helps more than any server tuning.
3Promising Only What the Platform Controls
The platform team controls server execution time, availability and capacity of each tier, failover behaviour, and the network inside the platform. Application teams control payload sizes, the commands they choose, connection and pool configuration, the number of calls per request, and their own JVM and GC behaviour. A fair agreement says this clearly.
It also publishes what voids the objective: big keys above the agreed size, O(N) commands on large collections, KEYS and similar, cross-region calls, and clients that open thousands of connections. If a team's own big key causes its latency misses, that is not a platform breach, and the review says so.
| Part of the call | Owner | Signal |
|---|---|---|
| Server execution and queueing | platform team | INFO latencystats, slow log |
| Pauses: fork, fsync, failover | platform team | LATENCY LATEST, failover drills |
| Network inside the region | platform team | synthetic probes |
| Payload size and command choice | application team | big-key reports, commandstats |
| Pooling, calls per request | application team | client metrics |
| JVM GC and threads | application team | GC logs, JFR |
4Tiers With Different Designs
A 2 ms p99 is achievable inside one region, but not on a shared cluster where a batch job can run a large command at any moment. So the platform offers tiers. The latency-critical tier gets dedicated instances, no RDB forks on primaries (snapshots run on replicas), reserved CPU and memory headroom, small shards so any fork or resync is short, and no noisy neighbours. The general tier is shared, with a looser objective, perhaps 10 ms at p99. Bulk and batch users go to separate clusters with throughput objectives rather than latency ones.
Checkout belongs in the first tier. The cost of that tier is higher, and making the cost visible helps product teams choose the tier they really need instead of asking for the best one by default.
5Running the Objectives
Objectives are only real if they are measured continuously. Synthetic probes in each zone call each critical instance every few seconds and record latency from the client side. Slow-log and latency-monitor data are exported to monitoring with client names, so every spike can be traced to a command or an event. Each tier has an error budget, for example 1 percent of calls may exceed 2 ms over 28 days. When a tier burns its budget faster than planned, risky changes on that tier pause, and a short review finds the cause and assigns it to the owner by the table above.
- Budget burn alertprobes or client metrics exceed the objective
- Server signals abnormal?Yesplatform fixes: capacity, forks, failoverNocheck client and network
- Rule broken by a team?Yesteam fixes: big key, O(N) command, poolingNoplatform investigates network
- Review and recordcause, owner, prevention
4 steps in order. Play them, or step through them one at a time.
6Follow-up questions
What do you do about a team that keeps breaking the rules and the objective?
First, make it visible: show the team its own big keys, slow commands and the budget it consumed, and offer help to fix them. If it continues, move the team to its own instance or to the general tier, so its behaviour no longer affects others and its latency becomes its own concern. Escalation to its leadership comes with data: what the behaviour costs other teams, and what the fix is.
What would you refuse to promise?
A 2 ms p99 across regions, because a round trip between regions alone takes tens of milliseconds. A 2 ms p99 during a failover, because detection and reconnection take seconds. And a guarantee for calls that use patterns outside the rules, such as big keys or O(N) commands. I would put these limits in writing next to the objective so nobody discovers them during an incident.
Why measure at the client instead of on the server?
Because users feel the client-side number. The server number is useful for diagnosis, but an objective that excludes the network and the client library could be met while checkout is slow.
7Conclusion
In this answer, we saw that a single platform-wide p99 hides very different workloads, so objectives should be defined per use case and measured at the client, with server percentiles as support. The platform promises what it controls, application teams own their payloads, commands, pooling and GC, and published rules say what voids the objective. Tiers with different designs make 2 ms achievable for checkout, probes and error budgets run it, and limits such as cross-region calls and failover are refused in writing.
Open with
I would not promise one number for all 120 instances. I would define objectives per use case and measure them where users feel them: at the client, including the network, for example 99 percent of checkout's Redis calls under 2 ms within the region over 28 days, with server-side percentiles from INFO latencystats as a supporting signal.
Then, if they want more
Then I would split responsibility. The platform promises what it controls: server execution time, availability and failover per tier. Application teams own payload sizes, command choice, pooling, calls per request and their own GC. We publish what voids the objective: big keys, O(N) commands, cross-region calls. Tiers get different designs.
Latency-critical paths like checkout get dedicated instances, no forks on primaries, reserved headroom and no noisy neighbours, while batch users go to separate clusters. To run it, I use continuous synthetic probes, exported slow-log and latency-monitor data, error budgets per tier, and a review whenever a tier burns its budget, assigning the cause to an owner.
And I would refuse in writing what physics or the design rule out: 2 ms p99 across regions, during failover, or for calls that break the rules.
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 "How would you set and run latency objectives for this shared Redis platform, and what...": https://scrivio-interview-library.netlify.app/databases/redis-internals/4f72798775/