An industrial-grade C implementation of RAFT consensus algorithm and replicated state machine based on brpc. braft is designed and implemented for scenarios demanding for high workload and low overhead of latency, with the consideration for easy-to-understand concepts so that engineers inside Baidu can build their own distributed systems individually and correctly.
It's widely used inside Baidu to build highly-available systems, such as:
- Storage systems: Key-Value, Block, Object, File ...
- SQL storages: HA MySQL cluster, distributed transactions, NewSQL systems ...
- Meta services: Various master modules, Lock services ...
-
Build brpc which is the main dependency of braft.
-
Compile braft with cmake
$ mkdir bld && cd bld && cmake .. && make
-
Play braft with examples.
- Read overview to know what you can do with braft.
- Read benchmark to have a quick view about performance of braft
- Build Service based on braft
- Access Service based on braft
- Cli tools
- Replication Model
- Consensus protocol: