The server utilizes gRPC, implemented using tonic, and employs buf for downloading and compiling external dependencies. This includes tools like gnostic for OpenAPI generation and validate for validation purposes.
For building, compiling, downloading, and generating all proto-related materials, execute the following command:
make build-proto
To run any component in this directory ensure zookeeper is running with the following command:
cd .. && make run-zookeeper
To run the router execute the following command:
make run-router
To run the server execute the following command:
make run-server
Optionally, you can run another server as follower:
make run-follower
To interact with the server, you can use the cli tool:
cargo run --bin client -- add test test
cargo run --bin client -- get test