Edge Rate Limiter
A globally distributed rate limiter built on Cloudflare Workers and Durable Objects. Token-bucket and sliding-window algorithms, sub-5ms decisions almost anywhere in the world, per-IP and per-key configuration. I built it because most rate limiters I have seen in production are either too slow (round-trip to a central Redis) or too lenient (eventually-consistent counters). Durable Objects let you do consistent counting at the edge, which is the actually interesting bit.
What this is
A lab, not a product.
A globally distributed rate limiter built on Cloudflare Workers and Durable Objects. Token-bucket and sliding-window algorithms, sub-5ms decisions almost anywhere in the world, per-IP and per-key configuration. I built it because most rate limiters I have seen in production are either too slow (round-trip to a central Redis) or too lenient (eventually-consistent counters). Durable Objects let you do consistent counting at the edge, which is the actually interesting bit.
Features
Learnings
Technologies
Capabilities
What it does
The features that actually got built and run in this prototype.
The stack
What it is built with
The libraries and runtimes I picked for this lab and why they earned their place.
What I learned
Learnings, in order of how much they surprised me
The things I would tell another engineer before they tried the same experiment.
Note: This is an experimental project in the beta stage. It is a learning exercise and technical exploration rather than a production-ready solution. Patterns and code may change.
Edge Computing
Related labs
Other explorations in this area.
Want me to build something like this for you?
If this kind of work fits your roadmap, I take on a small number of paid projects each quarter.