{{announcement.body}}
{{announcement.title}}
Refcard #319

Quarkus

An expert developer walks us through using Quarkus, an open source Kubernetes-native Java stack, which allows us to make smaller, faster Java programs, and that integrates well with Eclipse MicroProfile.

3,158

Brought to you by

Red Hat
Free .PDF for easy Reference

Written by

Alex Soto Software Engineer, Red Hat
Refcard #319

Quarkus

An expert developer walks us through using Quarkus, an open source Kubernetes-native Java stack, which allows us to make smaller, faster Java programs, and that integrates well with Eclipse MicroProfile.

3,158
Free .PDF for easy Reference

Written by

Alex Soto Software Engineer, Red Hat

Brought to you by

Red Hat
Table of Contents

Introduction

Getting Started

Live Reload

Section 1

Introduction


Quarkus is a Kubernetes-native Java stack that's tailored for GraalVM and OpenJDK HotSpot, which helps Java programs run 10X faster, while being 100X smaller. It also improves the developer experience by adding features like live reloading/debugging and persistence with Panache.


Its integration with the Eclipse MicroProfile specification makes it the perfect choice for developing microservices and deploying them with Kubernetes.


Section 2

Getting Started


To create a Quarkus service, you just need to run the next Maven goal into an empty directory:

 mvn io.quarkus:quarkus-maven-plugin:0.22.0:create \ 
 -DprojectGroupId=org.acme \ 
 -DprojectArtifactId=hello-world \ 
 -DclassName="org.acme.quickstart.GreetingResource" \ 
 -Dpath="/hello"



Section 3

Live Reload


Quarkus applications come with a live reload feature that allows the developer to make changes to their source code which will be directly reflected in the deployed code, without having to recompile or repack- age the source code.


./mvnw compile quarkus:dev




This is a preview of the Quarkus Refcard. To read the entire Refcard, please download the PDF from the link above.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}