Scrivio Interview library
DesignAdvanced7 min read · updated 12 November 2026

You run some services on Helidon MP, some on Open Liberty and most on Spring Boot. Design the platform contract that makes them operable the same way.

I would define the platform contract in terms of protocols and formats rather than frameworks: OpenTelemetry for traces and metrics, standard liveness and readiness endpoints, JSON logs with fixed fields, configuration from environment variables and mounted files with one naming rule, and OAuth2 or OIDC tokens validated by each runtime. Each framework gets a reference implementation and a conformance test suite, and support is tiered: the main framework, Spring Boot, gets full platform support while the others get the contract and fewer extras.

Why this question is asked

When an estate runs more than one Java runtime, the danger is not that the frameworks differ; it is that operating them differs. If each runtime exposes health on a different path, logs in a different shape and reads configuration in its own way, every dashboard, alert, runbook and on-call engineer has to know three systems. Interviewers ask this design question to see whether we can find the right level of abstraction for a platform. In this answer, we will define the contract by protocols, go through telemetry, health, logs, configuration and security, then make it enforceable with reference implementations and conformance tests, and finally set support tiers.

1Define the Contract by Protocols, Not Frameworks

The tools that operate services, Kubernetes, the telemetry backend, the log pipeline, the identity provider, do not care which framework produced a response. They care about protocols and formats: an HTTP path that answers 200 or 503, spans in OTLP, a log line in JSON with a trace_id field, a JWT with the right audience. So the contract states exactly those observable behaviours, and each runtime is free to meet them in its own way.

This has a useful side effect. A fourth runtime, or a service in another language, can join the platform by meeting the same contract, without the platform team writing anything first.

The platform contract and how each runtime meets it
Contract itemSpring BootHelidon MPOpen Liberty
Liveness /health/liveActuator group, path mappedMicroProfile HealthmpHealth feature
Readiness /health/readyActuator group, path mappedMicroProfile HealthmpHealth feature
Traces and metrics, OTLPMicrometer + OTLP or OTel agentMicroProfile TelemetrympTelemetry feature
JSON logs, fixed fieldsstructured logging configJSON log formatterJSON console logging
Config: env vars + filesrelaxed bindingMicroProfile ConfigMicroProfile Config
JWT resource serverSpring SecurityMicroProfile JWTmpJwt feature
The left column is the contract; the other columns are implementation details.

2Telemetry and Health

For telemetry, the contract says: traces and metrics are exported over OTLP to the platform Collector at an address given by the standard OTEL_EXPORTER_OTLP_ENDPOINT environment variable, the service name comes from OTEL_SERVICE_NAME, trace context propagates with W3C traceparent, and HTTP metrics follow OpenTelemetry semantic conventions such as http.server.request.duration. MicroProfile Telemetry, available in Helidon and Open Liberty, is built on OpenTelemetry, and Spring Boot can export over OTLP through Micrometer or the OpenTelemetry Java agent. Check each runtime's version for the exact conventions it follows.

For health, the contract fixes the paths, /health/live and /health/ready on the management port, and the meaning: liveness checks only the process, readiness includes critical dependencies. MicroProfile Health uses those paths natively. Spring Boot Actuator exposes liveness and readiness groups under /actuator/health, and the platform starter maps them to the contract paths so probes in Kubernetes manifests are identical across services. The response is JSON with a top-level status of UP or DOWN, which both already produce.

3Logs and Configuration

Logs go to standard output as one JSON object per line, with required fields: timestamp in UTC ISO-8601, level, logger, message, service, trace_id and span_id, plus exception details when there is one. The log pipeline parses one format, and a search by trace_id finds lines from all runtimes. Spring Boot 3.4 and later has built-in structured logging formats; Helidon and Open Liberty have JSON formatters or console JSON settings. The contract defines the field names, and each reference implementation maps the runtime's format onto them.

Configuration comes from two sources only: environment variables for simple values and files mounted from Kubernetes ConfigMaps or Secrets for larger ones and for secrets. The naming rule is shared: a property app.orders.max-items is set by the environment variable APP_ORDERS_MAX_ITEMS. MicroProfile Config and Spring's relaxed binding both map environment variables to dotted names in this way, with small differences in how dashes are handled, so the contract tests the exact cases we use. No runtime reads configuration from a framework-specific server that others cannot use.

YAML
# Same Kubernetes manifest fragment for every runtime
env:
- name: OTEL_SERVICE_NAME
value: orders
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://otel-collector:4317
- name: APP_ORDERS_MAX_ITEMS # -> app.orders.max-items
value: "50"
livenessProbe: { httpGet: { path: /health/live, port: 9000 } }
readinessProbe: { httpGet: { path: /health/ready, port: 9000 } }

Notice that nothing in this fragment reveals the framework. A platform engineer can read and change it without knowing whether the container runs Spring Boot, Helidon or Open Liberty, which is exactly the goal.

4Security Through Standard Tokens

