Implementing Granular Rate Limiting in Cloudflare for API Protection
Use Cloudflare's granular rate limiting based on request paths or tokens, not just IP addresses, to protect APIs effectively while avoiding false positives from shared proxies.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Use Cloudflare's granular rate limiting based on request paths or tokens, not just IP addresses, to protect APIs effectively while avoiding false positives from shared proxies.
Edge‑cached Workers KV lets blogs serve rendered content instantly, cutting origin round‑trips and improving global reader experience.
Durable Objects give you a single-threaded, SQLite-backed actor at the edge with WebSocket hibernation. This post walks through a real-time collaboration counter, shows the billing mechanics, and highlights the trade-offs you'll hit in production.
A step-by-step diagnostic guide for Cloudflare 429 errors: identify which rate limit fired using response headers, check dashboard rules and Bot Management, apply targeted fixes, and verify before escalating.
Store user sessions at the edge with Cloudflare Workers KV. Includes a working Worker example, consistency trade-offs, and verification steps.
Learn how to store user sessions in Cloudflare Workers KV – a low‑latency, globally‑distributed key/value store – with a concrete example, trade‑offs, and next steps to evaluate fit for your app.
Coordinating feature flags at the edge means balancing fast KV reads with eventual consistency. Use Workers KV for low-latency lookups and a Durable Object as an atomic write gate when immediate consistency matters.
When HTTPS visitors hit ERR_SSL_VERSION_OR_CIPHER_MISMATCH, the root cause is often a TLS mismatch between Cloudflare and your origin. This guide walks through the recognisable symptoms, a diagnostic table, ordered checks, fixes tied to findings, and when to ask for support.
When building Cloudflare Workers that need persistent state, decide between KV and Durable Objects. This guide compares consistency, latency, storage limits, pricing, and shows how to implement a counter with KV and a WebSocket session with a Durable Object.