The quick download:
Quarkus wins on startup time and memory; Spring Boot wins on ecosystem breadth and talent pool.
-
Quarkus wires the application once during the build, while Spring Boot repeats that work every time a pod starts.
-
Moving a Kafka-based metrics service to Quarkus cut CPU by about 85% and memory by about 88%, and startup fell from about 15 seconds to about 2 (measured in 2020 on Java 11).
-
Spring Boot 3 and 4 added AOT processing, GraalVM native images, and virtual threads on Java 21 and later.
-
Quarkus fits containers, serverless, and tight resource limits; Spring Boot fits Spring-heavy teams, broad integrations, and hiring at scale.
If you’re weighing Quarkus vs. Spring Boot for a new Java microservice, or deciding whether to migrate a Spring Boot service you already run, the decision usually turns on three questions:
- how much startup time and memory cost you in containers
- how much you depend on Spring libraries
- how much retraining your team can absorb
In this guide, we’ll compare the two frameworks side by side, explain why they behave differently at startup, and share what happened when LogicMonitor’s engineering team migrated part of our metrics pipeline from Spring Boot to Quarkus, including the Kafka problems we hit along the way.
Quarkus vs. Spring Boot At a Glance
Quarkus and Spring Boot both build Java microservices and REST APIs. The main difference is when each does its work: Quarkus wires the application at build time, while Spring Boot wires it at startup.
| Area | Quarkus | Spring Boot |
|---|---|---|
| Origin | Created by Red Hat, first released in 2019 | Built by the Spring team (Pivotal, now Broadcom), first released in 2014 |
| Current line (October 2026) | 3.x, with a long-term support (LTS) release every six months | 4.x, built on Spring Framework 7 |
| Design focus | Kubernetes-native, container-first | General-purpose enterprise Java |
| When the app is wired | Mostly at build time | Mostly at startup (classpath scanning, auto-configuration) |
| Startup time and memory footprint | Lower on the JVM, and lowest as a native executable | Higher on the JVM; narrowed by AOT processing and native image since 3.0 |
| Native image (GraalVM) | Core feature since launch | Supported since Spring Boot 3.0 |
| Dependency injection | CDI (ArC), resolved at build time | Spring IoC container, resolved at runtime |
| Standards and APIs | MicroProfile, Jakarta EE | Spring APIs (Spring Data, Spring Cloud) |
| Dev loop | Live coding, Dev Services, Dev UI, continuous testing | DevTools automatic restart, Docker Compose and Testcontainers support |
| Security | Extensions for OIDC and JWT (SmallRye) | Spring Security (OAuth2, SAML, LDAP) |
| Ecosystem and talent pool | Smaller set of curated extensions; growing | Largest in Java; most hiring and examples |
| Best fit | Containers, serverless, fast scaling, tight resource limits | Large enterprise apps, broad integrations, Spring-skilled teams |
Version details are from quarkus.io/releases and Spring release highlights.
What is Quarkus?
Quarkus is an open-source, Kubernetes-native Java framework that compiles as much of the application as possible at build time. As a result, services start fast and use little memory in containers.
Red Hat created it and released it in 2019 to make Java a strong fit for Kubernetes and serverless environments, where JVM startup cost and memory footprint had pushed teams toward Go or Node.js.
The design philosophy is container-first: do the expensive work (annotation scanning, configuration, dependency wiring) once during the Maven or Gradle build, not every time a pod starts. The features that matter most in a comparison with Spring Boot are:
- Build-time processing: extensions generate wiring code during compilation, so the running app loads fewer classes and starts with less to do.
- Native image support: Quarkus compiles to a GraalVM native executable with one build flag, and its extensions were designed for native mode from the start.
- Live coding and Dev Services: in dev mode, code changes reload on the next request, and Dev Services starts a database or Kafka broker in a container automatically for local testing.
- Imperative and reactive in one model: you can write blocking code or reactive code on Eclipse Vert.x in the same application.
- Standards-based APIs: Quarkus implements MicroProfile and Jakarta EE APIs (JAX-RS, CDI, MicroProfile Health and Fault Tolerance), plus extensions for libraries such as RESTEasy, Hibernate, and Apache Camel.
A minimal Quarkus REST API endpoint uses standard Jakarta REST annotations:
@Path(“/hello”)
public class GreetingResource {
@GET
@Produces(MediaType.TEXT_PLAIN)
public String hello() { return “Hello from Quarkus”; }
}
What is Spring Boot?
Spring Boot is an open-source Java framework that packages the Spring Framework into stand-alone, production-ready applications with sensible defaults and almost no manual configuration. The Spring team at Pivotal released it in 2014, and it is now maintained under Broadcom. It is the most widely used framework for Java microservices.
The design philosophy is convention over configuration at runtime: Spring Boot inspects what is on the classpath when the app starts and configures it to match. The features that matter most in a comparison with Quarkus are:
- Auto-configuration: add a dependency such as a JDBC driver, and Spring Boot configures a data source for it at startup.
- Starters: curated dependency sets (web, data, security, messaging) that pull in compatible library versions together.
- Embedded servers: apps ship with Tomcat or Jetty inside a single runnable JAR, so there is no external application server to deploy.
- Actuator: production endpoints for health checks, metrics, and app info, including Kubernetes liveness and readiness probes.
- The Spring ecosystem: Spring Data, Spring Security, and Spring Cloud cover data access, authentication, and distributed-system patterns such as service discovery and config servers.
The same REST API endpoint in Spring Boot uses Spring Web annotations:
@RestController
public class GreetingController {
@GetMapping(“/hello”)
public String hello() { return “Hello from Spring Boot”; }
}
The code looks almost identical. The difference shows up when the app starts, which the next section explains.
How do Quarkus and Spring Boot Differ?
Quarkus moves dependency injection, configuration, and framework setup into the build, while Spring Boot performs that work every time the application starts. That single design choice explains most of the difference in startup time and memory footprint.
The same wiring work happens in both frameworks; Quarkus runs it once in the build, Spring Boot repeats it on every pod start.
Spring Boot builds the application at startup:
When a Spring Boot service launches, it scans the classpath, evaluates hundreds of auto-configuration conditions, creates proxies, and wires beans through reflection. That makes it flexible at runtime, but every pod repeats the same work on every start, and the metadata it builds stays in memory.
Quarkus builds the application during compilation:
Its extensions read annotations and configuration while Maven or Gradle runs, then generate the wiring code ahead of time. The running service starts with far less to do and loads fewer classes. This is the main reason our services went from about 15 seconds to about 2 seconds to start.
The trade-off is flexibility:
- Spring Boot can change behavior at runtime more easily, and reflection-heavy libraries usually work without extra setup.
- Quarkus is more predictable at startup, but it expects libraries to fit its extension model. A library without a Quarkus extension may need reflection hints, especially in native mode.
Spring Boot has moved part of the way toward the build-time model. Its AOT engine, added in 3.0, pre-computes bean definitions during the build. AOT is required for native images and optional on the JVM, so most Spring Boot apps running on the JVM still wire themselves at startup.
What Stack Did LogicMonitor Run During the Migration?
We ran the Quarkus proof of concept on LogicMonitor’s metrics pipeline, a set of Kafka-based microservices that ingest and route monitoring data. At the time of the migration (2020), that pipeline ran on:
- Java 11 on Amazon Corretto, chosen for its licensing terms
- Apache Kafka, managed in Amazon MSK
- Kubernetes for orchestration, with each service shipped as Docker container images
- Nginx as the ingress controller inside Kubernetes
Why LogicMonitor Moved From Spring Boot to Quarkus
We moved because the Spring and Tomcat stack we inherited spent too much CPU and memory on framework overhead, started too slowly to scale out quickly, and made each pod too large to pack densely on our Kubernetes nodes. These were the specific problems and what we expected Quarkus to change:
- CPU and memory overhead: much of each pod’s resource request went to Spring and Tomcat rather than to the service’s actual job of moving metrics through Kafka.
- Startup and warm-up time: a service took 10 to 20 seconds to start (about 15 on average) before it could even begin warming up, which slowed scale-out during traffic spikes and lengthened rolling deploys.
- Boilerplate: wiring, configuration classes, and adapters added code that had nothing to do with the pipeline’s logic. Quarkus extensions and CDI removed most of it.
- Testing: adding @QuarkusTest to a test class starts the whole application for that test, so integration tests ran against the real wiring without separate test configuration.
- Horizontal scaling: smaller pods meant we could run more replicas per node and scale out instead of scaling up each instance.
- Learning curve: the Quarkus guides were short and task-focused, so engineers new to the framework could get a service running from the docs alone.
Before committing, we wrote down success criteria for a proof of concept on one pipeline application, which the next sections walk through.
Choosing Quarkus Over Micronaut and Helidon
We chose Quarkus over Micronaut and Helidon because it combined MicroProfile standards, Red Hat backing, and tight integration with the technologies we already used. All three are lightweight Java frameworks built for microservices, and all three were credible options at the time.
| Framework | Backed by | Approach | Our evaluation (2020) |
|---|---|---|---|
| Quarkus | Red Hat | Build-time wiring; MicroProfile and Jakarta EE APIs | Chosen |
| Micronaut | Micronaut Foundation (created by Object Computing) | Compile-time dependency injection; its own APIs | Closest match, but not based on MicroProfile and a smaller community at the time |
| Helidon | Oracle | MicroProfile (Helidon MP) or a lightweight functional API (Helidon SE) | Too much boilerplate to get running, and its integrations felt less complete |
| Spring Boot 3+ with native image | Broadcom (Spring team) | Spring with AOT processing and GraalVM | Not available during our migration; worth evaluating today for Spring-heavy teams |
Micronaut
Micronaut was the most similar to Quarkus. Its declarative style felt familiar, and it had out-of-the-box support for the technologies we use heavily: Kafka, Docker and Kubernetes, REST APIs, relational and non-relational databases, and Gradle.
We passed on it because it was built on its own APIs rather than Eclipse MicroProfile. Quarkus implemented MicroProfile and had Red Hat behind it, which gave us more confidence in long-term community support and documentation. That bet paid off quickly: when we found the scheduler’s initial delay wasn’t configurable, we filed a feature request and the fix shipped within two weeks.
Helidon
Helidon was a strong contender, with a REST layer based on JAX-RS and support for many of the same technologies. In our evaluation, it needed more boilerplate to get a service running, and its integrations were less tightly wired than Quarkus extensions.
What Worked and What Didn’t in Production
Kubernetes probes, CDI, configuration, and metrics worked better than we expected; the Quarkus Kafka consumer did not keep up with our volume. We judged the proof of concept against a written checklist of success criteria.
Our success criteria for the framework itself, written in 2020, were:
- All APIs return standard, RFC-compliant error codes.
- The framework’s documentation is accurate, detailed, and easy to navigate.
- It is easier to use than our previous stack (Jersey and Spring), with less boilerplate for simple functions and a gentler learning curve.
- It integrates with the services and technologies we run today and those we expect to add.
- It has a sizable community and long-term support. At the time, Quarkus had an Apache 2.0 license, Red Hat backing, 222 GitHub contributors (its first commit was December 12, 2018), and quick responses on GitHub issues. By March 2026 the project had grown to more than 1,100 contributors.
REST APIs were straightforward to build. We used Quarkus’ RESTEasy implementation, which was RFC-compliant and close to the Jersey framework our other services already used. We couldn’t use Quarkus’ built-in authentication because the existing application authenticated requests with a homegrown header token that had to stay backward compatible.
The framework also had to fit our existing infrastructure and stay backward compatible with the Spring Boot version:
- Run on Kubernetes with liveness and readiness probe support.
- Read configuration from our central configuration service.
- Work with the upstream services that feed the pipeline, without changes to their code.
- Use the same Kafka data model as before.
- Support the Kafka version we ran in Amazon MSK. Quarkus’ SmallRye Reactive Messaging library used the Apache Kafka client (version 2.3.1) directly, and Kafka’s client compatibility matrix showed it working with our broker version.
Kubernetes Support
Kubernetes liveness and readiness probes took one dependency and one setting. We added smallrye-health, enabled the Kafka health check, and had a Kafka probe ready to go. Adding our own check, to confirm the application was configured correctly, meant annotating a class and implementing a single interface. The probes were then served at /health (both checks), /health/live, and /health/ready.
Spring Boot covers the same need through Actuator, which exposes /actuator/health/liveness and /actuator/health/readiness endpoints and enables them automatically when it detects Kubernetes. Either way, the probe results are what your container monitoring uses to tell a restarting pod from a failing service.
CDI Bean Injection
Quarkus’ CDI bean injection was easier for our team to reason about than Spring’s dependency injection, and it let us build faster. One rule to know: to expose metrics, the metrics must come from a class with a bean-defining annotation. That requirement comes from how MicroProfile works, covered under metrics below.
Configuration
Quarkus supports profiles and configuration from multiple sources. LogicMonitor uses a central configuration service, so we set system properties from an eagerly instantiated bean that polled that service.
We rarely used the @ConfigProperty annotation. We want most settings to change at runtime, and they live on bean instance variables. Most beans in the proof of concept were @ApplicationScoped, so @ConfigProperty would have required static values.
Quarkus Kafka limitations
Kafka was the one area where Quarkus’ defaults worked against us. Quarkus connects to Kafka through the SmallRye Reactive Messaging framework, which worked well for our producer and poorly for our high-volume consumer.
The producer is easy to set up for imperative usage, but two defaults cost us hours of troubleshooting:
- Overflow strategy: by default, the emitter buffers messages in memory and waits for a downstream signal that each message was processed. When the consumer lives in a different application, that signal never arrives. We set the strategy to NONE. That removed the application’s own view of whether consumers were keeping up, so we tracked it through the Kafka client’s JMX metrics in our monitoring instead.
- WaitForWriteCompletion: the producer waited for Kafka to acknowledge each write, even with acks set to 0. The default is true; we set it to false to keep up with our data volume.

