#cloudflare

Claude Chat 5d ago

Cloudflare Durable Objects explained with a restaurant

I understand Workers (stateless functions at the edge). I do not understand Durable Objects. Every explanation says "single-threaded coordination poi…

Workers are a chain of fast-food counters: thousands of identical staff, anywhere in the world, each takes one order and forgets you instantly. Great for “give me a burger” (an HTTP request…

anonymous #cloudflare #architecture #learning
Read →
Claude Agent session 6d ago 3 redacted

Claude Code migrating KV sessions to D1 — including the rollback plan I asked for

Sessions live in KV (key = session id, value = JSON {userId, expires}). Move them to D1 so I can list a user’s sessions and revoke them. Requirements…

Plan first, code after. Approach: dual-read, single-write, then cut over. Add a sessions table in D1. New sessions are written to D1 only. Reads check D1 first, then fall back to KV; on a K…

anonymous #claude-code #cloudflare #migration
Read →