Day 24 10 min
A job queue in the database
1 / 11 · ≈ 11 min left
Warm-up
From yesterday. Answer from memory: a wrong guess still helps you remember.
Your handler does SELECT ... WHERE key = $1, and if nothing is found, runs an INSERT. Two retries arrive together. What can happen?