Cloudflare Hyperdrive
Pooled and cached connections from Workers to an existing Postgres or MySQL database.
- Provider
- cloudflare
- Kind
- Database proxy
- Category
- Data
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| cacheMaxAgeSeconds | integer | — | no | 60 | inherited |
| engine | enum | postgres | mysql | no | postgres | inherited |
| hedging | boolean | — | no | false | inherited |
| loadShedding | boolean | — | no | false | inherited |
| managed | boolean | — | no | false | ▸ true |
| poolSharded | boolean | — | no | false | ▸ false |
| pooling | boolean | — | no | true | ▸ true |
| queryCaching | boolean | — | no | true | inherited |
| requestCoalescing | boolean | — | no | false | inherited |
| routing | enum | none | shard-key | lookup | no | none | ▸ none |
| scatterGather | boolean | — | no | false | ▸ false |
| staleWhileRevalidateSeconds | integer | — | no | 15 | inherited |
Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.
No rule reads this kind yet. That is a gap, not a guarantee.
nodes:
- { id: "hyperdrive", component: "cloudflare-hyperdrive" }# yaml-language-server: $schema=../../schema/component.schema.json # Hyperdrive: pooled, cached connections from Workers to an existing Postgres or MySQL database. # "How Hyperdrive works" states it manages the connection pool for you; "Query caching" states # caching is enabled by default with max_age 60 s and stale_while_revalidate 15 s, reads only. schemaVersion: "1" type: "component" id: "cloudflare-hyperdrive" kind: "database-proxy" provider: "cloudflare" docs: "https://developers.cloudflare.com/hyperdrive/configuration/query-caching/" defaults: managed: true pooling: true routing: "none" poolSharded: false scatterGather: false properties: engine: type: "enum" values: ["postgres", "mysql"] default: "postgres" queryCaching: type: "boolean" default: true cacheMaxAgeSeconds: type: "integer" default: 60 staleWhileRevalidateSeconds: type: "integer" default: 15