Skip to content

Overview

D1 Plus is Layeron’s logical database layer for scaling a db(...) store across one or more Cloudflare D1 databases.

You do not import D1 Plus directly. You configure it through the Database Product by setting capacity and, when needed, sharding on db(...).

Cloudflare D1 is a strong default for serverless relational data. D1 Plus adds a Layeron-owned resource layer when a logical database needs more placement flexibility.

Use it to:

  • Start with one D1 database and grow into multiple D1 databases.
  • Apply migrations across every physical shard.
  • Route application queries through a Database Product Worker.
  • Keep shard sets, routing manifests, and D1 bindings in deployment state.

Production expansion is a Product capability boundary. It must be coordinated through deployment state and the D1 Plus resource graph: create target shards, apply schema, copy rows idempotently, validate parity, activate the target routing manifest, and retire source cleanup after the grace window.