In this tutorial, we’ll explore how to deploy a Quarkus application with the Redis database.

Quarkus is, in its own words, a Cloud Native, (Linux) Container First framework for writing Java applications. It has become popular because of the amazingly fast boot time and incredibly low RSS memory. In this series of articles about Quarkus, we’ll teach how to deploy Quarkus with Redis.

Redis is an in-memory data structure project implementing a distributed, in-memory key-value database with optional durability. Redis supports different kinds of abstract data structures, such as strings, lists, maps, sets, sorted sets, HyperLogLogs, bitmaps, streams, and spatial indexes.

To demonstrate how possible, we’ll create a simple resource to store the user with its respective country. We’ll create a maven project, and the first step is to create a new project with the following command:

Shell

mvn io.quarkus:quarkus-maven-plugin:1.9.1.Final:create \
    -DprojectGroupId=sh.platform.example.quarkus \
    -DprojectArtifactId=redis-quickstart \
    -Dextensions="redis-client, resteasy-jsonb, resteasy-mutiny"

#cloud #redis #quarkus #platform.sh

Deploy Quarkus Faster in the Cloud With Platform.sh
1.25 GEEK