Workers data stack
KV, D1, R2, Durable Objects, Queues, Hyperdrive, Vectorize — the persistence primitives that make Workers production-viable.
This module is being expanded.
Coming in the next revision:
- Workers KV — eventually-consistent key-value store. Global. Read-heavy workloads. Limits and gotchas.
- D1 — SQLite at the edge. Read replicas everywhere; one primary for writes. Migrations via wrangler.
- R2 — S3-compatible object storage. No egress fees — the line that disrupted the storage market.
- Durable Objects — stateful single-instance coordination. Per-object location; can be pinned to a region or globally migratory.
- Workers Queues — async job dispatching between Workers. Producer / consumer pattern.
- Hyperdrive — connection pool to traditional Postgres / MySQL databases, optimized for Workers’ connection model.
- Vectorize — managed vector index for RAG-style workloads, paired with Workers AI.
- Analytics Engine — high-cardinality time-series aggregation for telemetry, dashboards, custom metrics.
The decision tree: which primitive to pick for which data shape, and where the cross-primitive integration patterns live.
Next: Module 10 — Workers AI.