Skip to content
sproutboat
Esc
navigateopen⌘Jpreview
On this page

Service bindings

Call another deployment on the same node over loopback, without going over the public internet.

Configuration

"services": [{ "binding": "PEER", "service": "quote-service" }]

Usage

const res = env.PEER.fetch(new Request("https://peer/random"));

The call reaches the node’s edge on loopback with the target’s hostname, so it reuses routing, the process pool, and the logs. It is not egress, so the outbound allowlist does not apply.

Constraints

Was this page helpful?