Bindings allow your Workers to interact with resources on the Cloudflare Developer Platform.
There are multiple types of bindings available today.
Bindings can be configured by one of two ways:
- Updating your project’s .
- Logging in to the > Account Home > Workers & Pages > your Worker > Settings> Variables.
Service bindings allow for communication with another Worker.
KV namespace bindings
KV namespace bindings allow for communication between a Worker and a KV namespace.
Durable Object bindings
Durable Object bindings for communication between a Worker and a Durable Object.
R2 bucket bindings
R2 bucket bindings for communication between a Worker and an R2 bucket.
D1 database bindings
Vectorize database bindings
Dispatch namespace bindings (Workers for Platforms)
Dispatch namespace bindings allow for communication between a dynamic dispatch Worker and a dispatch namespace. Dispatch namespace bindings are used in . Workers for Platforms helps you deploy serverless functions programmatically on behalf of your customers.
mTLS certificate bindings
mTLS certificate bindings enable Worker subrequests to present a client certificate when communicating with a service that requires client authentication.
Email bindings allow you to send emails from your Worker. This is useful for when you want to know about certain types of events being triggered, for example.