Quick revision
The short answer
The convergence tells me startup time and memory became first-class costs once Java ran in containers, serverless functions and densely packed pods, so every framework moved work to build time. As a result the technical differences between Micronaut, Quarkus and Spring Boot have shrunk, and ecosystem size, team skills and long-term maintenance now decide more than benchmarks. My strategy therefore invests in portable practices (standard APIs, clean boundaries, container-independent tests), keeps framework-specific features out of domain code, and revisits the framework choice on a schedule with measured data rather than fashion.
What to remember
In this answer, we saw that Micronaut, Quarkus and Spring Boot converged on ahead-of-time processing and native images because containers, serverless and per-pod cost made startup and memory important. The convergence shrank technical differences, so ecosystem, skills and long-term maintenance now dominate. A sound strategy invests in portable practices and clean boundaries, keeps framework features out of domain code, and revisits the choice on a schedule with measured data.
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.
The convergence tells me startup time and memory became first-class costs once Java ran in containers, serverless functions and densely packed pods, so every framework moved work to build time. As a result the technical differences between Micronaut, Quarkus and Spring Boot have shrunk, and ecosystem size, team skills and long-term maintenance now decide more than benchmarks. My strategy therefore invests in portable practices (standard APIs, clean boundaries, container-independent tests), keeps framework-specific features out of domain code, and revisits the framework choice on a schedule with measured data rather than fashion.
Why this question is asked
A few years ago, the choice between Java frameworks looked like a choice between architectures: runtime reflection on one side, compile-time generation on the other. Today all three major frameworks offer ahead-of-time processing and native images, and the JDK itself is adding startup features. Interviewers ask this at the most senior level because it tests whether we can read an industry trend and turn it into a durable strategy for an organisation. In this answer, we will look at why the convergence happened, what it changed, and how it shapes a framework strategy that stays affordable for a decade.
1Why Every Framework Moved Work to Build Time
Java's traditional deployment was a long-running server: start once, warm up, run for weeks. Startup time of 20 seconds and a heap of a gigabyte were acceptable because they were paid rarely and spread over a big machine. Containers and the cloud changed that. Autoscaling starts new instances under load, when every second of startup is a second of overload. Serverless functions start on demand and may live for seconds. Kubernetes packs many pods on a node, so memory per pod translates directly into nodes and money.
Micronaut and Quarkus were designed for this from the start, doing dependency injection and configuration work at compile or build time. Spring Boot answered with AOT processing in version 3 and first-class GraalVM native image support, and the JDK added its own help: class data sharing, CRaC in some distributions, and the Project Leyden AOT cache starting in Java 24. The direction is the same everywhere: compute once, during the build, whatever does not change at run time.
| Capability | Spring Boot | Quarkus | Micronaut |
|---|---|---|---|
| Build-time DI | AOT generates bean definitions | ArC at build | annotation processors |
| Native images | yes, via AOT and GraalVM | yes, core feature | yes, core feature |
| JVM startup help | AOT, CDS, CRaC, JDK AOT cache | build-time augmentation | compile-time metadata |
| Ecosystem size | largest | large, Jakarta-based | smaller |
| Commercial support | available | via Red Hat | available |
2What the Convergence Changed
When one framework starts in 3 seconds and another in 0.3, that difference can decide a choice. When all three can produce a native image that starts in well under a second, or a JVM build that starts in one or two seconds with an AOT cache, startup alone rarely decides it. Benchmarks still differ, but usually by less than the variation between two teams' implementations of the same service.
So the deciding factors moved. Ecosystem size matters: how many libraries integrate cleanly, how many answers exist for a strange error. Team skills matter: what our engineers know and whom we can hire. And long-term maintenance matters most of all: upgrade cadence, how breaking major versions are, how long versions are supported and who supports them. These factors favour different frameworks for different organisations, which is exactly why no single answer fits everyone.
3Investing in Portable Practices
If frameworks keep converging and the best choice may change again, the most valuable thing we can do is make our code cheap to move. That means using standard APIs where they are good enough: Jakarta Persistence for mapping, JDBC for data access, OpenTelemetry for telemetry, standard HTTP and OAuth2 for integration. It means clean boundaries: a domain layer of plain Java classes that knows nothing about the framework, with adapters at the edges for web, persistence and messaging.
It also means tests that do not depend on one framework's container. Domain logic is tested with plain unit tests that construct objects directly. Integration tests talk to the service over HTTP and to real dependencies in containers, for example with Testcontainers, so the same test suite could verify the service after a framework change. A service built this way can move frameworks in weeks; one with framework annotations in every class may need months.
Notice that moving this service to another framework touches only the controller, a few lines, while PricingPolicy and its tests stay as they are. Constructor injection helps here too, because it works the same way in all three frameworks and in plain Java tests.
4Revisiting the Choice on a Schedule
Framework decisions tend to be made once and defended forever, or changed whenever a conference talk excites someone. Neither is good. A better habit is a scheduled review, for example every two years, as part of the platform roadmap. The platform team builds the same reference service in the current framework and in one or two alternatives, measures startup, memory, throughput, build time and developer effort, and reviews ecosystem and support changes.
Most reviews end with keep what we have, and that is a fine result, because it is now backed by data. Occasionally a review finds a workload, such as scale-to-zero functions, where another option is clearly cheaper, and the organisation can adopt it there deliberately, under the same platform contract for health, telemetry, configuration and security.
- Build the reference service in each candidatesame API, same database
- Measurestartup, memory, throughput, build time
- Review ecosystem and supportlibraries, releases, vendor support, skills
- Clear gain for some workload?YesAdopt there, under the platform contractNoKeep the current choice, documented
4 steps in order. Play them, or step through them one at a time.
The review is routine, so changes come from data rather than fashion.
5Avoiding Deep Coupling in Domain Code
The last part of the strategy is a rule for engineers: framework features are welcome at the edges and kept out of the core. Framework-specific annotations, event systems, configuration injection and reactive types should not appear in business logic. Reactive types are a good example: once Uni or Mono spreads through domain methods, the code is tied to one library's style, and moving to virtual threads or another framework becomes a rewrite.
This rule costs a little: an extra adapter class here, a mapping there. But it keeps the price of a future move low, and with frameworks converging, that freedom is worth more than squeezing every convenience out of the current one.
6Follow-up questions
Does this mean the framework choice no longer matters?
It still matters, just for different reasons. The deciding questions are now about ecosystem fit, skills, support and maintenance cost rather than raw startup speed. For most organisations with an existing Spring estate, that argues for staying, while a team with strong Jakarta EE skills or a specific serverless workload may reasonably choose Quarkus or Micronaut.
Is hexagonal architecture worth it just to keep frameworks swappable?
Framework portability alone would not justify heavy layering. But clean boundaries also make domain logic easier to test, easier to read and safer to change, so portability comes as an extra benefit. The practical version is light: plain classes for business rules and thin adapters, not a ceremony of interfaces for every class.
What role do JDK features like the AOT cache play in this strategy?
They shift some benefits from the framework to the platform, which strengthens the case for portability. When the JDK itself can cache class loading and profiling data, any framework benefits, and the reason to pick a framework purely for startup becomes weaker still.
7Conclusion
In this answer, we saw that Micronaut, Quarkus and Spring Boot converged on ahead-of-time processing and native images because containers, serverless and per-pod cost made startup and memory important. The convergence shrank technical differences, so ecosystem, skills and long-term maintenance now dominate. A sound strategy invests in portable practices and clean boundaries, keeps framework features out of domain code, and revisits the choice on a schedule with measured data.
Open with
The convergence tells me the market agreed on one thing: once Java runs in containers, autoscaling groups and serverless functions, startup time and memory per instance are real costs, so every framework moved work to build time.
Then, if they want more
Micronaut and Quarkus were built that way, Spring Boot added AOT and native support in version 3, and the JDK itself is adding CDS improvements and the Leyden AOT cache. The consequence is that startup speed rarely decides between frameworks anymore.
What decides is ecosystem size, our team's skills and hiring, and long-term maintenance: upgrade pain, support windows, who supports it. So my strategy is less about picking the winner and more about staying cheap to move.
I'd invest in portable practices: standard APIs like JPA, JDBC, OpenTelemetry and OAuth2, plain-Java domain code with framework-specific adapters only at the edges, constructor injection, and integration tests over HTTP with Testcontainers that don't depend on one framework's test container. I'd keep reactive types and framework annotations out of business logic.
And I'd revisit the choice every two years with a reference service measured in each candidate, so changes come from data, usually confirming what we have, sometimes adopting something else for one workload under the same platform contract.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Java 24
- 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 "Micronaut, Quarkus and Spring Boot all moved towards ahead-of-time processing and native...": https://scrivio-interview-library.netlify.app/java/other-java-frameworks/d810b25aa7/