Quarkus in Action • Martin Stefanko, Jan Martiska & Holly Cummins

Authors Martin Štefanko and Jan Martiška discuss their book "Quarkus in Action," detailing the framework's powerful developer experience, the trade-offs between JVM and native compilation, and its cloud-native capabilities. They explore the book's structure, which guides readers through building a complex microservices application to showcase over 29 different extensions, from REST and gRPC to reactive messaging and cloud deployment.

4 min read
Quarkus in Action • Martin Stefanko, Jan Martiska & Holly Cummins
source: https://www.youtube.com/watch?v=FQpzBNQtLkE

The Core Philosophy of Quarkus

Quarkus is a Java framework designed to address the needs of modern cloud-native application development. Its primary appeal lies in two key areas: developer experience and performance optimized for containerized environments.

The developer experience is centered around the Dev Mode, which provides an extremely fast feedback loop. It includes features like continuous testing, where tests run automatically in the background as you code, immediately flagging any issues. This allows developers to maintain a high velocity without context switching. As Martin Štefanko puts it, “The dev mode… is basically the single most productive tool that I ever encountered in my career.”

The framework is built on a foundation of familiar Java enterprise standards, so developers don’t need to learn an entirely new set of APIs. Instead, Quarkus acts as a cohesive layer that “glues together all the frameworks that people know and like.”

Performance Through Build-Time Initialization

A significant innovation in Quarkus is its principle of build-time initialization. A large portion of the framework’s startup logic is executed during the build process, not at runtime. This “closed-world assumption” allows Quarkus to analyze the application, configure frameworks, and wire dependencies ahead of time. The result is a highly optimized application with:

  • Blazing-fast startup times.
  • Low memory consumption.

This makes Quarkus exceptionally well-suited for environments like serverless and microservices, where rapid scaling and efficient resource utilization are critical.

“Quarkus in Action”: A Guided Tour

The book “Quarkus in Action” is structured to guide developers from initial concepts to advanced, real-world deployment scenarios.

  • Part 1: Getting Started. This section introduces the core principles of Quarkus and dives deep into the developer productivity features in Chapter 3.
  • Part 2: Building a Microservices System. Readers build a “purposely overcomplicated” car rental management system composed of five microservices. This project is a vehicle for exploring a wide range of technologies and patterns, including:
    • Communication Protocols: REST APIs (with JAX-RS), REST clients, GraphQL, and gRPC.
    • Data Persistence: Using Hibernate ORM for relational databases and integrating with NoSQL databases.
    • Reactive Programming: Leveraging the reactive core of Quarkus and implementing reactive messaging with providers like Kafka and RabbitMQ.
    • Security and Frontend: Securing applications and building simple frontends with HTMX.
  • Part 3: Cloud Deployment and Extensibility. The final part focuses on containerizing the application and deploying it to Kubernetes and OpenShift. It also includes a chapter on writing custom Quarkus extensions, allowing developers to integrate their own frameworks.

The book covers over 29 distinct Quarkus extensions, providing a practical and comprehensive overview of the ecosystem.

Strategic Choices: JVM vs. Native Compilation

A common point of confusion is when to use the traditional JVM mode versus compiling to a native executable. The authors provide clear guidance:

  • JVM Mode: This is the recommended choice for long-running applications and typical microservices. The Just-In-Time (JIT) compiler of the JVM continuously optimizes code at runtime, leading to superior peak throughput over time.
  • Native Compilation: This mode shines in scenarios where startup time is paramount. The ahead-of-time (AOT) compilation results in an incredibly fast-starting, low-memory binary. It is the ideal choice for:
    • Serverless functions, where cold starts directly impact performance and cost.
    • Command-line interface (CLI) tools, which need to execute and exit instantly.

The trade-off is that a native executable’s performance is static, determined at compile time, whereas the JVM’s performance can improve as it runs and gathers profiling information.

The Future: AI and Application-Driven Infrastructure

Quarkus is evolving to simplify modern development challenges further. It embraces the concept of application-driven infrastructure by automatically generating Kubernetes or OpenShift manifests based on the application’s code and configuration.

Furthermore, the framework is integrating AI capabilities. Through projects like LangChain4j, developers can easily call Large Language Models (LLMs) from their Java code. An upcoming feature is a built-in AI assistant that understands the internals of Quarkus, providing developers with context-aware assistance directly in their development environment.

Share post

Stay In The Loop! Subscribe to Our Newsletter.

Get updates straight to your inbox. No spam, just useful content.

Recommended for You

Architecting Self-Healing Enterprise Operations: AI + DevSecOps | Akshay Mittal  | SW Engineer | 4K

Architecting Self-Healing Enterprise Operations: AI + DevSecOps | Akshay Mittal | SW Engineer | 4K

Akshay Mittal discusses the evolution of enterprise AI, focusing on the crucial shift from reactive to predictive security through AI-augmented DevSecOps. He explores how to productionize agentic AI workflows using AIOps and Kubernetes, and emphasizes the non-negotiable need for explainable AI (XAI) in critical systems.

Architecting Self-Healing Enterprise Operations: AI + DevSecOps | Akshay Mittal | SW Engineer | 4K|E

Architecting Self-Healing Enterprise Operations: AI + DevSecOps | Akshay Mittal | SW Engineer | 4K|E

Explore the shift from reactive to predictive DevSecOps with Akshay Mittal. This discussion covers how AI-Augmented DevSecOps and Agentic Workflows are creating self-healing systems, the critical role of Explainable AI (XAI), and a four-layer architecture for building scalable, enterprise-grade AI solutions.