1) Micronaut is a JVM-based framework for building microservices and serverless applications that offers features like reactive HTTP server/client, automatic service discovery/load balancing, and support for technologies like AWS, GCP, and GraalVM.
2) Micronaut aims to address limitations of frameworks like Spring for microservices by using ahead-of-time compilation instead of reflection at runtime for improved performance.
3) The presentation demonstrated how to quickly generate and run a basic Micronaut application in Java, Groovy, or Kotlin along with a live demo of a book inventory application built as interoperable microservices using Micronaut and Consul.
2. WHO'S MIKE?WHO'S MIKE?
Bachelor of Science, Computer Science from
Senior Research Technician, petrochemical research
organization
Java Queue News Editor,
Past President,
(ACGNJ)
Founder & Co-Facilitator,
Rutgers University
InfoQ
Amateur Computer Group of New
Jersey
ACGNJ Java Users Group
1 . 2
4. WHAT IS MICRONAUT?WHAT IS MICRONAUT?
A full-featured, full-stack JVM-based lightweight
application framework for creating microservice-
based, cloud-native and serverless applications that
can be written in Java, Groovy, and Kotlin
Developed at (OCI)
, Principal Software Engineer and
Grails and Micronaut Product Lead at OCI
Object Computing, Inc.
Graeme Rocher
6. First introduced at the in March
2018
Designed from the ground up for microservices and
serverless applications
Latest version: 1.2.2
Greach Conference
3 . 2
14. WHY MICRONAUT?WHY MICRONAUT?
LET'S TRAVEL BACK IN TIME TO 2008LET'S TRAVEL BACK IN TIME TO 2008
Grails 1.0 released
Applications were monoliths
Before the advent of technologies such as:
Angular
React
Docker
Microservices
16. Attempt to t monolith-focused framework into
microservices environment
Spring and Grails weren't designed for the micro-
environment
5 . 2
17. Graeme RocherGraeme Rocher
Grails & Micronaut Lead at OCIGrails & Micronaut Lead at OCI
“We believe Micronaut is the basis for a framework
for the future, by resolving this tension by
eliminating all use of re ection and producing all
annotation metadata, proxies and framework
infrastructure at compilation time through a set of
annotation processors and AST transformations that
perform Ahead-of-Time (AOT) compilation. What this
allows Micronaut to achieve is blazing fast startup
time, low memory consumption and crucially
improved compatibility with GraalVM native image.”
5 . 3
18. LANGUAGE AND BUILD TOOLSLANGUAGE AND BUILD TOOLS
JVM LANGUAGESJVM LANGUAGES
24. BUILT-IN PROFILESBUILT-IN PROFILES
Generate skeleton, yet working, applications as aGenerate skeleton, yet working, applications as a
building block for developing web or command linebuilding block for developing web or command line
applicationsapplications
create-app
create-controller
create-client
7 . 3
35. GeneratedGenerated HelloController.javaHelloController.java lele
package org.redlich;
import io.micronaut.http.annotation.Controller;
import io.micronaut.http.annotation.Get;
import io.micronaut.http.HttpStatus;
@Controller("/hello")
public class HelloController {
@Get("/")
public HttpStatus index() {
return HttpStatus.OK;
}
}
7 . 14
36. DEMO APPLICATIONDEMO APPLICATION
A book inventory application built on three
microservices
Based on a written by
, senior software engineer at OCI
Uses , a distributed service mesh to connect,
secure, and configure services across any runtime
platform and public or private cloud
tutorial Sergio del Amo
Caballero
Consul
44. NY/NJ/PA JAVA USERS GROUPSNY/NJ/PA JAVA USERS GROUPS
ACGNJ Java Users Group
facilitated by Mike Redlich & Barry Burd
NYJavaSIG
facilitated by Frank Greco
javasig.org
javasig.com
46. PhillyJUG
facilitated by Paul Burton, et.al.
Princeton Java Users Group
facilitated by Yakov Fain
meetup.com/PhillyJUG
meetup.com/NJFlex
10 . 2
47. FURTHER READINGFURTHER READING
INFOQ TECHNICAL ARTICLESINFOQ TECHNICAL ARTICLES
Sergio del Amo Caballero
December 6, 2018
Sergio del Amo Caballero
October 5, 2018
Micronaut Tutorial: Part 2: Easy Distributed Tracing, JWT Security
and AWS Lambda Deployment
Micronaut Tutorial: How to Build Microservices with This JVM-
Based Framework
49. INFOQ NEWSINFOQ NEWS
May 14, 2019
December 31, 2018
October 19, 2018
Micronaut 1.1 Features Enhanced Support for Building Cloud-
Native Applications
Micronaut for Spring Allows Spring Boot Apps to Run as
Micronaut Apps
The Road to Micronaut 1.0: A JVM-Based Full-Stack Framework
11 . 2
50. UPCOMING ACGNJ JAVA USERSUPCOMING ACGNJ JAVA USERS
GROUP MEETINGSGROUP MEETINGS
Tuesday, October 8, 2019
Tuesday, October 22, 2019
Monday, November 18, 2019
Beautiful SDK Design in Java for APIs
Reza Rahman
Ray Tsang
Micah Silverman
12