This sample use a database to:
- Register definitions
- Expose definitions
- Connect cluster parts (nodes, clients)
In this sample the node part will increase a counter associate to a "name" every minute.
The client will expose through an api a way to get the counter value.
The simple way is to docker Docker
mongo run -d -p 27017:27017 mongo:latest
Launch the project "Builder".
It will saved deux definitions on the database democrite collection Definitions.
Start as many "Nodes" as you want and use the client part to get the counter values.