Gossip Protocol Explained

NK · 2023年7月16日

AI 摘要 AI 生成,可能有误

本文在分布式系统的背景下介绍了 Gossip 协议(流言协议),分布式系统的典型挑战包括维护系统状态(例如节点存活状态)以及实现节点间的通信。文章指出了针对这些问题的两种潜在解决方案:集中式状态管理服务,或点对点(peer-to-peer)状态管理服务。本文最初发表于 systemdesign.one,并推广了一份用于面试备考的系统设计通讯(newsletter)。

You can subscribe to the system design newsletter to excel in system design interviews and software architecture. The original article was published on systemdesign.one website.

What Is Gossip Protocol?

The typical problems in a distributed system are the following [1], [11]:

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 High Scalability

The Swedbank Outage shows that Change Controls don't work

AI 摘要The article examines the April 2022 Swedbank outage, caused by an unapproved IT change that left nearly a million customers with incorrect balances, and the SEK850M fine issued by the Swedish FSA for failures in the bank's change management controls. The author argues that traditional change management processes such as CABs and manual approvals don't actually reduce risk, citing FCA research and the Accelerate study showing external approvals don't improve system stability and can even slow delivery. Instead, the author advocates for smaller, more frequent releases, agile delivery, automated change controls, and runtime monitoring as part of a DevSecOps approach to genuinely reduce IT risk.

Lessons Learned Running Presto at Meta Scale

AI 摘要Meta has used Presto, a free and open-source SQL query engine, for the past ten years and shares the lessons learned from scaling it to meet the company's demands. The article highlights four key lessons from this experience, noting that running tools, processes, and services at scale requires problem-solving to overcome unexpected challenges, and offers advice for others interested in running queries at scale.

Consistent hashing algorithm

AI 摘要The article explains how consistent hashing works by placing the output of a hash function onto a virtual ring structure called the hash ring. Nodes are assigned positions on the ring using their hashed IP addresses, and a data object's key is hashed with the same function to find its position on the ring. The ring is then traversed clockwise from the key's position until a node is found, and the data object is stored or retrieved from that node.

What is Cloud Computing? According to ChatGPT.

AI 摘要The author interviews ChatGPT about cloud computing topics and comes away both impressed and unimpressed—impressed by its polished, comprehensive answers, but unimpressed by their lack of depth, describing the AI as a 'zeitgeist oracle' rather than a source of genuine insight. ChatGPT provides textbook-style explanations of cloud computing and serverless computing, but repeatedly declines to make specific recommendations, such as which cloud provider to choose or whether HEY and Basecamp should leave the cloud, citing its limitations and the complexity of such decisions. The author concludes that tools like ChatGPT are meant to augment flawed humans rather than replace them, so tech professionals won't be unemployed soon.

Stuff The Internet Says On Scalability For December 2nd, 2022

AI 摘要This HighScalability post from December 2nd, 2022, opens with a historical comparison between an engineer wiring an early IBM computer in 1958 and one wiring an IBM quantum computer in 2021. The author announces a completely updated and expanded version of the book 'Explain the Cloud Like I'm 10!', which doubles the coverage and adds special sections on AWS, Azure, GCP, and Kubernetes, boasting 482 mostly 5-star reviews on Amazon. The post also asks readers to support the author's work through Patreon.