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 Slide

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

    View 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 Slide

  4. Is there an alternative?

    View Slide

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

    View Slide

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

    View Slide

  7. Let’s try it out!

    View Slide

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

    View Slide

  9. Source code

    View Slide

  10. Thanks for listening!

    View Slide