Database / Apache Cassandra Intermediate and Advanced interview questions
What is hinted handoff in Cassandra?
Hinted handoff is Cassandra's way of tolerating a temporarily unavailable replica without failing the write or immediately falling out of sync.
- The coordinator sends the write to all replicas as usual.
- If a replica is down or unreachable, the coordinator (or another live node) stores a hint — a record of the mutation that replica missed.
- Once the failed replica comes back and gossip detects it as alive, the hint is replayed to it, catching it back up without needing a full repair.
Hints are only stored for a limited window, controlled by max_hint_window_in_ms (typically 3 hours by default). If a replica is down longer than that, hints stop accumulating for it, and it must instead be caught up via anti-entropy repair once it returns.
Hinted handoff is a best-effort mechanism, not a guarantee: hints can be lost if the coordinator itself crashes before replaying them, which is exactly why periodic repair is still necessary even with hinted handoff enabled.
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...
