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

Introducing Micronaut

Introducing Micronaut

Unconference at JJUG CCC 2019 Spring

Mitsuyuki Shiiba

May 18, 2019
Tweet

More Decks by Mitsuyuki Shiiba

Other Decks in Programming

Transcript

  1. Introducing Micronaut
    2019-05-18 JJUG CCC 2019 Spring
    Mitsuyuki Shiiba @bufferings

    View full-size slide

  2. Micronaut
    https://micronaut.io/
    accessed on May 19th, 2019

    View full-size slide

  3. Framework for microservices
    These are matters for microservices:
    ● Startup Time
    ● Memory Footprint
    ● Throughput

    View full-size slide

  4. Micronaut - who developed it?
    ● developed by the creators of the Grails framework
    ● inspired by Spring, Spring Boot and Grails
    ● backed by Object Computing, Inc. (OCI)

    View full-size slide

  5. Micronaut - the way
    ● Compile time DI & AOP
    ● Reactive & Non-Blocking Support for HTTP Server & HTTP Client

    View full-size slide

  6. Micronaut - characteristics
    ● POLYGLOT FRAMEWORK: Java, Groovy, Kotlin
    ● GraalVM Support

    View full-size slide

  7. Micronaut - for me
    ● Good Documents
    ● Easy to start with CLI(mn) to generate applications
    ● Easy to understand for those who are used to Spring Boot
    ○ Controller
    ○ Configuration
    ○ Constructor Injection
    ○ etc
    ● Improvement speed is so fast

    View full-size slide

  8. DEMO
    ● Spring PetClinic
    ○ https://github.com/spring-projects/spring-petclinic
    ● Micronaut PetClinic
    ○ https://github.com/bufferings/micronaut-petclinic

    View full-size slide

  9. DEMO - result on my laptop
    very rough values
    Spring Boot Micronaut Micronaut (Native)
    Build 10 s 15 s 15 m
    Startup time 9 s 4 s 600 ms

    View full-size slide

  10. Rerference
    ● Micronaout を試した JJUG CCC 2018 Spring LT by @kencharos
    ● Devoxx UK 2019 - Cloud-native Microservices with Micronaut
    ● Short comparison: Building Graal Native Images with Quarkus, Micronaut and
    Helidon

    View full-size slide