Scrivio Interview library
DesignAdvanced6 min read · updated 12 November 2026

Design a fleet-wide process for upgrading 500 services across LTS versions every two years with minimal disruption.

I would run it as a repeatable platform process rather than 500 separate projects: a platform team keeps a compatibility matrix for the target JDK, publishes a BOM and base images, and runs every service's CI against the next JDK months before the switch. Known code changes are applied with OpenRewrite, services move in waves ordered by risk with canaries and a rollback path, and progress is tracked centrally against a published date when the old JDK stops being supported.

Why this question is asked

At fleet scale the problem changes character. Upgrading one service is an engineering task; upgrading 500 every two years is an operations problem, where the hard parts are coordination, shared dependencies and the long tail of services nobody owns any more. Interviewers ask this design question to see whether we can build a process that runs smoothly every cycle rather than heroics each time. In this answer, we will set the goal and constraints, then build the process piece by piece: the compatibility matrix, the shared platform artefacts, early CI, automated changes, waves and rollout, and tracking with an end date.

1The Goal and the Constraints

With an LTS every two years, the cycle repeats: Java 21 in 2023, 25 in 2025, 29 expected in 2027. The goal is to have every service on the new LTS within about a year of its release, without freezing feature work and without production incidents caused by the upgrade.

The constraints shape the design. Services share libraries, so one incompatible shared library blocks hundreds of services. Teams differ in maturity, so some have excellent tests and some have almost none. And the work must cost each team little, or it will lose against their feature roadmap. So the process must move as much work as possible to the platform team, where it is done once, and make the per-service part small and mostly automated.

Step throughWho does what in a fleet upgrade
  1. Compatibility matrixplatform team: which versions of frameworks, agents, libraries work on the target JDK
  2. Platform BOM and base imagesplatform team: one set of versions and one container image per JDK
  3. Early CI on the next JDKplatform team runs it; failures go to owning teams
  4. Automated changesOpenRewrite recipes open pull requests in every repository
  5. Service waves and rolloutservice teams merge, deploy with canaries, keep a rollback
  6. Central tracking and end datedashboard of versions; old JDK support ends on a published date

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

The upper layers are done once by the platform; the lower ones are small per-service steps.

2The Compatibility Matrix and the Platform BOM

The compatibility matrix is a table of every shared component and the minimum version that works on the target JDK: Spring Boot, Hibernate, build plugins, Lombok, Mockito and Byte Buddy, JaCoCo, monitoring and security agents, internal libraries. We fill it as early as possible, often from early-access JDK builds, and it tells us which upgrades must happen first.

The platform team then turns the matrix into artefacts that teams consume rather than decisions they make. A BOM (a bill of materials, a Maven or Gradle file that pins compatible versions of shared libraries) means a service upgrades dozens of libraries by changing one version number. A set of base container images, one per supported JDK, means the runtime is chosen by the image tag, with the right JVM flags and agents already set. When the matrix says an agent needs a new version, the platform updates the image once rather than asking 500 teams.

XML
<!-- In each service: one line selects the whole compatible set -->
<parent>
<groupId>com.acme.platform</groupId>
<artifactId>service-parent</artifactId>
<version>2027.1.0</version> <!-- Java 29 ready: Boot, agents, plugins aligned -->
</parent>
# Dockerfile
FROM registry.acme.internal/java-runtime:29-2027.1 # JDK, flags and agents set by platform

3Running Every Service's CI on the Next JDK Early

The most valuable single practice is to build and test every service on the next JDK long before the switch. The platform adds a second, non-blocking CI job that runs on the next LTS, or on early-access builds before it ships. A failure there does not stop the team's merge; it creates a finding that is collected centrally.

Running this for months before the switch changes the nature of the work. Instead of discovering 2,000 failures on the day we upgrade, we see them trickle in, and we can group them. Usually a handful of causes, such as one outdated library or one removed API, explain most failures, so fixing them in a shared library or the BOM clears hundreds of services at once.

4Automating the Known Changes

Many upgrade changes are mechanical: replace a removed API, rename a package, update a plugin configuration, remove a JVM flag that no longer exists. We write or reuse OpenRewrite recipes for these and run them across all repositories with a mass-change tool that opens one pull request per service, with CI results attached.

