Database / ScyllaDB Interview questions
Why is the gossip protocol critical to ScyllaDB's cluster membership?
In a large peer-to-peer cluster with no central coordinator for membership, every node needs a way to learn which other nodes exist, whether they're alive, and their basic state (load, schema version, token ownership) without a single point of failure or a central registry becoming a bottleneck. Gossip solves this by having each node periodically exchange state with a few random peers, and that state naturally propagates across the whole cluster within a few rounds, exponentially fast, similar to how a rumor spreads through a social network.
Because gossip is decentralized and doesn't rely on any single node staying up, cluster membership information keeps propagating correctly even while individual nodes fail or restart, which is essential for a system with no master node coordinating everything centrally. ScyllaDB still uses gossip for liveness/failure detection and general cluster state today, even though schema and topology changes themselves have moved to Raft for strong consistency - the two mechanisms serve different needs: gossip for scalable, resilient state dissemination, Raft for operations that must never be ambiguous.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
