Cloudflare KV
An edge key-value storage service from Cloudflare that provides globally low-latency reads. It is suitable for storing configuration and idempotency keys.
Timeline (last 90 days)
The entire infrastructure runs almost entirely on Cloudflare, including 8 Workers, D1 databases (65,000 records), KV (5 namespaces), and Pages hosting, deployed via git push, with no CI/CD, Docker, or Kubernetes.
The author recommends using the Cache API rather than KV on hot paths such as sanctions screening, because the free tier of KV allows only 1,000 writes per day and is globally shared.
Workers should derive the idempotency key from the workflow ID and step index, compute a SHA256 hash over run_id, step_index, and payload, check the in-memory key-value cache before executing side effects, and immediately return the cached result if the key already exists with a completed status.
All Facts (3)
The entire infrastructure runs almost entirely on Cloudflare, including 8 Workers, D1 databases (65,000 records), KV (5 namespaces), and Pages hosting, deployed via git push, with no CI/CD, Docker, or Kubernetes.
50%UnverifiedThe author recommends using the Cache API rather than KV on hot paths such as sanctions screening, because the free tier of KV allows only 1,000 writes per day and is globally shared.
50%UnverifiedWorkers should derive the idempotency key from the workflow ID and step index, compute a SHA256 hash over run_id, step_index, and payload, check the in-memory key-value cache before executing side effects, and immediately return the cached result if the key already exists with a completed status.
50%