The consumer had two bigger problems:
- Auto commit: the consumer committed to Kafka after every message, which built up consumer lag.
- Single-threaded, serial processing: the consumer processed messages one at a time on a single thread and couldn’t keep up with our metrics volume. We replaced it with a consumer built directly on the Apache Kafka Java client, which let us run multiple consumer threads per container. We kept the Quarkus consumer for a lower-volume use case, where its simple configuration was worth it.

Watch for three more consumer gotchas:
- Return a completedFuture. Without it, the reactive framework took far too long per message and sometimes hung.
- An exception thrown in an @Incoming method stops the consumer, so handle errors inside the method.
- Each channel consumes from one topic only; topic patterns are not supported.
Our maintenance criteria covered logs and metrics:
- Logs flow into our existing log aggregation pipeline through Logstash and Fluentd.
- The service exposes metrics that our own LogicMonitor portal can collect.
- Standard JVM, thread, memory, and CPU metrics are monitored out of the box, without custom setup per service.
Metrics and logging
Quarkus worked with our existing Java monitoring over JMX with no extra setup: garbage collection, heap, thread, and uptime data started flowing as soon as the service ran. Defining our own metrics was even simpler, and for us it was one of the biggest benefits. With MicroProfile Metrics, one annotation timed or counted an operation and published it at /metrics/application.

