Modern, lightweight JVM framework. Dependency injection at compile-time, minimal reflection, cloud-ready. Fast startup and low memory — ideal for microservices.
← Back to Server Side@Controller("/api/products") public class ProductController { private final ProductService service; public ProductController(ProductService service) { this.service = service; } @Get public List<Product> list() { return service.findAll(); } @Post public HttpResponse<Product> create(@Body Product p) { Product created = service.save(p); return HttpResponse.created(created); } }
Micronaut generates the entire object graph at compile time using annotation processing. No reflection or classpath scanning at startup. Result: instant boot, tiny memory footprint, and errors caught early.
Write in Java, Kotlin, or Groovy. Micronaut treats them equally. Great for polyglot teams; Kotlin support is exceptional with extension functions and coroutines.
Define a simple interface with annotations; Micronaut generates the HTTP client at compile time. No string building, no typos. Perfect for talking to external APIs or internal services.
| Data Access | Details |
|---|---|
| JDBC | Type-safe, compile-time verified queries. |
| JPA / Hibernate | Standard ORM with compile-time optimizations. |
| Mongo | MongoDB driver integration. |
| SQL | Reactive SQL clients for async DB calls. |
Service discovery, circuit breakers, and client-side LB built in.
First-class Kotlin support with coroutines and extension functions.
AWS Lambda, Google Cloud Functions — instant cold starts.
Edge devices, IoT, embedded systems — minimal footprint.