Scrivio Interview library
LeadershipPrincipal5 min read · updated 13 November 2026

Redis 8 ships search, JSON, time series and vector features in its main distribution, Valkey offers some of them as modules, and managed services support different subsets. Teams have started using whatever their current engine offers.

How do you set a long-term policy on which engine features teams may depend on, so the company keeps its options open?

We define a portable core, the data types and commands common to Redis and Valkey at a stated version, that any team may use without review. Engine-specific features such as the query engine, vector sets, JSON or non-portable hash field expiration become an explicit decision recorded with the lock-in, the alternative store and the exit cost, and they sit behind a service or library boundary owned by one team. We track licences, managed availability and community health yearly with procurement and legal, and we measure actual usage from commandstats so the policy rests on facts.

Why this question is asked

When engines diverge, every new command a team adopts quietly narrows the company's future choices: which engine it can run, which cloud services it can buy, and what a licence change would cost. Nobody decides this on purpose; it happens one convenient feature at a time. Interviewers ask senior leaders this question to see whether they can keep options open without blocking teams. In this answer, we will look at why drift happens, then build the policy in four parts: a portable core, a decision process for specific features, boundaries that contain them, and the ongoing tracking and measurement that keep the policy honest.

1Why Teams Drift Into Lock-In

Teams pick the tool in front of them. If the current engine is Redis 8, FT.SEARCH is right there, and building search on it takes an afternoon. A year later, five services depend on the query engine in different ways, and moving to Valkey, to a managed service that does not offer it, or to a different licence is a multi-quarter project nobody budgeted.

The goal of a policy is not to forbid those features. It is to make the cost visible at the moment of choice, and to make sure that if we do depend on something specific, the dependency is in one place we can change.

2Part 1: A Portable Core Anyone Can Use

We publish a portable core: the data types and commands common to Redis and Valkey at a stated baseline, for example everything in Redis 7.2 and Valkey 7.2, which covers strings, hashes, lists, sets, sorted sets, streams, pub/sub, Lua scripting and functions. Teams use anything in that core by default, with no review. Because it covers the vast majority of real use, the policy costs most teams nothing.

We revisit the baseline once a year. When a feature has landed in both engines and in the managed services we use, it joins the core.

3Part 2: Engine-Specific Features Are a Decision

Anything outside the core, such as the query engine, vector sets, JSON, time series, or hash field expiration where it is not available on every engine we run, needs a short architecture decision record. It states the feature, why the portable alternative is not good enough, the lock-in it creates, the alternative store we would use instead (for example a dedicated search engine, PostgreSQL with pgvector, or a document database), and a rough exit cost. A small review group, which includes someone from platform, approves it in days, not weeks.

Notice that this is lightweight on purpose. A heavy process gets bypassed; a one-page record that takes an hour to write gets written.

Step throughCan a team use this Redis feature?
  1. Is it in the portable core?Common to Redis and Valkey at the baseline
    YesUse it, no reviewNoWrite a decision record
  2. Is the lock-in worth it?Benefit vs exit cost and alternatives
    YesApprove, behind a boundaryNoUse the alternative store
  3. Record it in the inventoryOwner, deployments, exit plan

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

4Part 3: Put Specific Features Behind a Boundary

An approved engine-specific feature should live behind one service or library, owned by one team. For example, a search service exposes a search API to everyone else and is the only code that sends FT.SEARCH. If we later move to another engine or a dedicated search database, we change one service, not twenty.

This mirrors how we treat any external dependency: the more specific the dependency, the smaller the area of code that should know about it.

5Part 4: Track the Ecosystem and Measure Usage

The landscape keeps moving: licences changed twice in two years, managed offerings differ by cloud, and release cadence and community health vary. Once a year, platform, procurement and legal review licence terms, which managed services are available in each cloud we use, the release history of each engine, and contributor activity, and adjust the baseline or the approved list.

Policies drift unless they are measured. We build an inventory of commands and modules used per deployment, collected automatically from INFO commandstats and MODULE LIST, and compare it with the approved list. A new command outside the core showing up in a deployment is a conversation, not a punishment, and the inventory also tells us exactly what an engine change would touch.

Step throughThe policy as a stack
  1. Portable coreCommon commands at a stated version, no review
  2. Decision recordsEngine-specific use, with lock-in and exit cost
  3. BoundariesOne owning service or library per specific feature
  4. Yearly reviewLicences, managed availability, community health
  5. Usage inventorycommandstats per deployment, drift visible

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

6Follow-up questions

When would you approve a dependency on the query engine anyway?

When it clearly beats the alternatives for a real need and the exit cost is acceptable: for example, low-latency filtering and full-text search over data that already lives in Redis, at a scale where a separate search cluster would add more operational cost than it saves, and where the engine and managed service we use support it in every region we need. I would approve it behind a single search service, with the decision record naming the fallback, such as a dedicated search engine, and an estimate of the migration effort.

How do you get teams to follow the policy rather than ignore it?

Make the default path easy and the exceptions quick. Most teams never need review, the decision record is one page with a fast turnaround, and the platform team provides the shared boundary services so teams get the feature without building it. The inventory then shows where practice and policy differ, which we resolve with the team.

Is it worth the effort if we never plan to change engines?

Plans change for reasons outside our control, such as licence changes, price rises or a cloud provider dropping an offering. The policy is cheap insurance: it costs little in normal times and turns a forced migration from a crisis into a project.

7Conclusion

In this answer, we saw how to keep engine options open without slowing teams. A portable core of common commands at a stated version is free to use; engine-specific features need a short decision record naming the lock-in, alternative and exit cost; approved features sit behind one owning service or library; and a yearly review of licences, managed availability and community health, plus a usage inventory from commandstats, keeps the policy based on facts.

What to say in the interviewAbout 70 seconds aloud

Open with

I would make the cheap path the portable one. First, define a portable core: the data types and commands common to Redis and Valkey at a stated version, say 7.2, that any team can use without asking.

Then, if they want more

That covers almost everything people need. Second, anything outside it, like the query engine, vector sets, JSON, or hash field expiration where it is not portable, becomes a decision: a one-page architecture record that names the lock-in, the alternative store we would otherwise use, and the exit cost, approved quickly by a small group.

Third, approved specific features go behind a service or library owned by one team, so if we change engine or move to a dedicated search or vector database later, we change one place. Fourth, we track the ecosystem deliberately: licence terms, which managed services each cloud offers, release cadence and community health, reviewed yearly with procurement and legal.

And I would measure it, with an inventory of commands and modules per deployment built from commandstats, so the policy rests on facts and drift shows up early instead of during a forced migration.

About this answer

Last updated
13 November 2026
Versions it names
Redis 7, Redis 8
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 do you set a long-term policy on which engine features teams may depend on, so the...": https://scrivio-interview-library.netlify.app/databases/redis-internals/3efbaef278/