The @Timed annotation reports min, max, mean, throughput, and percentiles. The same screenshot shows the fault tolerance feature, which publishes its own metrics, alongside scheduled tasks. Gauges and counters take one annotation each.

Today, Quarkus recommends its Micrometer extension for application metrics; the annotation-driven approach works the same way. Once metrics reach your application performance monitoring, they sit next to infrastructure and Kafka data for the same service.
Logging runs through JBoss Logging. After we added a logging.properties file, we could tune log levels and output per package.
Quarkus vs. Spring Boot Performance: Our Results
After the migration, our Quarkus service used about 85% less CPU and 88% less memory than the Spring Boot and Tomcat version, and it started in about 2 seconds instead of about 15. These are LogicMonitor’s own production results, measured in 2020 on Java 11 with the services running on the JVM. [SME: confirm year, Java and framework versions, and JVM vs native mode.]
| Measure | Spring Boot + Tomcat (before) | Quarkus (after) | Change |
|---|---|---|---|
| CPU | Baseline | About 15% of baseline | About 85% less CPU; about 200 cores freed across our Kubernetes worker nodes |
| Memory | Baseline | About 12% of baseline | About 88% less memory; about 500 GB freed for this application alone |
| Startup time | 10 to 20 seconds (about 15 on average) | About 2 seconds | About 87% faster |
The savings let us cut the service’s Kubernetes resource requests and limits sharply, which meant more pods per node and faster scale-out.
Read these numbers with three caveats:
- Startup and memory are where Quarkus gains most: Peak throughput on a long-running JVM service depends far more on your code and workload than on the framework.
- Our baseline was Spring Boot with Tomcat on Java 11: Part of the gap came from framework overhead that newer Spring Boot versions have reduced.
- One service, one workload: These results come from a Kafka-heavy metrics pipeline. Measure your own service before you plan a migration around them.
If we ran the same comparison today, we’d expect a smaller gap. Spring Boot 3 and 4 added AOT processing, and on Java 21 and later, both frameworks can use virtual threads for I/O-heavy workloads. Quarkus would still lead on startup time and memory footprint, because its build-time model removes work that Spring Boot on the JVM still does at startup.
Native Image Compilation With GraalVM
Both Quarkus and Spring Boot can compile an application into a GraalVM native image: a standalone executable that starts in milliseconds and uses much less memory than the same app on the JVM. That matters most for serverless functions such as AWS Lambda and for services that scale up and down often, where cold starts and memory directly affect cost.
Native images come with costs:
- Slower builds: native compilation takes minutes instead of seconds, so most teams build native images only in CI.
- Reflection must be declared ahead of time: libraries that rely on runtime reflection need hints or configuration.
- Lower peak throughput: long-running services can reach lower peak throughput than on the JVM, where the JIT compiler optimizes hot code paths.
A common pattern is to develop and test on the JVM, then ship native images only to production targets where startup time and memory footprint matter most.
Spring Boot native support arrived in version 3.0, and Spring Boot 4 builds on GraalVM 25’s reachability metadata format for leaner native images (Spring release highlights). Quarkus still makes native builds simpler, because its extensions were designed for native mode from the start and handle most reflection configuration for you.
[SME: Did we try native mode for the migrated services? What did startup, memory, and build time look like, and why did we choose JVM or native?]
When to Choose Quarkus vs. Spring Boot
Choose Quarkus when startup time, memory, and container density drive your costs; choose Spring Boot when ecosystem breadth, hiring, and existing Spring code matter more. Use this table to match the choice to your situation.
| Your situation | Lean toward | Why |
|---|---|---|
| New cloud-native microservices running in Kubernetes from day one | Quarkus | Faster startup and a smaller memory footprint mean more pods per node and faster scaling |
| Serverless functions (for example, AWS Lambda) or edge services | Quarkus | Cold starts and memory directly drive cost, and native images are easiest to build in Quarkus |
| Large enterprise application with many integrations | Spring Boot | Broadest ecosystem, with Spring Security, Spring Data, and Spring Cloud ready to use |
| Team already productive in Spring | Spring Boot, unless resource cost is a real problem | Migration takes time, and Spring Boot’s native image support and virtual threads close part of the gap |
| Existing Spring services with high cloud spend | Pilot Quarkus on one service | Run one proof of concept against written success criteria, as we did, before committing |
Quarkus is the better choice for containerized microservices where resource cost and scaling speed matter, provided your team can invest in learning CDI and the extension model. Spring Boot remains the safer default for broad enterprise applications and Spring-heavy teams. For LogicMonitor, Quarkus cut CPU by about 85% and memory by about 88% on our Kafka-based services, so we standardized on it for new microservices.
Whichever framework you run, the same rule from our migration applies: measure CPU, memory, startup time, and Kafka consumer lag before and after any change, so the decision rests on your own data.
Choose the framework that fits and prove it in production
Quarkus and Spring Boot can both power high-performing Java services. The right choice depends on your workload, deployment model, team experience, and the operational demands of your environment. Benchmarks can narrow the options, but production performance also depends on how well you can see and manage the application once it’s running.
Whichever framework you choose, make sure your teams can spot slowdowns, trace issues across services, and understand how changes affect the user experience. With LogicMonitor, you can bring application and infrastructure signals together to troubleshoot faster and keep critical services performing.
LogicMonitor helps you keep applications performing
LogicMonitor can help your team monitor application performance, find issues faster, and maintain visibility across your stack.
FAQs
Is Quarkus faster than Spring Boot?
For startup time and memory, usually yes, and the gap is largest when Quarkus runs as a native image. In LogicMonitor’s migration, startup dropped from about 15 seconds to about 2 seconds on the JVM. For peak throughput on a long-running JVM service, the difference is smaller and depends mostly on the workload.
Is Spring Boot still a good choice in 2026?
Yes. Spring Boot has the largest Java ecosystem and talent pool, and recent versions added GraalVM native image support (since 3.0), AOT processing, and virtual threads on Java 21 and later. For many enterprise teams, those improvements remove the main reason to switch.
Can Quarkus use Spring annotations?
Yes, partly. Quarkus offers Spring compatibility extensions, including quarkus-spring-di for dependency injection and quarkus-spring-web for REST controllers, plus extensions for Spring Data JPA and Spring Security. They support a subset of Spring features, do not start a Spring application context, and do not support Spring Boot’s test features (Quarkus Spring DI guide).
How hard is it to migrate from Spring Boot to Quarkus?
It depends on how much your services rely on Spring-specific libraries. In our migration, most effort went into three areas: the Kafka integration (we replaced the Quarkus consumer for high-volume topics), learning CDI’s rules for beans and metrics, and fitting runtime configuration into Quarkus’ model.
How do Quarkus and Spring Boot handle security?
Spring Boot uses Spring Security, which supports OAuth2, SAML, LDAP, and many other mechanisms. Quarkus uses security extensions for OpenID Connect (OIDC) and JWT, built on SmallRye, and validates some security configuration at build time. Teams with complex enterprise identity requirements usually find more ready-made options in Spring Security.


