Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-runtime-apis-bindings-service-workflow-guide.mdDocumentation 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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