Skip to content
RED SAGSkills
hard20 pts · first answer countsdistributed-systemsconcurrency

Why a lock alone is not enough

Worker A takes a Redis lock with a 10-second TTL, then pauses for 15 seconds due to a long GC pause. The lock expires, Worker B takes it and writes to storage. Then A wakes up and also writes. What prevents A from corrupting data?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions