Skip to content

Latest commit

 

History

History

MongoDB

External Storages MongoDB

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.

Sample Steps:

1 - Start local Mongo DB

The simple way is to docker Docker

mongo run -d -p 27017:27017 mongo:latest

2 - Register Definitions

Launch the project "Builder".
It will saved deux definitions on the database democrite collection Definitions.

3 - Start Node/Client

Start as many "Nodes" as you want and use the client part to get the counter values.