Micronaut是一个JVM框架,可以用来构建Java,Kotlin或者Groovy服务。它没有通过运行时反射来完成依赖注入(DI)和生成代理(传统框架的常见缺点),而是使用了DI/AOP容器在编译时执行依赖注入,因此具有内存占用小、启动时间短的特点。这使得它不仅在标准的服务器端微服务方面,在物联网、Android应用程序和无服务器功能等环境中也很有吸引力。Micronaut使用Netty,并且对响应式编程提供一流的支持。它还包含了服务发现和熔断等特性,这些特性使得它对云计算非常友好。对于JVM领域的全栈框架来说,Micronaut是一个非常有前途的新成员。我们在越来越多的生产项目中看到了它的身影,这促使我们将其移至试用阶段。
Micronaut is a new JVM framework for building microservices using Java, Kotlin or Groovy. It distinguishes itself through a small memory footprint and short startup time. It achieves these improvements by avoiding runtime reflection for DI and proxy generation, a common shortcoming of traditional frameworks, and instead uses a DI/AOP container which performs dependency injection at compile time. This makes it attractive not just for standard server-side microservices but also in the context of, for example, the Internet of Things, Android applications and serverless functions. Micronaut uses Netty and has first-class support for reactive programming. It also includes many features that make it cloud-native friendly such as service discovery and circuit breaking. Micronaut is a very promising entrant to the full stack framework for the JVM space and we're keenly watching it.