Skip to content

LJC Live Talk: "When Is Native Java With GraalVM Worthwhile for Me?"

Published on · Updated on · 3 min read
LJC Live February 2023 Announcement

Share

Summary

  • Native Java meant spending developer time to save operational costs.
  • Here were the advantages:
    • Native Java gave us faster startup, smaller files, better security, and less memory use.
    • The sweet spot was microservices on Kubernetes — we could run more pods per node there.
  • Here were the disadvantages:
    • Native Java sometimes didn’t work and often made no business sense.
    • It was harder to learn & use, and there was low job demand.

My slides showed why I came to this conclusion.

Logistics

User Group

The London Java Community (LJC) was one of the most active Java user groups in the world. It organized multiple events per month. Most were online, but once a month there was an on-site event with two speakers: LJC Live. I was honored to give my talk there on February 16, 2023.

Talk

My talk “When Is Native Java With GraalVM Worthwhile for Me?” was part of LJC Live on Thursday, February 16, 2023, from 17:30–20:15 BST.

Abstract

Many Java applications were moving to the cloud. But in the cloud, Java was often pricier than competitors like Go, Python, or JavaScript. Native Java with the static GraalVM Native Image AOT (Ahead-of-Time) compiler made Java cheaper. Frameworks like Quarkus and Micronaut made native Java popular, and Spring Boot 3.0 had just given it a big boost. So, did I need to learn a new framework, like Quarkus or Micronaut? How did native Java work exactly? And when was native Java worthwhile for me?

My talk answered these questions. Here’s a short summary: Native Java executables started much faster, required less memory, and were smaller and more secure. The downsides: Native Java didn’t always make business sense, didn’t work for all applications, often ran slower, and made development and operations more complicated. And it was pretty new, so it was much harder to hire for and to troubleshoot.

My talk examined the advantages and disadvantages of native Java, independent of a particular Java framework. I explained how native Java worked, when you couldn’t use it, and how to get some of native Java’s benefits in “regular Java”. And I gave concrete guidelines so you could determine when native Java was worthwhile for you — and when it wasn’t.

Who Made Me the Expert?

I had data to back up my claims. In the spring of 2022, I was the editor of a highly popular, six-part article series about native Java on InfoQ. Java experts helped me. And I’d evaluated and recommended technologies for 20 years.

I was neither affiliated with the projects I discussed in this talk nor selling books or training courses. I shared industry analysis and my project experiences so you could build better projects faster!

Slides

The slides were available as a PDF. They had more content and more text than my talking slides. They were just 1.7 MB:

Download slides (PDF)

Get Started With Native Java

My guide to getting started with native Java explained how to install the tools for Spring Boot 3 and Quarkus and how to build native executables.

Start with Native Java

Additional Talk Information

Demo Application

The demo application converted images to PDFs. It was available as a Spring Boot 3 version and a Quarkus one.

Check out the demo application