Skip to content

a-raghavan/ReplicatedDatabase

Repository files navigation

ReplicatedDatabase

Implementing a replicated database using Raft

Dependencies:

pip3 install virtualenv
pip3 install grpcio
pip3 install grpcio-tools 
pip3 install leveldb

Building

Create python virtual env

python3 -m virtualenv venv
source venv/bin/activate

Build protobuffs

python3 -m grpc_tools.protoc -I./protos --python_out=. --pyi_out=. --grpc_python_out=. ./protos/database.proto
python3 -m grpc_tools.protoc -I ./protos --python_out=. --pyi_out=. --grpc_python_out=. ./protos/*

Run server

python3 server.py --nodes "IP address:port"

Run client

python3 client.py

About

Implementing a replicated database using Raft

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published