Quick revision
The short answer
The 900 KB configuration blob is both big and hot: 3,000 reads per second times 900 KB is about 2.7 GB per second, which saturates the network interface and fills output buffers, so every other client's replies wait behind it, while CPU stays moderate because copying bytes is cheap. The fix is in the application: cache the blob in each pod and reload it only when a small version key changes, shrink it by splitting or compressing, and add guardrails on network output and value sizes.
What to remember
In this answer, we saw that a 900 KB value read 3,000 times per second needs about 2.7 GB per second of network output, which saturates the interface and makes every other client's replies queue, while CPU stays moderate. The fix is to cache the configuration in each pod and reload it only when a small version key or an invalidation says it changed, to shrink the blob by splitting or compressing it, and to add alerts on network output and value sizes with a review rule for large values.
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.
The 900 KB configuration blob is both big and hot: 3,000 reads per second times 900 KB is about 2.7 GB per second, which saturates the network interface and fills output buffers, so every other client's replies wait behind it, while CPU stays moderate because copying bytes is cheap. The fix is in the application: cache the blob in each pod and reload it only when a small version key changes, shrink it by splitting or compressing, and add guardrails on network output and value sizes.
Background to this question
This is a good debugging question because the usual first suspect, Redis CPU, looks fine, and SLOWLOG probably shows nothing useful either. The answer requires thinking about a resource people forget, network bandwidth, and about how one client's large replies affect everyone else. In this answer, we will do the arithmetic, explain why other services time out while CPU stays low, then fix the problem where it starts, in the application, and add the guardrails that prevent the next one.
1Doing the Arithmetic
Twelve pods read the blob on every request, 3,000 times per second in total. Each read returns about 900 KB. So Redis must send 3,000 times 900 KB, about 2.7 GB per second. INFO stats confirms it with instantaneous_output_kbps near 2.6 GB per second.
Now compare that with the network. 2.7 GB per second is about 21.6 Gbps. A typical cloud instance has a 10 to 25 Gbps interface, often with a lower sustained baseline. So the blob alone uses all or nearly all of the instance's bandwidth. That is the bottleneck.
2Why Other Services Time Out While CPU Stays Low
Serving a GET of a 900 KB string is cheap for the main thread: it copies the value into the client's output buffer, a fast memory copy, and the bytes go out as the socket accepts them. That is why CPU is only 35 percent. The expensive part is waiting for the network to drain.
While the interface is saturated, every socket's send queue fills up, and Redis's output buffers grow, both for the pods reading the blob and for every other client. A small GET reply from another service now waits in line behind megabytes of configuration on a congested link. From those services' point of view, Redis is slow, and their timeouts fire. The symptom is bandwidth and queueing, not computation.
5 messages in order. Play them, or step through them one at a time.
The link, not the thread, is the shared resource that runs out.
3Fix 1: Cache the Blob in Each Pod
The configuration changes rarely, perhaps a few times a day, but it is read on every request. So each pod should keep it in memory and only reload it when it changes. The cheapest change detector is a small version key: whoever updates the configuration also increments config:version. Each pod checks the version every second or two, a few bytes per check, and fetches the blob only when the number differs.
The writer must update the blob first and the version second, so a pod that sees the new version always reads the new blob. Instead of polling, pods can also subscribe to a pub/sub channel that announces changes, or use Redis client-side caching with tracking, but polling a version key is simple and robust.
4Fix 2: Shrink the Blob
Even read rarely, a 900 KB value is a big key that makes every fetch, replication and resharding heavier. If different services need different sections, store the sections as fields of a hash and let each read only what it needs with HMGET. Sections used rarely can move to their own keys. And JSON configuration typically compresses five to ten times, so compressing it in the writer and decompressing in the pods cuts the remaining transfers too.
5Fix 3: Guardrails
Two alerts would have caught this early: one on network output from INFO stats (instantaneous_output_kbps) or the host's network metrics at, for example, 50 percent of the interface's sustained bandwidth, and one on value sizes from regular big-key scans on a replica. A team rule that values above an agreed size, say 100 KB, need a review before they ship keeps blobs like this from appearing in the first place, and shared instances benefit from per-service ACL users so the source of heavy traffic is easy to identify.
6Follow-up questions
How would client-side caching with tracking help here?
With CLIENT TRACKING, available since Redis 6, the server remembers which keys a client has read and sends it an invalidation message when one of them changes. The pod keeps the blob in local memory and only refetches when it gets the invalidation for config:all. That gives the same result as polling a version key, but with immediate updates and no polling traffic. It needs a client that supports RESP3 or the redirect mode; Lettuce supports it through its client-side caching API, so check your client version.
Would adding replicas for reads fix it?
It would spread the bandwidth across more interfaces, so it would reduce the symptom, but every replica would still send gigabytes per second of the same unchanged data. Caching in the pods removes over 99 percent of the traffic at no cost, so it is the real fix.
Why does SLOWLOG not show these GETs?
SLOWLOG measures execution time on the main thread, and appending a reply to a buffer takes microseconds. The time is spent afterwards, sending the bytes over the network, which SLOWLOG never measures.
7Conclusion
In this answer, we saw that a 900 KB value read 3,000 times per second needs about 2.7 GB per second of network output, which saturates the interface and makes every other client's replies queue, while CPU stays moderate. The fix is to cache the configuration in each pod and reload it only when a small version key or an invalidation says it changed, to shrink the blob by splitting or compressing it, and to add alerts on network output and value sizes with a review rule for large values.
Open with
The blob is both big and hot. 3,000 reads per second of 900 KB is about 2.7 GB per second, which matches the 2.6 GB per second of output and saturates a typical 10 to 25 Gbps network interface.
Then, if they want more
CPU stays around 35 percent because handing bytes to a socket is cheap; the problem is bandwidth. Output buffers fill and every other client's small replies queue behind megabytes of configuration, so other services time out. I would fix it in the application.
Each pod caches the blob in memory and reloads it only when a small version key changes: the pods GET config:version every second or two, and fetch the blob only when the number is new. Pub/sub or client-side caching with tracking can push the invalidation instead.
Then I would shrink the value: store sections in a hash and read only the fields needed with HMGET, compress it, and move rarely used parts to their own keys. Finally, guardrails: an alert on network output and on value sizes, and a rule that values above an agreed size, say 100 KB, need review before they ship.
About this answer
- Last updated
- 13 November 2026
- Versions it names
- Redis 6
- 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 "INFO stats shows instantaneous_output_kbps near 2.6 GB per second. Diagnose the problem...": https://scrivio-interview-library.netlify.app/databases/redis-internals/94e7d15faf/