Internal Benchmark
Spring Boot on Fargate vs. Quarkus-native on Lambda
Why: Most Spring Boot services run in always-on JVM containers. We wanted to measure that against a Quarkus native rebuild on Lambda, on the same AWS account, the same database and the same load.
What we found:
We deployed both versions of a reference service (Spring PetClinic) side by side on one AWS account and one database, and load-tested them identically. The native rebuild was faster at every percentile, not only in the tail, and two details of the setup cut against our own result. The full write-up covers both, with every raw figure.
Full method and raw figures- Cold start
- 54.5s (Fargate)→684ms (Lambda)
- Median latency
- 92.9ms (Fargate)→26.6ms (Lambda)
- p99 latency
- 218ms (Fargate)→50ms (Lambda)
- 100K req/mo
- $55 (Fargate)→$0.14 (Lambda)
- 5M req/mo
- $72 (Fargate)→$6.86 (Lambda)
- 50M req/mo
- $190 (Fargate)→$69 (Lambda)