Quick revision
The short answer
I would standardise behaviour more than the library: one shared Spring Boot starter on top of the default Lettuce client that sets timeouts, reconnect and keepalive, cluster topology refresh, serializers, metrics and TLS once for everyone. Teams may use Redisson where its locks or local cached maps are needed, or keep Jedis for existing code with a migration plan, as recorded exceptions. The starter comes with conformance tests for failover, node replacement and resharding, central version management and dashboards, is owned by a small platform team, and is judged by fewer client-caused incidents and faster recovery in drills.
What to remember
In this answer, we saw that the incidents came from settings every client shares, so we standardise behaviour through a shared Spring Boot starter on Lettuce, with timeouts, keepalive, topology refresh, serializers, metrics and TLS set once. Exceptions such as Redisson for locks or local caches are allowed with a reason, Jedis only with a migration plan, and licences are checked before commercial features. Conformance tests against containers, central version management, dashboards, a small owning team and incident and drill metrics make the standard real and measurable.
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 standardise behaviour more than the library: one shared Spring Boot starter on top of the default Lettuce client that sets timeouts, reconnect and keepalive, cluster topology refresh, serializers, metrics and TLS once for everyone. Teams may use Redisson where its locks or local cached maps are needed, or keep Jedis for existing code with a migration plan, as recorded exceptions. The starter comes with conformance tests for failover, node replacement and resharding, central version management and dashboards, is owned by a small platform team, and is judged by fewer client-caused incidents and faster recovery in drills.
Why this question is asked
When three of last year's incidents came from client misconfiguration, the problem is not that teams chose the wrong library. It is that every team has to rediscover the same dozen settings, and most get one or two wrong. Interviewers ask this to see whether a leader can raise the floor for 150 services without turning the platform into a gate that slows everyone down. In this answer, we will look at what actually caused the incidents, decide what to standardise, set the exception rules, make the standard provable with tests, manage versions, and measure whether it worked.
1What Actually Goes Wrong in Client Configuration
Redis client incidents follow a few patterns. A service never refreshes the cluster topology and keeps hitting old nodes after a reshard. A service has no TCP keepalive or user timeout, so a silently replaced node leaves it stuck for 15 minutes. A pool is left at its default size of 8 and starves under load. Timeouts are missing or set to minutes, so a slow Redis holds every request thread. And two services write the same keys with different serializers, so one cannot read the other's data.
Notice that none of these is about Lettuce versus Jedis versus Redisson. They are about settings that every client has. That observation shapes the whole decision.
2Standardise Behaviour, Not Just the Library
The core of the plan is a shared Spring Boot starter, for example company-redis-starter, that every service adds instead of configuring Redis by hand. It builds on Lettuce, the Spring Boot default, so it goes with the grain of the framework, and it sets the behaviour we have learned the hard way: command and connect timeouts, reconnect behaviour, keepalive and TCP_USER_TIMEOUT, adaptive and periodic topology refresh, a default serializer, Micrometer metrics with consistent names, and TLS with the company's certificates.
- Service code
RedisTemplate, Spring Cache, repositories, as before - company-redis-startertimeouts, keepalive, topology refresh, serializers, TLS, metrics
- Lettuce clientthe Spring Boot default, version managed centrally
- Redis deploymentsSentinel or Cluster, owned by the platform
4 layers, from the top down. Step through them one at a time.
The starter exposes a few overridable values with safe defaults and keeps the dangerous ones fixed. A team can raise a timeout for a batch job, but it cannot accidentally turn off topology refresh. The reason to do it this way is that configuration code copied between services drifts, while a dependency gets fixed once and upgraded everywhere.
3Allowing Exceptions With a Reason
Blocking teams with special needs would push them to work around the standard. So exceptions are allowed, but recorded with a reason. Redisson is a legitimate exception when a team needs its distributed locks, semaphores or local cached maps; the starter can provide a Redisson variant with the same timeouts and metrics. Jedis is allowed only for existing code, with a migration plan and a date. Before any team depends on a feature from a commercial edition, we check the licence terms and support arrangements, because a feature that later needs a paid licence becomes a surprise cost.
4Making the Standard Provable
A starter is only trustworthy if its behaviour is tested against the failures that caused the incidents. The platform team keeps conformance tests that run in CI against real Redis containers: a primary failover under load, a node that vanishes silently (packets dropped rather than a clean stop), and a reshard that moves slots to new nodes. Each test asserts a recovery time, for example errors stop within 30 seconds. Every new starter release must pass them.
Dashboards complete the picture. Because the starter publishes the same metrics in every service, one dashboard can show command latency, error rates, reconnects and MOVED redirects per service. During the next incident, we can see in a minute which services are struggling and whether they run the starter.
| Scenario | How it is simulated | Pass condition |
|---|---|---|
| Primary failover | kill primary under load | errors stop within 15 s |
| Silent node loss | drop packets to one node | reconnect within 30 s |
| Reshard | move slots to a new node | MOVED rate back to 0 within 60 s |
| Slow Redis | inject 2 s latency | requests fail at the timeout, threads freed |
5Managing Versions Centrally
Client versions and their defaults change with Spring Boot upgrades, and a version bump can silently change behaviour. So versions are managed in one place, through the company's dependency management BOM, and a supported-versions policy says which starter versions are supported and for how long. Automated dependency update tools open upgrade pull requests, and the conformance tests tell us whether a new Lettuce or Spring Boot version changed something important before services receive it.
6Ownership and Measuring Success
Someone must own the starter, answer questions about it and review exceptions. A small platform team, two or three engineers part-time, is enough. Success is measured by outcomes, not adoption alone: the number of client-caused Redis incidents per quarter, and the recovery time in failover drills across services. If after two quarters the incidents have not dropped, the starter is missing a setting or teams are bypassing it, and the dashboards will show which.
7Follow-up questions
How would you get 150 services onto the starter?
Make it the easiest path and roll it out in waves. New services get it from the project template. For existing ones, I would start with the services involved in last year's incidents and the most critical ones, offer pairing from the platform team, and provide an automated change, such as an OpenRewrite recipe, that replaces hand-written configuration with the starter dependency. A dashboard of which services use it, and a date after which unsupported configurations need a recorded exception, keep it moving. Most teams adopt quickly once it removes code they had to maintain.
Why not force everyone onto one library and stop there?
Because the incidents came from settings, not libraries. A forced switch costs every team migration work and still leaves each one to configure timeouts and refresh correctly. Standardising behaviour fixes the cause and lets the few teams with real needs keep the right tool.
What if a team's service needs very different timeouts?
The starter exposes timeouts as overridable values with sane defaults. A team sets its own value in configuration, and because the metric names are standard, the effect of that choice is visible on the shared dashboard.
8Conclusion
In this answer, we saw that the incidents came from settings every client shares, so we standardise behaviour through a shared Spring Boot starter on Lettuce, with timeouts, keepalive, topology refresh, serializers, metrics and TLS set once. Exceptions such as Redisson for locks or local caches are allowed with a reason, Jedis only with a migration plan, and licences are checked before commercial features. Conformance tests against containers, central version management, dashboards, a small owning team and incident and drill metrics make the standard real and measurable.
Open with
I would standardise behaviour more than the library, because the incidents came from settings that every client has: missing topology refresh, no keepalive, default pool sizes, missing timeouts and mismatched serializers.
Then, if they want more
So I would build a shared Spring Boot starter on top of Lettuce, the Spring Boot default, that sets timeouts, reconnect and keepalive with TCP user timeout, cluster topology refresh, the serializer, Micrometer metrics and TLS once for everyone, with a few safe overrides.
Teams that need Redisson's locks or local cached maps can use it as a recorded exception, ideally through a Redisson variant of the starter with the same timeouts and metrics, and Jedis stays only for existing code with a migration plan. I would check licence and support terms before anyone depends on a commercial edition.
The starter ships with conformance tests in CI against containers, failover, silent node loss and resharding, each with a recovery time to meet, and with dashboards that show client metrics per service. Versions are managed centrally through our BOM with a supported-versions policy, because Spring Boot upgrades change client versions and defaults. A small platform team owns it.
And I would judge it by fewer client-caused incidents and faster recovery in failover drills.
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, would you standardise on one client, and how would you...": https://scrivio-interview-library.netlify.app/databases/redis-scaling/2ce12d325e/