Measuring Java 11 Lambda cold starts with SnapStart - Using Quarkus framework

Click for: original source

In this article authors are going to measure the performance of snapstart using Quarkus as another popular Java framework. All in serverless environment with AWS Lambda. By Vadym Kazulkin.

In this article you will get information on:

  • Quarkus Framework and its features
  • Writing AWS Lambda with Quarkus
  • Measuring the cold starts

The author measured 100 cold starts, using 1024MB and average values are in this table.

Percentile timings for Quarkus in ms timings for Quarkus with SnapStart in ms
p50 3164.19 1337.16
p90 3262.57 1374.76
p99 3823.99 1473.87

If we compile our application with GraalVM Native Image and deploy our Lambda as Custom Runtime, we can further reduce the cold start to between 450 and 550m. Quarkus Framework is Kubernetes Native Java stack tailored for OpenJDK HotSpot and GraalVM, crafted from the best of breed Java libraries and standards. Nice one!

[Read More]

Tags devops serverless java app-development containers cicd