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.
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!