Bindings
Last updated
What is 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.
Free resources to learn Bindings
- Official docsBindings (env) · Cloudflare Workers
- Official docsWorkers Bindings · Cloudflare Workers AI
- Official docsConfiguration - Wrangler · Cloudflare Workers
More in stage 1: Workers KV
- Workers KV
- Key-value Operations
- Metadata Handling
- Bulk Operations
- Caching Patterns
- JavaScript Fundamentals
- Node.js and NPM
- Basic Command-line Knowledge
- TypeScript Fundamentals
- HTTP and Web Protocols
- Understand Serverless Architecture
- Git Basics
- Hono
- Itty Router
- Workers Runtime Environment
- Edge Computing Fundamentals
- Request/Response Handling
- Fetch API and Runtime APIs
- Workers Lifecycle
- Service Bindings
- Caching Strategies
- Middleware Patterns
- Logging and Monitoring
- Any Frontend Framework
- Wrangler
- Miniflare
- DevTools Integration
- CI/CD Pipelines
Bindings: common questions
Can I learn Bindings in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Bindings in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Bindings tutorial for beginners?
It is lesson 23 of 97 in the free Cloudflare roadmap, in stage 1, Workers KV. If you are new to Cloudflare, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.