Jvm framework: micronaut 2.0 extends the serverless computing functions

JVM Framework: Micronaut 2.0 extends the serverless computing functions

Micronaut, one of object computing, inc. (oci) edited framework for java virtual machines (jvm) is in version 2.0 appeared. The jvm framework is designed for developing modular, simply testable web applications in the languages java, kotlin and groovy.

It sets for microservice applications on the twelve-factor app manifest and is geared to closed systems on the java virtual machine (jvm). Sometimes, the still quite young framework is considered as an alternative to spring boot, as it consumes less ram and starts rapidly.

The new release has apparently native image support on board, a hand-drawn threading model, developed reactive library support modules and advanced deployment options. With the new version, users are to carry out on each platform of their choice deployments, it is called in the release notes.

New threading model and support for java 14

The large innovation compared to previous version 1.X is probably the new threading model: manual area the threading configuration is now the default. This means that without personal intervention all controller methods in the event loop are executed. Oci has written a detailed blog post, which the methods in micronaut 1.X and 2.X represents each other against.

The new major version works with java 14 and groovy 3 together, a plug-in for maven is probably fresh on board and the micronaut developers have expanded the serverless support. The two milestone releases immediately before the main version, the servlet support for embedded server filed such as jetty, tomcat and undertow, which is the command line with the command .$ mn create app myapp –features enable jetty server. At the end of april, the framework also received a new architecture of the command line interface (cli) for creating new applications by terminal with the new tool micronaut launch.

Support for graalvm and http / 2

Micronaut 2.0 supported according to the provider http / 2 and should provide better support for graalvm. This now offers automatic configuration for static resources, jdbc drivers, hibernate, flyway and support for the aws sdk2. The framework is on gradle version 6.5 aligned and should provide a better compatibility with incremental annotation processing and create builds for java and kotlin faster.

Users who have an existing version 1.X for the new main version 2.If you want to update instructions in an upgrade guide in the documentation range of micronaut. More details are in the release notes of oci. A complete list of innovations can be viewed in the micronaut documentation. The project can be found at github, the source code is openly accessible there.

Parallel to micronaut, with helidon, another microservices framework is also in version 2.0 appeared. On heise developer jonas havers illuminated the use of the tool for cloud-native applications and separately also for web applications. Among other things, the main version 4 published one year ago.0 of the webframeworks grail support micronaut.

Leave a Reply

Your email address will not be published. Required fields are marked *