Scrivio Interview library
LeadershipPrincipal7 min read · updated 12 November 2026

Managed application platforms come and go: some popular Java platforms have been retired by their vendors, forcing customers to migrate within a few years. How do you choose deployment platforms for your company's Java services so that a platform retirement does not become a crisis?

We make a platform retirement survivable by keeping our services portable and by knowing, in advance, what leaving would cost. That means standard packaging such as OCI images and executable jars, configuration through environment variables, platform-specific code kept at the edges behind Spring Boot abstractions and OpenTelemetry, a vendor risk review before adoption, and a tested exit path to at least one alternative such as Kubernetes. We still accept some lock-in where a higher-level platform saves measurable engineering time and the exit cost is known.

Why this question is asked

Managed platforms make teams fast, and that is why they are popular. But they are products, and products get retired: Microsoft, for example, has announced the retirement of Azure Spring Apps with a multi-year notice period, and other vendors have closed or reshaped Java hosting offers before. A company with 200 services on a retiring platform suddenly has a migration it did not plan, with a deadline it did not choose. Interviewers ask this at principal level to see whether we can balance speed now against risk later, and turn a vague fear of lock-in into concrete practices. In this answer, we will look at where lock-in actually comes from, how to assess a vendor before adopting it, how to keep services portable, how to maintain and test an exit plan, and how to decide when lock-in is worth it.

1Where Lock-in Actually Comes From

Lock-in, the cost of moving away from a supplier, rarely comes from the place where the code runs. A container that listens on a port runs almost anywhere. It comes from everything the service starts to depend on around it. The build may use a platform-specific packaging step. Configuration may be read through a vendor SDK. Business code may call a vendor's messaging or feature-flag library directly. Monitoring dashboards, alerts and deployment pipelines may all be written in the platform's own format. And the team's knowledge may be about the platform rather than the underlying concepts.

So the useful question is not whether we use a managed platform, but how many of these layers are tied to it. Each one is a separate migration task on the day the platform goes away.

Step throughLayers of a service and how portable each one is
  1. Business codeshould know nothing about the platform
  2. Framework abstractionsSpring Boot, Spring Cloud, OpenTelemetry APIs
  3. Configuration and secretsenvironment variables, standard secret mounts
  4. PackagingOCI image or executable jar
  5. Platform adaptersthe only place for vendor SDKs and settings
  6. Pipelines and dashboardsoften the largest hidden migration cost

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

The higher a vendor dependency reaches, the more expensive the exit.

2Assessing the Vendor Before Adoption

Before adopting a platform, we assess it as a supplier, not only as a technology. Product maturity and adoption tell us whether it is a core business for the vendor or an experiment. The contract tells us about notice periods, price changes and data export. The vendor's deprecation policy, if it publishes one, tells us how much warning we can expect, and its history of retiring products tells us how seriously to take that policy.

A short written assessment with a risk rating is enough. A platform built on open standards, such as a Kubernetes-based service or one that runs plain container images, rates lower risk than a proprietary runtime, even from the same vendor, because the exit is shorter.

3Keeping Services Portable by Design

The core practice is open, standard packaging and configuration. Every service builds an OCI container image or an executable jar with the normal Spring Boot tooling, and reads configuration from environment variables and mounted secrets. Then the artifact itself does not care where it runs.

The second practice is keeping platform-specific code at the edges. Business code talks to Spring abstractions: Spring Data for storage, Spring Cloud Stream or Spring for Apache Kafka for messaging, Micrometer and OpenTelemetry for metrics and traces, and Spring Boot's Actuator for health. Where a vendor SDK is truly needed, it lives in one adapter class behind an interface we own. OpenTelemetry deserves special mention: if services emit telemetry through the OpenTelemetry protocol, changing the observability back end becomes a configuration change rather than a code change in every service.

Java
// Business code depends on our interface, never on a vendor SDK
public interface DocumentStore {
void put(String key, byte[] content);
}
// The only class that knows which cloud we are on
@Component
@Profile("gcp")
class GcsDocumentStore implements DocumentStore {
private final Storage storage; // Google Cloud Storage client
GcsDocumentStore(Storage storage) { this.storage = storage; }
public void put(String key, byte[] content) {
storage.create(BlobInfo.newBuilder("docs", key).build(), content);
}
}
// Moving clouds = one new adapter, zero changes in business code

Notice that this is not about avoiding every vendor service. It is about making sure each one is reached through a single, replaceable door.

4Maintaining and Testing an Exit Plan