Every service is an OAuth2 resource server that accepts JWT access tokens from the platform identity provider and validates the same things: signature against the JWKS, issuer, audience containing the service name, expiry with 60 seconds of clock skew, and scopes or roles mapped to permissions with the same names. Spring Security implements this through its resource server support, and MicroProfile JWT in Helidon and Open Liberty validates issuer, signature and expiry with standard configuration properties. Where a runtime's standard support lacks a check, such as audience validation in some versions, the reference implementation adds it; check your versions.

Service-to-service calls use client credentials tokens, so every runtime also needs a small client-side helper to obtain and cache tokens. That helper is part of each reference implementation.

5Reference Implementations and Conformance Tests

A contract nobody tests drifts. For each framework, the platform team keeps a reference implementation: a template service with the dependencies, configuration and small adapters that meet the contract. New services start from it. More importantly, a conformance test suite checks any running service from the outside: it starts the container with the standard environment, calls /health/live and /health/ready, stops a dependency and expects readiness to fail without liveness failing, sends requests and checks that spans arrive at a test Collector with the right service name, reads log lines and validates the JSON fields, and sends a set of test tokens expecting the documented 200, 401 and 403 answers.

The suite runs in every service's pipeline, whatever its framework. When the contract changes, for example a new required log field, the test changes first, and each reference implementation is updated until it passes.

Step throughConformance check in each service pipeline
  1. Build container imageany framework
  2. Start with standard envtest Collector, test identity provider
  3. Run contract testshealth, telemetry, logs, config, tokens
  4. All contract tests pass?
    YesDeploy allowedNoBlock and report the failing item

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

The same test suite runs for Spring Boot, Helidon MP and Open Liberty services.

6Support Tiers

Supporting three frameworks equally would triple the platform team's work. So the contract comes with explicit tiers. Tier 1, Spring Boot as the main framework, gets everything: the reference implementation, starters for shared clients and messaging, upgrade automation, documentation and help on call. Tier 2, Helidon MP and Open Liberty, gets the contract, the conformance suite and a maintained reference implementation, but teams using them own their framework upgrades and any extra integrations.

Writing the tiers down avoids frustration: teams choosing a tier 2 framework know the deal in advance, and leadership sees the real cost of each additional runtime. If a tier 2 framework grows to a large share of services, that is a signal to fund it as tier 1 or to plan consolidation.

7Follow-up questions

Why not force every service onto Spring Boot instead?

Migrating working services costs money and risk with little user benefit. The contract makes the existing mix operable now, and consolidation can happen later, when a service needs major changes anyway. If the estate later converges on one framework, the contract still applies, so the work is not wasted.

How do you handle a feature only one framework has, such as Spring Boot's info endpoint?

If it is useful to operations, it becomes a contract item with a defined path and format, and the other reference implementations provide it, perhaps with a small adapter. If it is only convenient for developers, it stays an optional extra of that tier. The contract grows only for things that tools or on-call engineers rely on.

Who owns the contract?

The platform team owns the document, the conformance suite and the reference implementations, but changes go through a light review with representatives of teams on each framework. That keeps the contract realistic for every runtime and gives teams a voice before a new requirement appears in their pipeline.

8Conclusion

In this answer, we designed a platform contract for services on Helidon MP, Open Liberty and Spring Boot. The contract is written in protocols: OpenTelemetry over OTLP, fixed liveness and readiness endpoints, JSON logs with fixed fields, configuration from environment variables and mounted files with one naming rule, and OAuth2 or OIDC tokens validated the same way. Reference implementations and a conformance suite make it enforceable, and support tiers keep the platform team's cost honest.

What to say in the interviewAbout 80 seconds aloud

Open with

I'd write the contract in terms of what tools and on-call engineers observe, not in terms of frameworks. Telemetry: traces and metrics exported over OTLP to our Collector, configured by the standard OTEL environment variables, W3C trace context, OpenTelemetry naming conventions.

Then, if they want more

Health: /health/live and /health/ready on the management port, liveness process-only, readiness with critical dependencies; MicroProfile Health gives that natively in Helidon and Open Liberty, and for Spring Boot our starter maps the actuator liveness and readiness groups to those paths. Logs: one JSON object per line on stdout with fixed fields including trace_id.

Configuration: only environment variables and mounted files, with one naming rule so APP_ORDERS_MAX_ITEMS means app.orders.max-items, which both MicroProfile Config and Spring's relaxed binding follow. Security: every service is a resource server validating JWTs from our identity provider with the same issuer, audience, expiry and scope rules, Spring Security on one side and MicroProfile JWT on the other.

Then I make it enforceable: a reference template per framework, and a conformance test suite that runs against any service's container in its pipeline. Finally, support tiers: Spring Boot gets full platform support, the others get the contract, the tests and a reference template, and own their upgrades.

About this answer

Last updated
12 November 2026
Versions it names
Spring Boot 3.4
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. 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 "You run some services on Helidon MP, some on Open Liberty and most on Spring Boot....": https://scrivio-interview-library.netlify.app/java/other-java-frameworks/2edfd2cbf1/