The lock with a token
Difficulty 3 of 5
Connect both job runners. Archive jobs: 100 due at 1 s, each takes 10 s. Check jobs: 20 due at 4 s, each takes 1 s. Runner A loses lease contact from 2 to 14 s; its sent work can still finish. Meet both deadlines with no repeated or stale-token effects.
Fencing tokens · lease 30 s · late write with token 33: rejected
Goals and limits
- Duplicates
- none
- Split-brain writes
- none
- Lost writes
- none
- Completion time (Archive)
- under 18 s
- Completion time (Checks)
- under 8 s
- Monthly cost
- under 60 USD/mo
Concepts
How players did
Player results load from the server.