Git Product home page Git Product logo

infinispan-near-cache's Introduction

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

infinispan-near-cache's People

Contributors

karesti avatar ryanzhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.