An exit plan that nobody has tried is a hope, not a plan. For each platform we keep a documented migration path to at least one alternative, usually Kubernetes because nearly every cloud offers it and its deployment format is open. The document lists what would change: build steps, configuration mapping, ingress, secrets, observability and pipelines.

Then we test it regularly. A cheap and effective way is a scheduled pipeline, say quarterly, that deploys a few representative services to the alternative and runs their smoke tests. When that pipeline breaks, we have found new lock-in early, while it is still one change rather than two hundred. The result of each run also gives us a number: how many engineer-days it took to make the services run elsewhere.

Step throughA recurring exit test
  1. Pick representative servicesone simple, one with messaging, one with heavy config
  2. Deploy the same image to the alternativefor example a Kubernetes cluster
  3. Smoke tests pass?
    YesRecord time and effortNoLog the new dependency as lock-in
  4. Fix or accept the dependencywith a written cost estimate
  5. Update the exit planand the platform risk rating

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

Run it every quarter so lock-in is found while it is still small.

5Balancing Portability With Productivity

Portability is not free. Avoiding every managed service means running our own databases, queues and gateways, which costs engineers. A higher-level platform may save each team weeks per year, and at 40 teams that can be far more than the cost of one future migration.

So the rule a senior leader applies is: accept lock-in deliberately, where the saving is measured and the exit cost is known. For example, if a managed platform saves an estimated 2 engineer-weeks per service per year across 150 services, and our exit tests show leaving would cost about 3 engineer-days per service, the platform clearly pays for itself, and we can adopt it with confidence. If the exit cost were 6 engineer-weeks per service because business code is full of vendor calls, the same platform would be a much worse bet, and the fix is to reduce that coupling rather than avoid the platform.

6Follow-up questions

How would you estimate the cost of leaving a platform?

I would build it from the layers. For each service, list the platform-specific pieces: packaging, configuration, vendor SDK calls, pipelines, dashboards and alerts, and runbooks. Estimate each from the exit tests we already run, for example two days to move a service with only environment configuration and a standard image, and two weeks for one that uses vendor messaging directly. Multiply by the number of services in each group, add shared work such as building the new platform, data migration and training, and add a contingency of 20 to 30 percent. The number does not need to be precise; it needs to be good enough to compare against the platform's yearly savings and to tell us where reducing coupling pays most.

Does multi-cloud solve this problem?

Running everything on two clouds at once usually costs more than it saves, because every team pays the complexity every day. Portability with a tested exit path gives most of the protection at a fraction of the cost. Multi-cloud makes sense for specific needs, such as regulatory requirements or very high availability targets.

What do you do when a vendor announces a retirement anyway?

We start from the exit plan rather than from scratch: confirm the target, run the exit pipeline across all services to size the work, migrate in waves starting with simple services, and set internal deadlines well before the vendor's date to leave room for the hard cases.

7Conclusion

In this answer, we saw that lock-in comes less from where code runs than from the layers around it: packaging, configuration, vendor SDKs, pipelines and dashboards. We assess a vendor's maturity, contract and retirement history before adoption, keep services portable with OCI images, executable jars, environment configuration and platform code behind Spring abstractions and OpenTelemetry, and maintain an exit plan that we test regularly. Finally, we accept lock-in deliberately when the productivity gain is measured and the exit cost is known.

What to say in the interviewAbout 80 seconds aloud

Open with

I start from the fact that platforms are products and products get retired, so I plan for it at adoption time rather than at the announcement. Before we adopt a platform I look at it as a supplier: how mature and widely used it is, what the contract says about notice and data export, and the vendor's record of retiring things.

Then, if they want more

Then I make sure our services stay portable. Every service builds a standard OCI image or executable jar and reads configuration from environment variables. Business code only talks to Spring abstractions, Micrometer and OpenTelemetry; any vendor SDK lives in one adapter behind our own interface. That keeps the platform at the edges.

Third, we keep a documented exit path to at least one alternative, usually Kubernetes, and we test it: a quarterly pipeline deploys a few representative services there and runs smoke tests, so new lock-in shows up early and we have a real number for what leaving costs. Finally, I do not chase zero lock-in.

A higher-level platform can save far more engineering time than a migration would cost. So I accept lock-in where the saving is measured and the exit cost is known, and I reduce coupling where the exit estimate grows.

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 Boot reference
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 "Managed application platforms come and go: some popular Java platforms have been retired...": https://scrivio-interview-library.netlify.app/spring-boot/packaging-and-deployment/21c8ad6e2d/