back home

blog

2026-10-01

A queue with nowhere to stand

Rate-limiting a shared quota from a stateless Cloudflare Worker, with no queue service, no lock, and no in-memory bucket. Keep one cursor for the next allowed time, turn waiting into a client-side reservation, cap under the real limit, and keep the decision in a pure function.