Scrivio Interview library
LeadershipPrincipal6 min read · updated 13 November 2026

A personalisation team stores user feature vectors and counters in Redis Cluster. The dataset grew from 800 GB to 4 TB in a year and is forecast to reach 10 TB, with 150 shards and a memory bill that now exceeds the team's compute costs.

As the senior technical leader, how do you decide whether to keep scaling Redis Cluster, adopt tiered storage, or move part of the data elsewhere?

I start by splitting the data by access pattern, because usually a small hot set needs memory speed while most keys are rarely read and only pay for RAM. Then I compare the options honestly: memory savings first, tiered storage that keeps hot keys in RAM and cold ones on flash, or a disk-based store for the long tail with Redis as a cache, against the rising operating cost of a 150-shard cluster. The choice rests on three-year total cost and the features' latency budgets, proven with a pilot on real traffic, and followed by a rule that every large dataset has a forecast and a cost owner.

Why this question is asked

When a cache-like system quietly becomes the largest line on the infrastructure bill, the problem is rarely technical alone. The team chose Redis for good reasons, the data grew five times in a year, and nobody owned the question of whether everything still needed to live in memory. Interviewers ask this leadership question to see whether we can turn a cost crisis into a measured decision: understand the data, know the limits of very large clusters, weigh real alternatives and set a rule so it does not happen again. In this answer, we will measure the access pattern, look at the hidden costs of scale, walk through the options, compare them over three years and set the rule.

1First, Measure How the Data Is Used

The most important number is not 4 TB; it is how much of the 4 TB is actually read. We sample access over a day and a week: either by using an LFU eviction policy and reading OBJECT FREQ on sampled keys, by logging key prefixes and user ids from the client side, or by joining the user ids in Redis with product analytics on active users. Personalisation data typically follows activity, so if 12 percent of users are active in a week, perhaps 10 to 15 percent of keys are hot, and the rest are features and counters for people who have not visited in months.

We also split by type. Feature vectors read on every page view need the lowest latency. Counters updated by events may tolerate a few milliseconds more. Old aggregates may be needed only for weekly jobs, where a disk read is fine.

A typical split for this kind of dataset
ClassShare of dataAccessLatency need
Active users' feature vectorsabout 12%every page viewunder 1 ms
Active users' countersabout 3%every event1 to 2 ms
Inactive users (no visit in 30 days)about 80%rare5 to 10 ms is fine
Old aggregates for batch jobsabout 5%weeklyseconds are fine

2The Hidden Costs of a Very Large Cluster

Memory price is the visible cost. The others grow quietly with node count. With 150 shards and replicas, some node fails or restarts almost every week, so failovers and full resyncs become routine. Rebalancing a few terabytes takes days of careful operations. Every node gossips with others, so cluster bus traffic grows; the cluster specification targets up to about 1,000 nodes, and we would approach the range where this matters at 10 TB. And every client instance keeps connections to every primary, so 500 service pods times 150 primaries means 75,000 connections, each costing memory on both sides.

So keeping the current path means not only paying for 10 TB of RAM, plus replicas, but also staffing the operations of a cluster that size.

3The Options, Cheapest First

Memory savings come first, because they help every other option. Shorter key names, compact encodings (small hashes stored as listpacks, vectors stored as binary or 16-bit values instead of JSON numbers), and TTLs on data of users inactive for more than, say, 90 days, which is rebuilt when they return. These often cut 30 to 50 percent.

Tiered storage keeps hot keys in RAM and moves cold values to local flash, behind the same Redis interface. Commercial Redis offerings have this, so do some compatible engines, and it can cut cost sharply when the hot set is small, at the price of slower reads for cold keys, licence cost and, for some products, lock-in.

A disk-based store for the long tail, with Redis as a cache in front, is the third option: a key-value or wide-column store such as Cassandra, ScyllaDB or DynamoDB holds all users' features durably, and Redis holds the active set with TTLs. Reads of active users stay at memory speed; a returning inactive user costs one read of a few milliseconds. Apache Kvrocks, which speaks the Redis protocol on top of RocksDB, is a variant that keeps client code mostly unchanged.

