A visual guide to Cloudflare Primitives
2 days ago
- #Cloudflare
- #Serverless
- #Edge Computing
- Workers: Stateless compute at the nearest location using JavaScript deployed globally.
- Durable Objects: Single, globally-routed, stateful instances bound to an ID.
- Durable Objects Lifecycle: Instances are created on demand, with in-memory state cleared when idle but persistent storage remains.
- R2: Cloudflare's object storage with location-pinned storage and globally cached reads, no egress fees.
- D1: Serverless SQL database for the edge with primary location for writes and optional read replicas.
- Workers KV: Globally distributed key-value store with fast reads from nearest edge location but eventual consistency.
- Queues: Message queue for async work with Cloudflare handling delivery, batching, retries, and scaling.