When a Rate Limiter Needs a Brain: Durable Objects for Per-Tenant State at the Edge
A counter in a Worker's memory doesn't add up across locations. Here's how Durable Objects serialize per-tenant state, with a worked limiter and its limits.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
A counter in a Worker's memory doesn't add up across locations. Here's how Durable Objects serialize per-tenant state, with a worked limiter and its limits.
Workers KV removes the origin round trip from session lookups, but its consistency model decides your logout behavior, your cache settings, and when you need Durable Objects instead.
k3OS is archived, but its one-file config.yaml model — where hostname, SSH keys, and Kubernetes cluster membership are all declared at boot — is still a design worth stealing for edge and lab clusters.
K3s ships with an embedded SQLite database that removes the need for an external etcd, but the single‑writer lock and lack of replication limit its use to single‑node or low‑write workloads.
k3OS is archived, but its headline decision — an entire node defined by one versioned config.yaml — is still the right way to think about provisioning edge Kubernetes fleets.
Set up Cloudflare Rate Limiting to guard your APIs from abuse while keeping legitimate traffic smooth. Learn how to choose between fixed‑window and sliding‑window algorithms, deploy granular rules, and verify effectiveness with built‑in dashboards and API exports.
Learn how to use Cloudflare Workers KV to share mutable state like feature flags across all edge instances, with a concrete code example, trade‑offs, and a verification checklist.
Cloudflare Workers KV offers low‑latency global reads, but its eventual consistency and write limits mean you need to design for staleness and throttling. This guide walks through a counter example, shows how to bind KV, and explains when KV is a good fit.
Deciding between Cloudflare Workers and Pages? This guide compares routing, pricing, and deployment pipelines to help you choose the right edge compute platform.