All Questions
Redis hard

In a Redis Cluster, why do nodes include state information about *other* random nodes within their own `PING/PONG` heartbeat packets?

  1. A To artificially inflate network bandwidth usage to ensure the underlying hardware stays in a high-power state.
  2. B To enable Failure Detection via Gossip; sharing 'views' allows the cluster to reach failure consensus efficiently.
  3. C To provide a backup routing path for cross-shard data requests if the primary master node is temporarily unreachable.
  4. D To synchronize the physical hardware clocks of all nodes to within a 1-microsecond window to prevent drift errors.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions