Skip to content

SYSTEM Cited by 3 sources

Cloudflare D1

D1 is Cloudflare's serverless SQLite database offered as a first-class Workers binding (developers.cloudflare.com/d1). Each database is a SQLite file hosted by Cloudflare and accessed from Workers via a binding; no connection management from user code.

Role

Local / remote parity

D1 is one of the binding types exposed through Local Explorer's API at /cdn-cgi/explorer/api. Same queries, same results, same responses — the only difference between local and remote is the --local flag on cf or Wrangler. Seeding, schema-verification, and DROP TABLE are all agent-accessible in local dev.

Seen in

atomic check-mark-return claim via:

WITH candidate_pool AS ( /* candidate pool logic */ )
UPDATE containers
SET status = 'picked'
WHERE sessionId IN (
    SELECT sessionId FROM candidate_pool
    ORDER BY RANDOM() LIMIT ?5
) RETURNING data
Two operational disclosures: shards are per-location (matched to the per-region queue naming convention), and batch-write P95 is 0.1 ms — meaning a 100-row batch costs the same wall-clock as a single-row write, lifting the per-location ceiling from 5,000 (per-row, ~1 ms) to 500,000 containers (100× headroom) when paired with Queues-batched writes. Canonical wiki instance of queue-batching-amortizes-db-write-throughput (state-update path) and transactional-db-over-eventually-consistent-kv-for-claim (claim path). - sources/2026-04-13-cloudflare-building-a-cli-for-all-of-cloudflare — mentioned as one of the remote-or-local bindings the new CLI is designed to unify.

Spec-reviewer state store

Cloudflare's spec reviewer uses D1 for review results and execution state while a Worker discovers specs and AI Gateway routes model calls. This is a distinct D1 role from allocation claims, policy metadata, and ELT run history: stateful workflow coordination for an asynchronous AI review service. The post does not disclose D1 schema, location strategy, or retention. (Source: sources/2026-08-04-cloudflare-how-cloudflare-enforces-engineering-standards-using-ai)

Seen in

Last updated · 766 distilled / 2,225 read