Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Tech talk: Micronaut

Tech talk: Micronaut

Introduction to Micronaut

Dimitri

July 31, 2020
Tweet

More Decks by Dimitri

Other Decks in Programming

Transcript

  1. Tech talk: Micronaut

    View full-size slide

  2. How do we usually
    write Java
    applications?
    ● Spring, Jackson, Hibernate, …
    ● Utilizes annotations
    ● Annotation-driven development

    View full-size slide

  3. How do these
    annotations
    (usually) work?
    ● Uses reflection API
    ● Runtime evaluation takes time
    ● Higher memory consumption
    ● Less benefit from Ahead of Time
    compilation

    View full-size slide

  4. Is there an alternative?

    View full-size slide

  5. Meet Micronaut ● Modern Java framework
    ● Focuses on microservices and
    serverless
    ● Annotation processors
    ● Runs at compile-time

    View full-size slide

  6. Advantages of
    Micronaut
    ● No reflection
    ● No classpath scanning
    ● Decreased startup time & memory
    footprint
    ● Works with annotations of other
    libraries!

    View full-size slide

  7. Let’s try it out!

    View full-size slide

  8. Remember this ● Startup times not always important
    ● Framework still young
    ● Quality of documentation
    ● Compilation takes longer

    View full-size slide

  9. Thanks for listening!

    View full-size slide