cloudflare · Cloudflare Workers Docs
Workers Service bindings
Explains how to implement direct Worker-to-Worker communication using service bindings to enable RPC-style method calls or request forwarding without public URLs.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Service bindings
Explains how to implement direct Worker-to-Worker communication using service bindings to enable RPC-style method calls or request forwarding without public URLs.
When To Use
Use when you need to enable one Worker to call methods on another Worker directly or isolate internal services from the public internet using service-oriented architecture.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-runtime-apis-bindings-service-workflow-guide.md | Documentation explaining how to use service bindings to allow one Cloudflare Worker to call another directly. | Questions about documentation explaining how to use service bindings to allow one Cloudflare Worker to call another directly. |
examples/workers-runtime-apis-bindings-service-cloudflare-workers-service-binding.text | A configuration snippet demonstrating how to define service bindings within a Cloudflare Workers wrangler configuration. | Exact payloads, commands, or snippets shown in A configuration snippet demonstrating how to define service bindings within a Cloudflare Workers wrangler configuration. |
examples/workers-runtime-apis-bindings-service-cloudflare-workers-service-binding-2.text | A wrangler.toml configuration snippet demonstrating how to define service bindings for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration snippet demonstrating how to define service bindings for Cloudflare Workers. |
examples/workers-runtime-apis-bindings-service-cloudflare-workers-service-binding-3.text | A wrangler configuration file demonstrating how to define service bindings for a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A wrangler configuration file demonstrating how to define service bindings for a Cloudflare Worker. |
examples/workers-runtime-apis-bindings-service-cloudflare-workers-service-binding-4.text | A wrangler configuration file demonstrating how to define service bindings for a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A wrangler configuration file demonstrating how to define service bindings for a Cloudflare Worker. |
examples/workers-runtime-apis-bindings-service-cloudflare-workers-service-binding-5.text | A JavaScript code example demonstrating how to extend the WorkerEntrypoint class to implement service bindings in a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to extend the WorkerEntrypoint class to implement service bindings in a C... |
examples/workers-runtime-apis-bindings-service-cloudflare-workers-service-binding-6.text | A wrangler configuration file demonstrating how to define service bindings to connect one worker to another. | Exact payloads, commands, or snippets shown in A wrangler configuration file demonstrating how to define service bindings to connect one worker to another. |
examples/workers-runtime-apis-bindings-service-cloudflare-workers-service-binding-7.text | A TOML configuration example demonstrating how to define service bindings for a Cloudflare Worker using Wrangler. | Exact payloads, commands, or snippets shown in A TOML configuration example demonstrating how to define service bindings for a Cloudflare Worker using Wrangler. |
examples/workers-runtime-apis-bindings-service-cloudflare-workers-service-binding-8.text | A JavaScript code example demonstrating how to use service bindings to invoke another worker via the env object. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use service bindings to invoke another worker via the env object. |
examples/workers-runtime-apis-bindings-service-cloudflare-workers-service-binding-9.text | A text representation of the wrangler dev terminal output showing the status of connected and disconnected service bindings. | Exact payloads, commands, or snippets shown in A text representation of the wrangler dev terminal output showing the status of connected and disconnected service bi... |
What This Skill Covers
- Service bindings allow one Worker to call into another, without going through a publicly-accessible URL. A Service binding allows Worker A to call a method o...
- Main sections:
Tags,About Service bindings,Configuration,Interfaces,Example — build your first Service binding using RPC.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings
