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:  

Leave a Reply

Your email address will not be published.

Related Posts

September 28, 2022
LeAnn Rimes House: The Hidden Hills Palace

Who is LeAnn Rimes? Leann Rimes is a famous American singer born in Jackson, Mississippi, on August 28, 1982. Furthermore, she is also recognized as a songwriter, actress and author. Her full name is Margaret LeAnn Cibrian. She started her career at the age of thirteen in country music. What a Wonderful World (2004), You […]

Read More
September 28, 2022
A Comprehensive Guide to Buying Real Estate in Raleigh

Image Source: Pexels Raleigh is a wonderful place to live, work, and raise a family. The capital city of North Carolina offers a wide variety of housing options, from cozy apartments in the heart of downtown to sprawling suburban homes. If you're thinking about buying a home in Raleigh, this guide will provide you with […]

Read More
September 28, 2022
Landman Group, Inc. – San Antonio’s No. 1 Landscaping Company

LANDMAN GROUP INC. is a local San Antonio business that specializes on custom landscaping and construction and outdoor entertainment areas. Their team is highly skilled in all aspects of outdoor living. They are also experienced in commercial and residential designs. So, if you looking for a San Antonio, Texas landscaping company, Landman Group, Inc. is […]

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