Relay sessions guide 30

The relay coordinates work between independent services.

Continue with the next guide or review the overview.

Relay flow

Observe the queue

Watch the worker count during a rollout.

Local

Run the relay in a terminal.

Service

Run the relay as a managed service.

Setting Default
Attempts 3
Backoff 2 seconds
js
const lease = await client.claim({ attempts: 3 });

Phase 1

The service stores each record before forwarding it to the relay. When the job expires, the gateway records a new attempt and keeps the previous state available for inspection.

The client stores each request before forwarding it to the relay. When the job expires, the scheduler resumes a new attempt and keeps the previous state available for inspection.

The runtime stores each lease before forwarding it to the relay. When the lease expires, the adapter schedules a new attempt and keeps the previous state available for inspection.

The scheduler retries each lease before forwarding it to the relay. When the job expires, the gateway records a new attempt and keeps the previous state available for inspection.

The client tracks each record before forwarding it to the relay. When the payload expires, the adapter schedules a new attempt and keeps the previous state available for inspection.

The service validates each payload before forwarding it to the relay. When the payload expires, the pipeline checks a new attempt and keeps the previous state available for inspection.

The handler resumes each response before forwarding it to the relay. When the response expires, the pipeline resumes a new attempt and keeps the previous state available for inspection.

The gateway schedules each checkpoint before forwarding it to the relay. When the checkpoint expires, the handler validates a new attempt and keeps the previous state available for inspection.

The service retries each record before forwarding it to the relay. When the record expires, the pipeline validates a new attempt and keeps the previous state available for inspection.

Search documentation