All Questions
Zookeeper medium

You need to implement a Distributed Queue where multiple producers push tasks. How does the 'Sequential' Znode flag provide the necessary ordering primitive?

  1. A It forces the leader node to buffer incoming requests until a majority of followers reach a consistent timestamp.
  2. B It automatically appends a monotonically increasing counter to the Znode name (e.g., `task-0000000001`), ensuring a total global order within the parent path.
  3. C It sorts the underlying transaction log by the client's session ID to prevent out-of-order execution.
  4. D It prevents duplicate writes by hashing the data payload and mapping it to a unique integer ID.

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

Get the app

Related questions