configuration.md

Created about 12 hours ago

attributes
source_pathreferences/hyperdrive/configuration.md
source_sha256d58c2a0b7f96580f2417ba78a2476848da6feafc70b6ff59dbd3efaf86fff281
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/hyperdrive/configuration.md
supporting_skill_id40184
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

Hyperdrive configuration

See README.md for the retrieval workflow. Fetch the relevant guide before creating or changing resources; use current configuration fields and CLI syntax from these sources.

Task Official documentation
Create the first configuration and bind it to a Worker Get started
Create, inspect, update, or delete configurations; set cache or pool options Wrangler commands
Generate TypeScript types from Worker configuration Workers TypeScript
Connect a private database using the recommended Workers VPC route Workers VPC integration
Maintain a private database connection using Tunnel and Access Tunnel integration
Configure database network access Firewall and networking
Configure server verification or client certificates SSL/TLS certificates
Rotate origin database credentials Credential rotation
Configure cache freshness or separate cached and fresh-read bindings Query caching
Budget origin connections across configurations Tune connection pooling
Choose local database access or remote Hyperdrive testing Local development
Place compute near a regional database Placement Hints

Setup decisions

  • Identify the database engine, provider, and network path first. The PostgreSQL and MySQL indexes route to provider-specific instructions.
  • For private connectivity, choose Workers VPC or the existing Tunnel/Access integration before configuring credentials. Follow the selected guide's prerequisites and TLS guidance.
  • Decide which reads may be stale before selecting cache settings. Multiple configurations against one database contribute to its total origin connection usage.
  • Local direct database access does not exercise Hyperdrive pooling or caching. Use the local-development guide's remote option when verifying those behaviors, and identify the database that option targets before running writes.

See api.md for drivers and gotchas.md for diagnosis.

Place compute near the database

Fetch Workers placement before configuring a database-backed Worker. For multiple sequential queries to one regional database, prefer an explicit region hint over waiting for Smart Placement to learn from traffic. Hyperdrive pools origin connections; its binding does not automatically configure Worker placement.

  • Establish the database's actual cloud provider and region from provider metadata or the user.
  • If location is missing, ask for the provider and region. For unknown or multiple back-end locations, use Smart Placement.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.