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.

Paxos in 25 Lines

49 pointsby Cieplakabout 8 years ago

1 comment

static_noiseabout 8 years ago
I&#x27;m fascinated by consensus algorithms and would love to implement one myself to synchronize unreliable systems (e.g. a network of independent sensors with a common database running on ESP8266 modules). I didn&#x27;t study CS, so I didn&#x27;t absorb all the underlying theory with my breastmilk. So big questions remain unanswered so far.<p>How exactly do I know that the algorithm is correct? (Proof, of course, but how?)<p>How do I know that my implementation is correct? (Unit test, of course, but how? How do I simulate&#x2F;test asynchronous systems with failing communication? How do I catch all possible edge cases?)<p>Is there an comparative overview of consensus algorithms detailing pros and cons? (A few days ago there was a post about Paxos&#x2F;Raft having abmysal worst-case performance.)
评论 #13901834 未加载
评论 #13901007 未加载