How do we usually
write Java
applications?
● Spring, Jackson, Hibernate, …
● Utilizes annotations
● Annotation-driven development
Slide 3
Slide 3 text
How do these
annotations
(usually) work?
● Uses reflection API
● Runtime evaluation takes time
● Higher memory consumption
● Less benefit from Ahead of Time
compilation
Slide 4
Slide 4 text
Is there an alternative?
Slide 5
Slide 5 text
Meet Micronaut ● Modern Java framework
● Focuses on microservices and
serverless
● Annotation processors
● Runs at compile-time
Slide 6
Slide 6 text
Advantages of
Micronaut
● No reflection
● No classpath scanning
● Decreased startup time & memory
footprint
● Works with annotations of other
libraries!
Slide 7
Slide 7 text
Let’s try it out!
Slide 8
Slide 8 text
Remember this ● Startup times not always important
● Framework still young
● Quality of documentation
● Compilation takes longer