Cassandra medium
A write request arrives at the Coordinator, but one of the target Replica nodes is temporarily unreachable. The Coordinator stores a 'Hint' on its own local disk. What is the fundamental trade-off of this mechanism?
- A It provides a 100% guarantee that the data will never be lost, even if the Coordinator node also crashes.
- B It improves Availability: The write can still succeed despite the node outage. However, the data is essentially 'Missing' from the actual replica until the node returns and the hint is replayed.
- C It automatically triggers a cluster-wide leader election to replace the down node within 5 seconds.
- D It is a form of synchronous replication that forces the client to wait until the down node is rebooted.
Answer: B. It improves Availability: The write can still succeed despite the node outage. However, the data is essentially 'Missing' from the actual replica until the node returns and the hint is replayed.
Hinted Handoff is a 'Sloppy Quorum' implementation. It allows Cassandra to be highly available (AP). The risk is that if the node is down for longer than the `max_hint_window_in_ms` (default 3 hours), the hints are discarded and the node must be fixed using 'Nodetool Repair'.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- In a Cassandra Keyspace, what does a 'Replication Factor of 3' specifically guarantee for your data redundancy?
- Unlike a Leader-Follower architecture (like MySQL or Redis), how does Cassandra maintain high availability within its node cluster?
- Cassandra Query Language (CQL) looks similar to SQL. What is a fundamental SQL feature that CQL does NOT support to ensure distributed performance?
- What is the critical architectural function of the 'Partition Key' in a Cassandra table?
- Apache Cassandra is fundamentally designed as which architectural category of NoSQL database?
- An extreme financial trading application requires 'Batch' sync for the Commit Log. What is the fundamental throughput limitation introduced by this setting?