Scaling Your Spring Boot App to Zero

November 13, 2023

Serverless with scale to zero is very popular today because it lets you save server resources and money. However, JVM-based Spring Boot apps typically take several seconds to start, which introduces unwanted lag. We now have two exciting solutions available in Spring Boot 3 for this problem: compiling your app as a native application using GraalVM, or using the coordinated restore at checkpoint (CrAC) feature of OpenJDK. Both of these reduce start-up time to milliseconds. In this video, Thomas Risberg and DaShaun Carter look at using scale to zero for Spring Cloud Function apps as well as regular Spring Boot web apps running on Kubernetes with Knative and VMware Tanzu Application Platform. They also explore using various cloud environments and any issues building and deploying your scale-to-zero apps. This video was originally presented as part of SpringOne Tour: https://springonetour.io/

Previous
You Don’t Need Kubernetes to Be Cloud Native
You Don’t Need Kubernetes to Be Cloud Native

Kubernetes is all the rage, but did you know cloud native development predates its invention? This session ...

Next Video
Weaving Spring Cloud Gateway on Loom
Weaving Spring Cloud Gateway on Loom

In this video, Spencer Gibb provides a brief history of API gateways in Spring Cloud, including Zuul and wh...