---
title: "Discussion on \"分布式存储系统面试问题解析\" | Hashnode"
description: "Discussion on \"分布式存储系统面试问题解析\". 共识算法剖析\nraft共识算法\n1.在你的 C++ 实现中，如果 Leader 发送 AppendEntries 给 Follower，但 Follower 的日志落后太多（比如中间缺了 100 条），Raft 论文建议是一个一个往前找（nextIndex--）。这种做法在高性能存储中显然是不可接受的，你会如何优化这个“回溯”过程？\n在工程实现中，我会从两个维度优化日志冲突后的同步效率：\n1. 快"
url: "https://hashnode.com/posts/6z2i6kv6zeu6aky6kej5p6q/6989c0b449824b0649513215"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [分布式存储系统面试问题解析](https://xianyu-sheng.hashnode.dev/6z2i6kv6zeu6aky6kej5p6q?utm_source=hashnode&utm_medium=feed)

共识算法剖析 raft共识算法 1.在你的 C++ 实现中，如果 Leader 发送 AppendEntries 给 Follower，但 Follower 的日志落后太多（比如中间缺了 100 条），Raft 论文建议是一个一个往前找（nextIndex--）。这种做法在高性能存储中显然是不可接受的，你会如何优化这个“回溯”过程？ 在工程实现中，我会从两个维度优化日志冲突后的同步效率： 1. 快

Feb 9 · 13 min read · xianyu-sheng.hashnode.dev  
Updated Mar 8  
Read the article

-   [#raft](https://hashnode.com/tag/raft)

## Written by

[Xianyu Sheng](https://hashnode.com/@xianyu-sheng)

@xianyu-sheng

  
[View profile](https://hashnode.com/@xianyu-sheng)

## Responses

Comments are turned off for this post.
