Spring Boot Vs Quarkus – The battle is about to begin

February 21, 2022

Spring is currently the reference framework in the construction and implementation of microservices. This runs in the JVM and offers us many integration and development possibilities. On the other hand, we have Quarkus, which unites a set of open source technologies adapted to GraalVM and HotSpot, to develop Java applications, which offer us low memory consumption and a very good startup time.

In this new post of refactoring Spring Boot Vs Quarkus – The battle is about to begin, we are going to see and analyze the boot times and memory consumption between Quarkus and Spring Boot. All doubts will be explained.

Although Java is still one of the predominant languages, its performance problems have always been evident. This has been partly due to the layers of abstraction that exist between the code and the machine, with a JVM acting as the real machine. This is the cost to pay for having a multiplatform language.

Next, we are going to compare two different applications, one in Quarkus and one in Spring Boot. We are going to launch both applications several times, creating and destroying the containers and see that they are running and working correctly and compare the startup time and memory consumptions.

Quarkus

Quarkus is a native Java framework for Kubernetes, whose main objective is to work under Kubernetes and in a serverless environment. Unlike other Java frameworks, Quarkus runs under GraalVM and HotSpot.

Spring Boot

Spring Boot is the current de facto framework for microservice development and works under the JVM. To continue, we are going to need to build and boot a docker image of our Spring Boot application that will return a simple Hello World when a controller is called so that it will be the same as the Quarkus project we have.

Boot times

Boot times are always important, but when we are in cloud environments or Serverless architectures they become more relevant. For example, when we want to scale a service due to heavy demand, startup time will be of paramount importance. In general, the application with native Quarkus starts up in much less time than Spring Boot (Quarqus time is negligible), even if we try doing it with an image generated with JVM, it is also much less. With this we see, how the times using Quarkus in native mode are incredibly good, with this, it is clear that Quarkus has been developed with the objective, to be a native Java framework for Kubernetes and containerized environments.

Memory consumption

In this case between Quarkus JVM and Spring Boot, we have hardly seen any difference in CPU usage, but when we use the native Quarkus image the consumption is considerably lower than with the rest, the consumption in the percentage of CPU drops drastically.

Conclusion

As we have seen, Quarkus has won in all scenarios, but for that reason, we could not say that Quarkus should be the reference framework. Before the decision can be made, more tests would have to be done in environments and with real loads.

 

Categories:  
I believe in making the impossible possible because there’s no fun in giving up. Travel, design, fashion and current trends in the field of industrial construction are topics that I enjoy writing about.

Leave a Reply

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

Related Posts

March 21, 2023
Steven Tyler House: The Marshfield Mansion

Who is Steven Tyler? Steven Tyler is a singer, songwriter, musician, and Television personality. He was born in New York City on March 26, 1948. His father, Victor A. Tallarico, was also a musician. His real name is Steven Victor Tallarico, but professionally he is popular as Steven Tyler. Also known for wearing colorful outfits, […]

Read More
March 21, 2023
Personalized Custom Keychains That Show Your Identity

In today's world, people are always on the lookout for something that represents their unique identity. One such thing that people carry with them wherever they go is a keychain. Custom keychains not only hold our keys but also serve as a representation of our identity. And what better way to showcase your identity than […]

Read More
March 21, 2023
The Perfect Accessory: Fashionable Keychains 

In today's world, accessories have become an essential part of our daily lives, from adding a touch of style to our outfits to providing comfort and support to our bodies. Two accessories that have gained popularity in recent times are keychains and body pillows. In this article, we will discuss the benefits of these accessories […]

Read More

LEGAL

Welcome to Urban Splatter, the blog about eccentric luxury real estate and celebrity houses for the inquisitive fans interested in lifestyle and design. Also find the latest architecture, construction, home improvement and travel posts.

SHOPPING

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram