hard20 pts · first answer countsdatabasesdistributed-locksconcurrency
Two workers both think they hold the lock
Worker A takes a Redis lock with a 10-second TTL, then pauses for 15 seconds in garbage collection. Worker B takes the lock. A wakes and writes to storage. What prevents A's stale write?
Discussion 0
Join free to post in the discussion.
Related questions
- Duplicate emails despite a checkBackend Developer
- Building SQL from user inputBackend Developer
- What atomicity guaranteesBackend Developer
- WHERE column = NULL finds nothingBackend Developer
- COUNT(*) versus COUNT(column)Backend Developer
- Column type for pricesBackend Developer
- Storing order times for two countriesBackend Developer
- Students and courses table designBackend Developer