MCPcopy Create free account
hub / github.com/baidu/braft

github.com/baidu/braft @v1.1.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.2 ↗ · + Follow
1,670 symbols 4,328 edges 102 files 124 documented · 7% updated 20mo agov1.1.2 · 2021-04-27★ 4,219155 open issues

Browse by type

Functions 1,359 Types & classes 311
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Build Status


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 ...

Getting Started

  • Build brpc which is the main dependency of braft.

  • Compile braft with cmake

shell $ mkdir bld && cd bld && cmake .. && make

Docs

Core symbols most depended-on inside this repo

Shape

Method 1,181
Class 302
Function 178
Enum 9

Languages

C++100%

Modules by API surface

src/braft/node.cpp139 symbols
src/braft/closure_helper.h89 symbols
src/braft/log_manager.cpp62 symbols
src/braft/replicator.cpp61 symbols
src/braft/snapshot.cpp52 symbols
src/braft/raft.cpp49 symbols
src/braft/raft.h47 symbols
test/test_snapshot_executor.cpp46 symbols
test/test_fsm_caller.cpp46 symbols
src/braft/node.h41 symbols
example/block/server.cpp40 symbols
src/braft/log.cpp38 symbols

For agents

$ claude mcp add braft \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page