Skip to content

demming/cache-stampede-quarkus

Repository files navigation

cache-stampede-quarkus Project

This project uses Quarkus, the Supersonic Subatomic Java Framework.

If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .

Running the application in dev mode

You can run your application in dev mode that enables live coding using:

./gradlew quarkusDev

NOTE: Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/.

Packaging and running the application

The application can be packaged using:

./gradlew build

It produces the quarkus-run.jar file in the build/quarkus-app/ directory. Be aware that it’s not an über-jar as the dependencies are copied into the build/quarkus-app/lib/ directory.

The application is now runnable using java -jar build/quarkus-app/quarkus-run.jar.

If you want to build an über-jar, execute the following command:

./gradlew build -Dquarkus.package.type=uber-jar

The application, packaged as an über-jar, is now runnable using java -jar build/*-runner.jar.

Creating a native executable

You can create a native executable using:

./gradlew build -Dquarkus.package.type=native

Or, if you don't have GraalVM installed, you can run the native executable build in a container using:

./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true

You can then execute your native executable with: ./build/cache-stampede-quarkus-1.0-SNAPSHOT-runner

If you want to learn more about building native executables, please consult https://quarkus.io/guides/gradle-tooling.

Related Guides

  • OpenID Connect Client (guide): Get and refresh access tokens from OpenID Connect providers
  • OpenID Connect Client Filter Reactive (guide): Use Reactive RestClient filter to get and refresh access tokens with OpenId Connect Client and send them as HTTP Authorization Bearer tokens
  • REST resources for MongoDB with Panache (guide): Generate JAX-RS resources for your MongoDB entities and repositories
  • Reactive MS SQL client (guide): Connect to the Microsoft SQL Server database using the reactive pattern
  • JDBC Driver - PostgreSQL (guide): Connect to the PostgreSQL database via JDBC
  • JDBC Driver - H2 (guide): Connect to the H2 database via JDBC
  • OpenTelemetry (guide): Use OpenTelemetry to trace services
  • Hibernate ORM with Panache (guide): Simplify your persistence code for Hibernate ORM via the active record or the repository pattern
  • Reactive PostgreSQL client (guide): Connect to the PostgreSQL database using the reactive pattern
  • Reactive Routes (guide): REST framework offering the route model to define non blocking endpoints
  • Hibernate ORM (guide): Define your persistent model with Hibernate ORM and JPA
  • REST Client Reactive (guide): Call REST services reactively
  • Hibernate ORM with Panache and Kotlin (guide): Define your persistent model in Hibernate ORM with Panache
  • JDBC Driver - Microsoft SQL Server (guide): Connect to the Microsoft SQL Server database via JDBC
  • RESTEasy Reactive (guide): A JAX-RS implementation utilizing build time processing and Vert.x. This extension is not compatible with the quarkus-resteasy extension, or any of the extensions that depend on it.
  • YAML Configuration (guide): Use YAML to configure your Quarkus application
  • OpenID Connect Token Propagation Reactive (guide): Use Reactive REST Client to propagate the incoming Bearer access token or token acquired from Authorization Code Flow as HTTP Authorization Bearer token
  • Logging JSON (guide): Add JSON formatter for console logging
  • REST resources for Hibernate Reactive with Panache (guide): Generate JAX-RS resources for your Hibernate Panache entities and repositories
  • Micrometer metrics (guide): Instrument the runtime and your application with dimensional metrics using Micrometer.
  • REST resources for Hibernate ORM with Panache (guide): Generate JAX-RS resources for your Hibernate Panache entities and repositories
  • Eclipse Vert.x (guide): Write reactive applications with the Vert.x API
  • SmallRye Reactive Messaging - RabbitMQ Connector (guide): Connect to RabbitMQ with Reactive Messaging
  • Hibernate Validator (guide): Validate object properties (field, getter) and method parameters for your beans (REST, CDI, JPA)
  • Redis Client (guide): Connect to Redis in either imperative or reactive style
  • Cache (guide): Enable application data caching in CDI beans

Provided Code

YAML Config

Configure your application with YAML

Related guide section...

The Quarkus application configuration is located in src/main/resources/application.yml.

Hibernate ORM

Create your first JPA entity

Related guide section...

RESTEasy Reactive

Easily start your Reactive RESTful Web Services

Related guide section...

About

A Quarkus app that is prone to cache stampede

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages