All Questions
Cassandra medium

Cassandra supports 'Lightweight Transactions' (LWT) like `IF NOT EXISTS`. Under the hood, this uses the Paxos protocol. What is the fundamental impact on write latency?

  1. A It is faster because Paxos ignores replication and writes to only one node.
  2. B It is roughly 4x slower because Paxos requires multiple round-trips (Prepare, Promise, Accept, Learn) to achieve consensus before the actual write.
  3. C It has no impact on performance because Paxos is implemented in the hardware network switches.
  4. D LWT is only allowed for data that is less than 1KB in size.

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

Get the app

Related questions