Skip to content

codenotary/hazelcast-immu

Repository files navigation

Hazelcast - immudb sample integration

immudb Hazelcast integration demo

This sample uses the official immudb Java client.

immudb must be already running. Follow instructions to download and run it at https://immudb.io/docs/quickstart.html

Usage

After building the JAR file, cd into target directory and run one or more server nodes:

java -cp hazelcast-immu-1.0-SNAPSHOT.jar io.codenotary.immudb.hazelcast.ServerNode

In another terminal window, from the same folder, run the Hazelcast - immudb client:

java -cp hazelcast-immu-1.0-SNAPSHOT.jar io.codenotary.immudb.hazelcast.ImmudbHazelcastPlugin

On the server terminal window, put any string and press Enter (type 'q' to exit). Everytime a non-empty string is entered, a key insertion is performed in Hazelcast.

On the client terminal window, immudb Hazelcast client should insert the key-value pair in an immudb database. The client is reacting to all insertion events (replica/mirroring scenario).

The output displayed shows what is written, read and verified on immudb.

How to build

Using mvn:

mvn package

About

Sample immudb client for Hazelcast replication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages