In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, I would like to share with you the relevant knowledge of what Quarkus is. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
Preface
Quarkus is Little Red Riding Hood's open source cloud native java framework designed to optimize the cloud container environment. It has been iterated to version 1.6.0 and has completed the integration expansion of most of the framework libraries. In order to allow you to migrate to Quarkus at low cost, it is compatible with mainstream framework development models such as api, such as spring web.
Quarkus already has the ability of enterprise application development. And the container cloud will definitely be the mainstream in the future, and it can be predicted that the future software will run in container clusters such as K8s. The container environment requires applications to have the characteristics of fast startup speed, small resource consumption, short response time and so on. Quarkus conforms to this trend.
What is quarkus?
Quarkus is a full-stack Kubernetes native Java framework designed for Java virtual machine (JVM) and native compilation to optimize Java specifically for containers and to make it an efficient platform for serverless, cloud, and Kubernetes environments.
Quarkus works with common Java standards, frameworks, and libraries, such as Eclipse MicroProfile, Apache Kafka, RESTEasy (JAX-RS), Hibernate ORM (JPA), Spring, Infinispan, Camel, and so on.
Quarkus's dependency injection solution is based on CDI (context and dependency injection) and includes an extension framework to extend functionality and configure, boot, and integrate it into your application. Adding extensions is as easy as adding dependencies; alternatively, you can use the Quarkus tool. In addition, it provides correct information to GraalVM, a general-purpose virtual machine for running applications written in multiple languages, including Java and JavaScript, for native compilation of applications.
Why use quarkus? Designed for developers
1. The design of Quarkus is based on simplicity and ease of use from the very beginning, and its functions can be used normally without configuration.
2. Developers can choose the Java framework they need for their applications, and these applications can be run in JVM mode or compiled and run in native mode.
3. In order to facilitate developers' work, Quarkus also includes the following functions:
Real-time coding, designed to enable developers to instantly check the impact of code changes and quickly troubleshoot
Unified imperative and responsive programming with embedded managed event bus
Unified configuration
Simple native executable file generation
Container priority
Whether hosting applications on a public cloud or in an internally hosted Kubernetes cluster, features such as fast startup and low memory consumption are critical to reducing overall host costs.
The development of Quarkus follows the principle of container first, which means that it has been optimized to reduce memory usage and speed up startup time in the following ways:
Fully support Graal/SubstrateVM
Metadata processing at build time
Reduce the use of reflection
Native image pre-boot
As a result, the memory consumption of Quarkus-built applications is only 10 times that of traditional Java, and the startup time is faster (300 times faster), which greatly reduces the cost of cloud resources.
Imperative and responsive code
1. In design, Quarkus can seamlessly combine familiar imperative code with non-blocking and responsive styles when developing applications. This is useful for Java developers who are used to using imperative models and do not want to switch styles, as well as for developers who use cloud native / responsive approaches. The Quarkus development model can be adapted to any application you are developing.
2. Quarkus is an effective solution for running Java in new serverless architectures, micro-services, containers, Kubernetes, function as a service (FaaS), and cloud environments, because all these factors are fully taken into account when it is created.
These are all the contents of this article "what is Quarkus?" Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 243
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.