Consensus & Leader Election

Distributed lock

Workers must not process the same invoice PDF generation concurrently. A developer uses Redis `SETNX` with a 30s TTL and no fencing. What failure modes remain, and how would you harden the lock?

Advanced drill question.

Write it as you would say it in the interview: assumptions, the design, tradeoffs, and what you would do next. The draft saves in this browser.

Review the lesson