https://github.com/codenotary/hazelcast-immu
Sample immudb client for Hazelcast replication
https://github.com/codenotary/hazelcast-immu
Last synced: 4 months ago
JSON representation
Sample immudb client for Hazelcast replication
- Host: GitHub
- URL: https://github.com/codenotary/hazelcast-immu
- Owner: codenotary
- Created: 2020-11-03T12:23:39.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-03T14:16:11.000Z (about 5 years ago)
- Last Synced: 2025-02-13T12:54:26.144Z (10 months ago)
- Language: Java
- Size: 3.06 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hazelcast - immudb sample integration

This sample uses the [official immudb Java client].
[Official immudb Java client]: https://github.com/codenotary/immudb4j
`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:
[Hazelcast]: https://hazelcast.org
[immudb]: https://immudb.io
```
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
```