Contact Us About Sponsorship

Questions about Micronaut Foundation sponsorship?

Please complete this form, and we’ll follow up with you shortly.

[hubspot type=form portal=4547412 id=a7b3ddfa-64b0-47fd-8358-45fa6a09456a]

Micronaut AOT – Build-Time Optimizations for Micronaut Applications

by Sergio Del Amo Caballero

Today, Cédric Champeau introduced a new Micronaut module – Micronaut® AOT

Micronaut AOT reduces application startup time and deployment size by executing a number of operations during the build. It can precompute bean requirements and perform substitutions at build time, so that only classes that are going to be used in production are included.

Micronaut AOT benefits regular Micronaut applications and GraalVM Native Images of Micronaut applications.

Micronaut AOT is a leap forward for Micronaut applications’ startup. When I applied the Micronaut AOT Gradle plugin and the optimizations to the Newsletter application, which I develop every Tuesday and Thursday at Micronaut Live, I got the following startup improvements:

That it is 26% faster startup time for a FAT jar and 46% for GraalVM Native Image.

Cédric’s blog post is a great introduction to the motivation, the internals, and the different optimizations available in these early milestones of the Micronaut AOT Module.

If you want to learn more, read the blog post and listen to the latest episode of the Micronaut Podcast, in which I talk to Cédric about Micronaut AOT.

Moreover, join me tomorrow at Micronaut Live and follow along as I apply the Micronaut AOT Gradle plugin to the newsletter application.

Enjoy faster startup times!