All Questions
Caching hard

In an Active-Active Geo-Replicated Redis (CRDB), two regions increment the same counter concurrently. How do CRDTs ensure consistency?

  1. A They implement a 'Last Write Wins' (LWW) conflict resolution policy based on highly synchronized NTP timestamps across all regional clusters.
  2. B They utilize a synchronous Paxos consensus protocol for every individual write operation to ensure all replicas agree on the final counter state.
  3. C They use PN-Counters (Positive-Negative) that merge by summing total operations from all replicas rather than overwriting a single value.
  4. D They enforce a global distributed lock on the specific counter key, effectively turning the active-active cluster into a single-writer system.

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

Get the app

Related questions