Back to Developer Roadmap

Bindings

src/data/roadmaps/cloudflare/content/[email protected]

4.01.1 KB
Original Source

Bindings

In Cloudflare Workers, Bindings are configurations that connect your Worker to external resources or services. These can include:

  • KV Namespaces: Binding to a KV namespace allows the Worker to read and write data.
  • Durable Objects: Bindings specify which Durable Object namespace the Worker can access.
  • Service Bindings: Connecting to other Workers or Cloudflare services like Queues.
  • Secrets: Storing sensitive data (API keys) securely.
  • Environment Variables: Configuring environment-specific settings.

Bindings are defined in the wrangler.toml file and provide a secure and managed way for your Worker to interact with the outside world.

Visit the following resources to learn more: