Skip to content

This project demonstrates a way to use custom interceptors as a means of handling with distributed caches such as Infinispan as a cache layer in the application.

Notifications You must be signed in to change notification settings

dvddhln/quarkus-reactive-distributed-cache-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quarkus-reactive-distributed-cache-layer project

This project uses Quarkus, the Supersonic Subatomic Java Framework.

This project demonstrates a way to use custom interceptors as a means of handling with distributed caches as a cache layer in the application.

Distributed Cache Layering with Infinispan and Quarkus

Running the application in dev mode

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

./mvnw compile quarkus:dev

Running

docker run -p 11222:11222 -e USER="Titus Bramble" -e PASS="Shambles"   quay.io/infinispan/server:12.1.4.Final

Get Request

http://localhost:8080/v1/services/1

Checking the infinispan UI

http://localhost:11222/console/cache/my-cache

Credentials

username: Titus Bramble
password: "Shambles"

Quarkus Configuration

quarkus:
  infinispan-client:
    auth-username: "Titus Bramble"
    auth-password: "Shambles"
    auth-realm: default
    auth-server-name: infinispan
    sasl-mechanism: DIGEST-MD5
cache:
  <infinispan>
    <cache-container>
      <replicated-cache name="<name-override>">
        <encoding>
          <key media-type="application/x-java-object"/>
          <value media-type="application/x-java-object"/>
        </encoding>
      </replicated-cache>
    </cache-container>
  </infinispan>

About

This project demonstrates a way to use custom interceptors as a means of handling with distributed caches such as Infinispan as a cache layer in the application.

Topics

Resources

Stars

Watchers

Forks