The rule is that if a fix is needed in more than a few services, the platform automates it instead of writing instructions. Teams then review and merge, which takes minutes. The pull request text links to the relevant line of the matrix and explains the change, so teams learn what changed without reading the release notes themselves.

5Waves, Canaries and Rollback

We upgrade in waves ordered by risk. Wave zero is the platform's own tools and shared libraries, because everything depends on them. Wave one is a set of pilot services with good tests and willing owners, from different stacks, which finds the remaining problems. Then come waves of ordinary services, and finally the most critical and the least tested ones, which benefit from everything learned so far.

Each service deploys with a canary: one instance or a small slice of traffic on the new JDK, compared against the rest on error rate, latency, CPU, memory and GC pauses. Rollback is just redeploying the previous image, which is why the JDK lives in the base image. We keep the previous image available until the end of the cycle.

Step throughOne service moving to the new JDK
  1. Automated pull request openedBOM, image and recipes applied
  2. Build and tests green on new JDK?
    YesDeploy a canaryNoFix, or escalate a shared cause to platform
  3. Canary metrics match the old version?
    YesRoll out to all instancesNoRoll back to previous image and investigate
  4. Service marked done on the dashboardcounts toward the wave

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

6Tracking Progress and Ending Support

A central dashboard shows each service, its JDK version, its wave, and whether the next-JDK CI job passes. That gives leadership a simple progress number, shows which teams are stuck, and points the platform at shared blockers.

Finally we publish a date when the old JDK stops being supported: its base image stops receiving updates and the platform stops answering questions about it. The date is announced at the start of the cycle, typically twelve to eighteen months after the new LTS, and services still on the old version after it need an explicit, time-limited exception approved by their director. Without an end date, the long tail never finishes, and the next cycle starts with three versions to support instead of two.

7Follow-up questions

What do you do with services that have no owner?

First make ownership visible: the dashboard lists them and their traffic. Then either assign them to a team with the platform's help, or plan to retire them. Unowned services are usually the riskiest ones to upgrade, so they come last, but they must have an owner before the support end date.

How long does a cycle take for 500 services?

With good automation, most services take a day or two of team time, and the platform team spends most of the year on it. A realistic plan is the matrix and BOM in the first two or three months after the LTS ships, pilot services next, and the bulk of the fleet over six to nine months, finishing within about a year.

Why not let each team upgrade whenever it wants?

Because shared libraries and base images then have to support every combination indefinitely, and the slowest teams set the pace for security patches. A central process with a clear end date costs less in total.

8Conclusion

In this answer, we built a fleet upgrade process where the platform team does the shared work once: a compatibility matrix, a BOM and base images, CI on the next JDK months ahead and OpenRewrite recipes for known changes. Service teams then merge small automated pull requests and roll out in waves with canaries and a rollback image, while a central dashboard tracks progress toward a published end-of-support date for the old version.

What to say in the interviewAbout 70 seconds aloud

Open with

I would treat it as a repeatable platform process rather than 500 projects. The platform team keeps a compatibility matrix of frameworks, agents, plugins and internal libraries for the target JDK, starting from early-access builds, and turns it into a BOM and base container images, so a service upgrades by changing a parent version and an image tag.

Then, if they want more

Months before the switch, every service gets a non-blocking CI job on the next JDK; failures are collected centrally, and since a few causes usually explain most failures, we fix them once in shared libraries or the BOM. Mechanical changes go through OpenRewrite recipes that open pull requests in every repository.

Then we upgrade in waves: platform tooling and shared libraries first, pilot services with good tests, ordinary services, and the critical or poorly tested ones last. Each service deploys a canary compared on errors, latency, memory and GC, and rollback is redeploying the previous image.

A dashboard tracks every service's version, and we publish an end-of-support date for the old JDK at the start, with director-approved exceptions only. Without that date the long tail never finishes.

About this answer

Last updated
12 November 2026
Versions it names
Java 21, Java 29
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.
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 "Design a fleet-wide process for upgrading 500 services across LTS versions every two...": https://scrivio-interview-library.netlify.app/java/java-versions/8eaf70799b/