Experimental distributed in-memory database, entirely based on protocol buffers, gRPC and the Raft consensus algorithm.
You can simply open, build and run this project by clicking the button below.
Everything is preinstalled, so simply ignore the Prerequisites section below.
- Bazel v0.29.1: download the binary matching your platform from here: https://github.com/bazelbuild/bazel/releases/tag/0.29.1
bazel build //...
bazel test //...
The provided launch3.sh script starts 3 sfdb nodes on localhost (ports 27910, 27911, 27912).
./sfdb/launch3.sh
Vagrant VM can be used to run bazel builds and tests in locally provisioned VM.
- Install vagrant
- Install VirtualBox
Repo code is mounted in /src
folder inside VM.
Commonly used commands:
vagrant up
vagrant ssh
# cd /src
# bazel build //sfdb:sfdb
vagrant halt
vagrant destroy