Step throughRedis as a cache over a durable feature store
  1. Servicesread features through one client library
  2. Redis Cluster, active setabout 15% of keys, TTL 30 days, sub-millisecond
  3. Disk-based feature storeall users, durable, single-digit milliseconds
  4. Feature pipelineswrite to the store; refresh Redis for active users

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

4Comparing Total Cost Over Three Years

The comparison must include more than instance prices: infrastructure or managed service price for each year as data grows to 10 TB, the engineering effort to migrate and to change the services, the operating effort of each option, licences, and the risk of missing the features' latency budgets. A simple spreadsheet with these lines for each option, under the growth forecast, usually makes the decision clearer than any debate. If the hot set is 15 percent, keeping everything in RAM pays for 10 TB to serve 1.5 TB of hot data.

Then we pilot the preferred option on real traffic: for example route 5 percent of users' reads through the cache-over-store path for two weeks and compare p99 latency, error rate and the model's online metrics. A pilot also tests the migration path, which is where plans most often go wrong.

5Setting a Rule for the Future

The deeper failure was that nobody owned the growth. So the rule I would set is that every Redis dataset above an agreed size, say 200 GB, has a written growth forecast, a cost owner, and a TTL or retention policy, reviewed each quarter. New datasets state in design review whether Redis is the source of truth or a cache, and what happens when keys are evicted. That keeps the next team from drifting into the same position.

6Follow-up questions

Which latency numbers would make you keep everything in memory?

If a ranking request reads features for hundreds of items within a budget of, say, 50 ms, and the features of inactive users are read often, then even a few milliseconds per miss adds up and in-memory may be justified. I would look at the p99 latency each feature path allows, the number of lookups per request and the measured miss rate. If misses on cold users are rare and the budget allows 5 to 10 ms for them, a tiered or store-plus-cache design is fine; if every request touches cold keys under a tight budget, memory wins.

Why not just switch to a cheaper Redis-compatible engine?

A more memory-efficient engine can lower the bill, and it is worth testing, but it does not change the shape of the problem: paying RAM prices for data nobody reads. It is a complement to tiering, not a substitute.

How do you keep feature freshness with the cache-over-store design?

Pipelines write to the store and, for active users, also update Redis directly or invalidate the key. Reading code falls back to the store on a miss and fills Redis with a TTL, so a returning user is fresh after one read.

7Conclusion

In this answer, we started by measuring which part of the 4 TB is actually used and how fast it must be read, looked at the hidden operating costs of a 150-shard cluster, and walked through memory savings, tiered storage and a disk-based store with Redis as a cache. We compared them over three years including migration, operations, licences and latency budgets, piloted the favourite on real traffic, and set a rule that large datasets need a forecast and a cost owner.

What to say in the interviewAbout 90 seconds aloud

Open with

I would start with data, not technology. The first question is how much of the 4 terabytes is actually read in a day or a week, which I can measure from LFU frequencies, client-side metrics or by joining with active-user data.

Then, if they want more

In personalisation, usually a small hot set, maybe 10 to 15 percent, needs memory speed, while most keys belong to inactive users and are only paying for RAM.

Next I would put the hidden costs of scale on the table: at 150 shards and growing, failovers and resyncs are routine, rebalancing takes days, gossip traffic grows toward the cluster's design limit of about a thousand nodes, and every client keeps connections to every primary. Then I look at options.

Memory savings come first, like compact encodings, shorter keys and TTLs on inactive users. After that, tiered storage that keeps hot keys in RAM and cold ones on flash, or a disk-based key-value or wide-column store for the long tail with Redis as a cache in front.

I would compare total cost over three years, including the managed or infrastructure price, migration effort, operations, licensing and the latency budgets of the features, and pilot the preferred option on real traffic before committing.

Finally I would set a rule that every Redis dataset above an agreed size has a growth forecast and a cost owner, so the next team does not end up here.

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 to keep scaling Redis Cluster...": https://scrivio-interview-library.netlify.app/databases/redis-scaling/8d47b1652e/