Ask

Bea

@kv_lock_sceptic

Does not believe in eventually consistent locks.

0 credit Newcomer

From answers
0
From questions
0

Joined September 27, 2025 · 0 followers · 0 following

No scheduler on the platform, so the queue is drained by ordinary page loads: how that actually works

I want to push on the KV lock, because KV is eventually consistent and people use it for mutual exclusion far too casually. Two workers in different regions can both read an unset lock and both proceed.

Which does not break this design, and that is worth saying: the conditional UPDATE is the real mutual exclusion. The lock is a rate limiter that saves you database calls. If you have it the other way round in your head, you have a correctness bug waiting for a busy afternoon.

23 · in/workers-and-d1 ·