A modern, JVM‑based framework for fast cloud applications
Build modular microservices and serverless applications with compile-time dependency injection, fast startup, low memory overhead, and GraalVM Native Image support.
$ sdk install micronaut
$ mn create-app com.example.demo
Application created at ./demo
$ cd demo && ./gradlew run
Startup completed in 235ms. Server Running: http://localhost:8080
$ ./gradlew nativeRun
Startup completed in 15ms. Server Running: http://localhost:8080
Built around Micronaut's strongest differentiators
Compile-time APIs, native-image readiness, integrated testing, cloud support, and productive data access work together instead of competing for attention.
One application model, from endpoint to database
The same annotations declare an HTTP endpoint, the client that calls it, the repository behind it, and the JSON that crosses the wire — then boot the whole thing in a test.
import io.micronaut.http.annotation.*;
import java.util.Collections;
import java.util.Map;
@Controller("/hello")
class HelloController {
@Get
Map<String, String> index() {
return Collections.singletonMap("message", "Hello World");
}
}Coming from a legacy JVM framework?
Legacy frameworks resolve the application model with reflection and classpath scanning while the application starts. Micronaut keeps the same familiar programming model but moves that work to the compiler — and the cost profile changes with it.
Cloud-native by default
A dedicated module for every major cloud and for Kubernetes, each wiring that platform’s own services into the same configuration, discovery, and deployment model.
The rest of the platform
Native executables, data access, and the build plugins that produce them — maintained alongside the framework rather than bolted on beside it.
| Same app | JVM | Native |
|---|---|---|
| Startup | 235 ms | 15 ms |
| Memory | 356 MB | 42 MB |
Access styles
Datasources
Native builds. nativeCompile, nativeRun, and nativeTest — or mn:native-image and mn:graalvm-resources.
Container images. dockerBuild and dockerBuildNative, with CRaC checkpoints and a push goal.
Test Resources. Databases and brokers started for dev and test runs, then torn down.
AOT optimization. Micronaut AOT analysis moves more work off startup and into the build.
Config validation. Configuration checked before packaging, per environment.
Who’s using the Micronaut Framework?
See how Micronaut users are achieving results with the Micronaut framework across serverless APIs, migrations, workflow platforms, and cloud services.
