Skip to content

infinispan-demos/infinispan-near-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run infinispan server

docker run -p 11222:11222 -e USER="admin" -e PASS="password" infinispan/server:12.1.7.Final

(Please note that try to run infinispan server version >13.x.x might not be compibled with this example.)

Build first

Please build and install first before run, because there are some common module dependency needs to be installed in your local maven repository.

mvn clean install

Load Data

This project is a simple spring-boot app that connects to a Remote Cache and loads a list of data. The data is stored in a cache called default of type Integer/Contributor. A 'Contributor' has an int 'code' and a 'String' name.

mvn spring-boot:run -pl writer

Reader

The reader project contains 5 submodules.

  • Common: the application code. This project is a simple spring-boot app that randomly call's get to display a Contributor during a 10.000 calls loop. There is no main method, this is the code the other readers will be using.

  • Reader No Near Cache Adds the main method needed, but there is no near caching

mvn spring-boot:run -pl reader/reader-no-near-cache
  • Reader Near Code Showcases the configuration you need to activate near caching by code
mvn spring-boot:run -pl reader/reader-near-code
  • Reader Near Hotrod Showcases the configuration you need to activate near caching using the hotrod-client.properties
mvn spring-boot:run -pl reader/reader-near-hotrod
  • Reader Near Spring Showcases the configuration you need to activate near caching using the application.properties
mvn spring-boot:run -pl reader/reader-near-spring

Infinispan Spring-Boot starter

This project is built using the Infinispan Spring-Boot Starter

About

Simple example showcasing infinispan spring-boot and near-cache

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages