The interview problem
A thousand-node service needs a scalable membership view during packet loss. Design failure suspicion and explain why it must not independently grant write authority.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Assume authenticated nodes and eventual communication during healthy periods. Exchange membership observations through bounded fanout gossip, including node incarnation and heartbeat counters. Mark missed nodes suspect before declaring them unavailable for ordinary routing; allow newer incarnation evidence to refute stale suspicion. Keep membership dissemination separate from a consensus or fencing mechanism that controls exclusive writes. Bound message sizes and periodically reconcile incomplete views.
2. Trace the design or derivation
Probe peers → disseminate observations → suspect → refute or remove from routing
A useful operational view includes the age and origin of each observation. During an asymmetric partition, one observer may reach a node while another cannot; the routing decision can be local even when exclusive ownership must remain globally fenced. Monitor flapping before triggering expensive data movement.
3. Calculate the example
If each of 1,000 nodes sends three 1 KB gossip messages each second, aggregate outbound payload is about 3 MB/s before protocol overhead. Epidemic spreading may be fast, but this traffic calculation proves no fixed convergence deadline during partitions. A 2-second timeout on a temporarily paused node can produce a false suspicion even when the node later resumes.
4. Failure cases and trade-offs
A partition creates different live sets. Evicting and re-adding nodes immediately can cause placement churn. Longer suspicion windows reduce false positives but delay routing recovery. A resurrected process must not reclaim exclusive authority merely because it resumes gossip.
5. Validation, follow-ups and self-review
Inject loss, long pauses, partitions and node restarts. Measure convergence distribution, false suspicions and churn. Follow-up: how do you retire an identity permanently? Reward incarnation handling and the distinction between liveness estimates and safe ownership.
Sources and related practice
Technical reference: cassandra.apache.org — Replication, quorum and gossip background; the hypothetical protocols are not claims about Cassandra's exact implementation.
Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Design a lease service with fencing tokens; Route around failing service dependencies.
Continue your preparation
Choose a connected learning path or browse more System design questions. Read our editorial method and attribution policy.