This Month in Spring - March 2021

March 31, 2021 Josh Long

Hi, Spring fans! Look, I know it's only been a month since we last spoke, but it feels like a decade! What a quantum leap forward this new Spring Native stuff is. Have you seen it? It supports converting Spring Boot applications into GraalVM native images. GraalVM native images are a great way to improve start up (take your application from 1 or 1.5 seconds down to 50 milliseconds (or, 0.050s)), and if that's what you care about, then you're well served here. To me, however, the most valuable implication of GraalVM native images is that the resulting binary takes much less memory at runtime. MUCH less. I've had applications that fit in 256MB of RAM take up 25MB of RAM after conversion. That's a 10x difference! And we're just getting started - there are further optimizations underway, and we'll be debuting those soon.

Spring Native isn't done. It's still experimental. It's still growing. There's work to be done, and not every application will work out of the box. But the list of supported workloads improves daily! The amazing Andy Clement and I presented on Spring Native and GraalVM at JRush last week. If you watch one thing this week, let it be that.

And then, once you're done with that, well of course there's a lot of other great stuff to get into this month so let's!

About the Author

Josh Long (@starbuxman) is a Spring Developer Advocate at VMware. Josh is a Java Champion, a Google Developer Expert for Kotlin, author of six books (including O'Reilly's "Cloud Native Java: Designing Resilient Systems with Spring Boot, Spring Cloud, and Cloud Foundry") and the just released "Reactive Spring" (ReactiveSpring.io), six best-selling Livelessons video trainings (including "Building Microservices with Spring Boot Livelessons" with Phil Webb and "Spring Security Livelessons" with Rob Winch, and "Cloud Foundry Livelessons" with Josh McKenty), and an open-source contributor (Spring Boot, Spring Integration, Spring Cloud, Activiti and Vaadin). Josh also has a podcast, "A Bootiful Podcast," and does a series of screencasts, "Spring Tips", on YouTube (bit.ly/spring-tips-playlist). Josh routinely blogs on the Spring blog (spring.io/blog)

Follow on Twitter Visit Website More Content by Josh Long
Previous
Caching 101, Illustrated with Tanzu GemFire
Caching 101, Illustrated with Tanzu GemFire

An introduction to caching, including implementation of the cache-aside pattern, and how Tanzu GemFire can ...

Next
Why Modernizing the Data Layer Requires More than New Tools
Why Modernizing the Data Layer Requires More than New Tools

Kevin Muerle of VMware Tanzu Labs shares his insights from decades helping enterprises modernize their data...