3 ms·
Says they are using Raft: https://raft.github.io/ https://raft.github.io/
by hmottestad 11y ago
Says they are using Raft: https://raft.github.io/ https://raft.github.io/
- rystsov 11y agoRaft is a replication protocol which is responsible for the consistency of multiple copies of the same data but it isn't applicable when the data is sharded.
- mtanski 11y agoYou can use raft as to synchronizing other data structures. If this a KV store then that's as easy as key level locks / ownership / placement.
- skyde 11y agoRaft is used to Replicate write in a shard but distributed transaction is used to make transaction that span several shard atomic (ACID). I could find the implementation at : https://github.com/pingcap/tikv/blob/master/src/storage/mvcc/txn.rs https://github.com/pingcap/tikv/blob/master/src/storage/mvcc... But a lot of the detail are not clear.