Build a URL redirect service with Cloudflare Workers
Learn how to create a lightweight redirect endpoint using Cloudflare Workers, Wrangler, and a simple JavaScript snippet.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to create a lightweight redirect endpoint using Cloudflare Workers, Wrangler, and a simple JavaScript snippet.
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.
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.
When a Cloudflare Worker needs mutable state, pick the right storage: KV for global, eventually consistent caching; Durable Objects for strong consistency, low‑latency per‑instance state. This guide compares options, explains trade‑offs, and shows a concrete example with validation steps.
When Durable Objects lose state, lag, or lose updates, the culprit is often a mis‑configured key, cold start, or race condition. This guide walks through common symptoms, ordered checks, quick fixes, and escalation steps.
Learn how to run edge‑based A/B tests with Cloudflare Workers, see a concrete Worker example, and understand the CPU‑time and caching limits.
Learn how to create a stateful counter that survives restarts, scales automatically, and handles concurrent increments using Cloudflare Workers Durable Objects. The guide covers setup, code, deployment, and verification.
Learn how to use Cloudflare Workers to inject security headers such as HSTS globally at the edge, with a ready‑to‑run example, deployment steps, and notes on limits and verification.
Learn how to configure Cloudflare Workers KV, bind it to a Worker, and perform low‑latency reads and writes while respecting consistency and throughput limits.