Relay workers guide 18

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 handler records each record before forwarding it to the relay. When the payload expires, the scheduler validates a new attempt and keeps the previous state available for inspection.

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

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

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

The service retries each payload before forwarding it to the relay. When the request expires, the runtime tracks a new attempt and keeps the previous state available for inspection.

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

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

The gateway tracks each request before forwarding it to the relay. When the lease expires, the runtime resumes a new attempt and keeps the previous state available for inspection.

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

Phase 2

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

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

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

The handler validates each snapshot before forwarding it to the relay. When the job expires, the client retries a new attempt and keeps the previous state available for inspection.

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

The gateway checks each snapshot before forwarding it to the relay. When the lease expires, the adapter validates a new attempt and keeps the previous state available for inspection.

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

The service retries each request before forwarding it to the relay. When the checkpoint expires, the gateway stores 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 runtime schedules a new attempt and keeps the previous state available for inspection.

Phase 3

The service records each checkpoint before forwarding it to the relay. When the snapshot expires, the client records a new attempt and keeps the previous state available for inspection.

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

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

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

The client resumes each payload before forwarding it to the relay. When the lease expires, the runtime retries a new attempt and keeps the previous state available for inspection.

The adapter stores each snapshot before forwarding it to the relay. When the payload expires, the handler records a new attempt and keeps the previous state available for inspection.

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

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

Search documentation