TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Scaling Raft

76 pointsby tadasvalmost 10 years ago

1 comment

cclevealmost 10 years ago
Yup, this is the key problem with these consensus algorithms. They don&#x27;t handle shards very well. Most systems these days either punt and don&#x27;t do updates via the consensus algorithm (Apache Kafka), or they use two-phase commit (FoundationDB, many others).<p>This is important work, but I don&#x27;t think they&#x27;re really going to succeed is making a truly large-scale system. The problem is the heartbeat; you can&#x27;t have every node talking to every other node every few seconds.<p>What we really need is someone smart to come up with a consensus algorithm that doesn&#x27;t need a heartbeat. Until then, it&#x27;s two-phase commit if you want a reliable, large-scale (if not performant) system.<p>Right now, if you want a system that runs fast you use a consensus algorithm for shard metadata, but you do writes directly to the nodes without getting a consensus first. You run the risk of losing acknowledged writes, but it&#x27;s the best you can do if you need speed.
评论 #9726191 未加载
评论 #9727699 未加载
评论 #9726222 未加载
评论 #9729903 未加载
评论 #9726397 未加载