Quick revision
The short answer
I would start with an inventory of how the hundreds of instances are really used (plain key-value caching, data structures, modules), because that decides which options are open. Then I would compare a managed service, a compatible fork such as Valkey, staying on current versions, and other products over a five year horizon, weighing operating effort, cost, support, lock-in and licence terms checked with legal for our use. Whatever we choose, clients stay on the standard protocol and Spring's cache abstraction so switching stays cheap, the migration is planned by risk with compatibility tests, and the decision is recorded with review dates.
What to remember
In this answer, we approached the long-term cache decision by first inventorying how hundreds of Redis instances are actually used, then comparing a managed service, a compatible fork such as Valkey, staying on current versions, newer Redis under its terms and other products. We weighed operating effort, cost, support and lock-in over five years with licence terms checked by legal, kept switching cheap through standard protocols, Spring's cache abstraction and a shared starter, migrated by risk with compatibility tests, and recorded the decision with review dates.
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 start with an inventory of how the hundreds of instances are really used (plain key-value caching, data structures, modules), because that decides which options are open. Then I would compare a managed service, a compatible fork such as Valkey, staying on current versions, and other products over a five year horizon, weighing operating effort, cost, support, lock-in and licence terms checked with legal for our use. Whatever we choose, clients stay on the standard protocol and Spring's cache abstraction so switching stays cheap, the migration is planned by risk with compatibility tests, and the decision is recorded with review dates.
Why this question is asked
Infrastructure decisions that looked settled can reopen overnight. In 2024 Redis moved its new releases from the permissive BSD licence to source-available licences, and the Linux Foundation started Valkey as a fork of the last BSD-licensed version; later Redis releases added another licence option. For a company running hundreds of self-managed instances, this coincides with a more ordinary pressure: operating all of them costs a lot of engineering time. Interviewers ask this question to see how a senior leader makes a long-term platform decision under uncertainty, without panic and without inertia. In this answer, we will build the inventory, lay out the options, compare them over five years, keep switching cheap, and plan the migration and the record of the decision.
1Start With What We Actually Use
The right answer depends on how the caches are used, and in a large estate nobody knows that precisely. So the first step is an inventory: for each instance, the owning team, version, memory size, traffic, and which features it uses. Most caching instances only use GET, SET with expiry and DEL, which every compatible product supports. Some use data structures such as sorted sets or streams, some use Lua scripts, and a few may use modules or features introduced only in newer Redis releases. Those few constrain the options most.
We can collect much of this automatically: INFO and command statistics show which commands each instance serves, and client libraries in our services tell us which APIs are called. The inventory usually shows a long tail: perhaps 80 percent of instances are plain caches, and a handful are unusual.
2The Options on the Table
Once we know what we depend on, the realistic options are few. Each has different costs and risks.
| Option | Gains | Costs and risks |
|---|---|---|
| Managed service (cloud provider) | no patching or failover work | price per GB, provider lock-in, limits |
| Compatible fork, self-managed (Valkey) | permissive licence, same protocol | still operate hundreds of instances |
| Stay on current Redis versions | no migration now | security fixes end; postpones the decision |
| Newer Redis under its current terms | newest features, vendor support | licence review needed for our use |
| Another product or in-process caches | can fit some uses better | rewrite and retest those uses |
3Comparing Over Five Years, Not Only Licence Fees
The licence is the trigger, but it is rarely the largest cost. For an internal cache, the source-available terms may not even restrict our use; that is a question for legal, and we bring them concrete facts: do we offer Redis as a service to third parties, do we modify and distribute it. The larger costs are usually operational. Hundreds of self-managed instances need patching, failover, monitoring, capacity planning and on-call time; if that is two or three engineers' time per year, it often exceeds the price difference of a managed service.
So we model each option over five years: licence or service fees, infrastructure, people time to operate, migration effort, support quality and the cost of being locked in if prices change. We also weigh the ecosystem: client library support, compatibility with our Spring Data Redis and Lettuce versions, and the health of the project or vendor. A typical outcome is a mix: move the plain caches to a managed, protocol-compatible service, and decide the unusual instances case by case.
4Keeping the Switch Cheap
The best protection against the next change of this kind is low switching cost. That means application code depends on the Redis protocol through standard clients and, for caching, on Spring's cache abstraction rather than on product-specific APIs. Where teams need advanced features, those are wrapped behind small interfaces they own. Connection details, serializers and TTLs live in a shared starter, so pointing a service at a new endpoint is configuration, not code.
If we keep to that, the choice of product becomes reversible, and a reversible decision can be made faster and with less fear.
5Planning the Migration and Recording the Decision
We migrate by risk, not all at once. Low-risk plain caches go first: since a cache can be refilled, the migration can be as simple as pointing a service at the new endpoint with a cold cache, as long as the database can take the temporary load. Instances with data structures or scripts get compatibility tests run against the target product first. The handful of unusual ones get their own plan, which may be to stay where they are for now.
- Inventory usage per instancecommands, features, size, owner
- Legal review of licence termsfor our actual use
- Five year comparison of optionscost, effort, support, lock-in
- Uses only standard commands?YesMigrate early, cold cache acceptableNoCompatibility tests first
- Record the decisionwith reasons and review dates
5 steps in order. Play them, or step through them one at a time.
Finally, we write the decision down as an architecture decision record: the options, the numbers, the legal advice, the choice and why, and a review date, for example every 12 months or on the next major licence or pricing change. That turns a reaction to news into a decision the organisation can revisit calmly.
6Follow-up questions
Is staying on the last BSD-licensed Redis version a valid option?
Briefly, yes, as a way to buy time while we decide. Long term it is risky, because that version will stop receiving security fixes from the vendor and our client libraries will move on. If we stay, it should be a recorded, time-limited choice with a plan, not the default by inaction.
Why not let each team decide for their own instances?
Because the costs are shared. Hundreds of teams each evaluating licences, products and operations would waste effort and produce many different setups to support. A central decision with a supported default, plus a documented route for exceptions, is cheaper and gives teams a better service.
7Conclusion
In this answer, we approached the long-term cache decision by first inventorying how hundreds of Redis instances are actually used, then comparing a managed service, a compatible fork such as Valkey, staying on current versions, newer Redis under its terms and other products. We weighed operating effort, cost, support and lock-in over five years with licence terms checked by legal, kept switching cheap through standard protocols, Spring's cache abstraction and a shared starter, migrated by risk with compatibility tests, and recorded the decision with review dates.
Open with
I would not start from the licence news; I would start from an inventory. For each instance I want the owner, version, size, traffic and which commands and features it uses, because most caching instances only use get, set with expiry and delete, while a few use data structures, scripts or modules, and those constrain the choice.
Then, if they want more
Then I would lay out the options: a managed service, a compatible fork like Valkey that we run ourselves, staying on current versions for a while, newer Redis under its current terms, or another product for some uses. On the licence, I would bring concrete facts about our use to legal rather than interpret it as engineers.
Then I would compare options over five years, including the people time to operate hundreds of instances, which is often bigger than any fee, plus support, ecosystem health and lock-in. A likely outcome is moving plain caches to a managed protocol-compatible service and handling unusual instances case by case.
To keep future switches cheap, services use standard clients and Spring's cache abstraction, with configuration in a shared starter. Migration goes by risk: plain caches first, often just a cold cache on a new endpoint, and compatibility tests for the rest. And I would record it as a decision record with a review date.
About this answer
- Last updated
- 12 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
- Spring Framework reference, Cache abstraction
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 "Your company runs hundreds of self-managed Redis instances for caching. Licence changes...": https://scrivio-interview-library.netlify.app/databases/caching/b7b7e7b690/