Service Binding flow
Create the target Service
Create or deploy the private Rust Worker that owns the internal API before
adding it to callers.
Create the caller binding
Choose a stable uppercase binding name, then bind the caller Service to the
target Service.
Deploy the caller Worker
Deploy the caller Rust Worker after the binding exists so its runtime
environment receives the private target Service id.
Read the runtime binding
Read
TOVUK_BINDING_AUTH_SERVICE from the Rust worker runtime
(TOVUK_BINDING_<NAME> for other binding names). Static frontends should
not call Service Bindings directly.CLI workflow
API
POST /v1/services/{service_id}/service-bindingsDELETE /v1/services/{service_id}/service-bindings/{binding}
TOVUK_BINDING_<NAME>=<target_service_id>.
Meters and caps
Service Binding calls count as Worker subrequests and Worker invocations. Set caps forworker_requests, worker_cpu_ms, and worker_transfer_bytes.
Limits
- One Service can bind up to 5000 service resources.
- Service binding call chains can use up to 32 worker invocations per top-level request.
- Calls must stay private to Rust Workers. Static frontends cannot call Service Bindings directly.