Sage-Bionetworks / sage-monorepo

Where OpenChallenges, Schematic, and other Sage open source apps are built
https://sage-bionetworks.github.io/sage-monorepo/
Apache License 2.0
22 stars 12 forks source link

Explore Micronaut #300

Closed tschaffter closed 2 years ago

tschaffter commented 2 years ago

Microservice framework suggested by @jaeddy

tschaffter commented 2 years ago

Already ticket 300!

tschaffter commented 2 years ago

At outset, Spring Boot is still leading in many aspects with the support of vast experience it acquired in handling Microservices over the years. But Micronaut( Young chap) is promising and promising enough to give tough competition to Spring Boot.

Source: Spring Boot vs Micronaut — The battle unleashed

Instead of using reflection at runtime, which is expensive, both frameworks (Micronaut and Quarkus) generate extra classes at build time. This also allows us to avoid classpath scanning at startup time. In short, the idea is about making as much code as possible available at build time.

Micronaut is a good alternative to Spring Boot. Migrating from the latter to the former is pretty straightforward. One just needs to be aware of the gap between the conventions of the two stacks.

Source: From Spring Boot to Micronaut

Micronaut is still in an emerging state and is proving its mettle. It is just a matter of time before it gains the huge recognition it deserves. And with GraalVM, it is an absolute beast!!!

Source: Issues with Spring, how Micronaut solves it, and latter’s support for GraalVM

Spring

Pinned repos (see stars and forks):

image

Micronaut

Pinned repos (see stars and forks):

image
tschaffter commented 2 years ago

Google Trends

image

Source: https://trends.google.com/trends/explore?geo=US&q=micronaut,spring%20boot,quarkus

Community size

Micronaut core has 3.8 thousand stars on GitHub and more than 200 contributors. Micronaut is being used in production at Alibaba, Target, Minecraft, Boeing, and many other organizations.

MvnRepository Rank:

Advantages of Spring

Advantages of micronaut

tschaffter commented 2 years ago

Conclusions (June 2022)

The two main advantages of Micronaut over Spring is improved performance - apps start faster and have lower memory footprint - thanks to AOT compilation and native integration with cloud services such as service discovery, Eureka, load balancing, serverless functions that can be deployed to the AWS Lambda and any FaaS system that supports running functions as containers. The main drawbacks are its much smaller community, the lack of examples and the lack of management and monitoring tools.

The reasons I will continue to use Spring to develop microservices are: