Moritz Kammerer

Microservices with Micronaut

What if your Java microservices could start in 67 milliseconds? See how Micronaut's compile-time magic makes the JVM a top contender for serverless.

Microservices with Micronaut
#1about 3 minutes

Why traditional Java frameworks are slow in the cloud

Slow startup times in frameworks like Spring Boot become a major cost and performance issue when scaling services to zero in the cloud.

#2about 3 minutes

How Micronaut achieves fast startups with compile-time DI

Micronaut moves expensive runtime operations like dependency injection, proxy creation, and AOP to the build phase using an annotation processor.

#3about 5 minutes

Understanding Micronaut's performance and build time tradeoffs

A simple benchmark with empty beans can be misleading; the real performance gains come from avoiding Spring's complex auto-configuration, at the cost of longer compile times.

#4about 5 minutes

A comprehensive overview of Micronaut's features

Micronaut is a full-stack framework providing features for dependency injection, REST APIs, caching, resilience, database access, security, and serverless functions.

#5about 5 minutes

Creating your first Micronaut project and HTTP endpoint

Bootstrap a new application using the Micronaut CLI and create a basic REST endpoint with the `@Controller` and `@Get` annotations.

#6about 4 minutes

Using dependency injection with services and singletons

Structure your application by creating services and using constructor injection with `@Inject`, ensuring implementations are discoverable with `@Singleton`.

#7about 3 minutes

Building a declarative HTTP client to call external APIs

Define a Java interface annotated with `@Client` to have Micronaut automatically generate a type-safe HTTP client implementation at compile time.

#8about 3 minutes

Implementing resilience patterns like caching and fallbacks

Easily add resilience to your services by using the `@Cacheable` annotation for caching and the `@Fallback` annotation for failure recovery.

#9about 4 minutes

Comparing Micronaut and Spring Boot performance benchmarks

A real-world application benchmark shows Micronaut has significantly faster startup times, smaller JAR sizes, and higher request throughput compared to an equivalent Spring Boot application.

#10about 4 minutes

Compiling Micronaut applications to native images with GraalVM

Leverage Micronaut's reflection-free architecture to compile your application into a native executable using GraalVM, achieving startup times under 100 milliseconds.

#11about 4 minutes

Evaluating the pros, cons, and caveats of Micronaut

While Micronaut offers impressive performance, consider its relative maturity and the complexities of debugging native images when deciding if it's right for your project.

#12about 7 minutes

Answering questions on Micronaut and its ecosystem

The speaker answers audience questions regarding OpenJDK compatibility, Spring AOP support, use cases to avoid, comparisons to Quarkus, and market adoption.

Related jobs
Jobs that call for the skills explored in this talk.

Software Engineer

tree-IT GmbH
Bad Neustadt an der Saale, Germany

Intermediate
Senior

Featured Partners

Related Articles

View all articles
BB
Benedikt Bischof
Why You Shouldn’t Build a Microservice Architecture
Welcome to this issue of the WeAreDevelopers Live Talk series. This article recaps an interesting talk by Michael Eisenbart who talks about the pros and cons of microservice architecture.‍About the speaker:‍Michael has been working for Bosch as a sof...
Why You Shouldn’t Build a Microservice Architecture
DC
Daniel Cranney
What Developers Really Need to Create Great Code Demos
Every developer on earth has, at some point, had another developer to thank for a breakthrough, a success, an aha moment they wouldn’t have had without coming across that blog post, that open-source contribution, that reply on socials or that humble ...
What Developers Really Need to Create Great Code Demos
CH
Chris Heilmann
With AIs wide open - WeAreDevelopers at All Things Open 2025
Last week our VP of Developer Relations, Chris Heilmann, flew to Raleigh, North Carolina to present at All Things Open . An excellent event he had spoken at a few times in the past and this being the “Lucky 13” edition, he didn’t hesitate to come and...
With AIs wide open - WeAreDevelopers at All Things Open 2025

From learning to earning

Jobs that call for the skills explored in this talk.

Cloud Engineer (m/w/d)

Cloud Engineer (m/w/d)

fulfillmenttools
Köln, Germany

50-65K
Intermediate
TypeScript
Google Cloud Platform
Continuous Integration
Backend Engineer (m/w/d)

Backend Engineer (m/w/d)

fulfillmenttools
Köln, Germany

35-65K
Intermediate
TypeScript
Agile Methodologies
Google Cloud Platform