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.

Building a Distributed Log from Scratch: Data Replication

217 pointsby bhattisatishover 7 years ago

4 comments

majidazimiover 7 years ago
Regarding Kafka replication: What if the following scenario happens?<p>1. Leader replicates to followers<p>2. Followers get the messages and send ACK to leader<p>3. Leader gets the confirmation from followers, increments high watermark (HW) and replies client that messages is commited.<p>4. NOW: Leader fails before it could piggyback to followers that HW has been incremented.<p>5. The question is: Since potential leader is not aware of the fact that HW has been incremented, it becomes the new leader and truncates the log to old HW, which means we have lost an entry in the log that has been confirmed by previous leader.<p>As a result, client has been confirmed that the message has been successfully written, but it has been lost.
评论 #16023364 未加载
评论 #16023447 未加载
评论 #16023162 未加载
yazaddaruvalaover 7 years ago
Are there any distributed logs which operate more as a framework than a service&#x2F;platform?<p>Imagine Kafka but I am able to run my processors within the same JVM. You might even call them servlets for Kafka.
评论 #16024325 未加载
评论 #16025640 未加载
评论 #16024458 未加载
评论 #16025469 未加载
评论 #16024925 未加载
chrisweeklyover 7 years ago
Outstanding material. Bookmarked.
评论 #16023892 未加载
评论 #16022217 未加载
jaequeryover 7 years ago
id like to hear if blockchain can be used here to simplify all of this, anyone?
评论 #16023417 未加载