A modern, JVM-based framework for fast cloud applications
open sourceApache-2.0free
Micronaut is a JVM framework for building modular microservices and serverless applications in Java, Kotlin or Groovy. Its dependency injection, routes, queries and JSON serialization are worked out at compile time, with no runtime reflection, so wiring mistakes fail the build, apps start fast with little memory, and they compile to GraalVM native images. It has an HTTP server and declarative HTTP client, Micronaut Data repositories with ahead-of-time queries, OpenAPI generation, service discovery, tracing and configuration for AWS, Azure, Google Cloud, Oracle Cloud and Kubernetes, and tests that boot the real application. The mn CLI and Micronaut Launch create projects. It's a project of the Commonhaus Foundation.
Problems it solves
- Java microservices that start in milliseconds and use little memory for serverless functions
- compile my JVM service to a GraalVM native image without fighting reflection
- catch dependency injection mistakes at compile time instead of when the app starts
- a Spring Boot alternative for Kotlin or Groovy services with faster startup
- declarative HTTP clients in Java generated at compile time
- database repositories in Java whose queries are checked when the code compiles
- deploy the same JVM service to AWS Lambda, Azure Functions or Google Cloud with cloud integrations built in
Features
- Compile-time dependency injection with no runtime reflection
- Fast startup and low memory
- GraalVM Native Image support
- HTTP server and declarative client
- Micronaut Data with ahead-of-time computed queries
- OpenAPI generation
- Service discovery, tracing and configuration
- AWS, Azure, Google Cloud, Oracle Cloud and Kubernetes modules
- Testing that boots the real application context
- Java, Kotlin and Groovy
View 1 more
- mn CLI and Micronaut Launch project generator
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Micronaut does.
- Spring Boot Create stand-alone, production-grade Spring based applications that you can "just run"
- Ktor Build asynchronous servers and clients in Kotlin
- Quarkus Container-first Java framework with fast startup and native builds