Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

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)

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

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

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

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