Relay queues guide 12

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 retries each request before forwarding it to the relay. When the request expires, the adapter retries a new attempt and keeps the previous state available for inspection.

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

The client tracks each response before forwarding it to the relay. When the snapshot expires, the runtime checks a new attempt and keeps the previous state available for inspection.

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

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

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

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

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

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

Phase 2

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

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

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

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

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

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

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

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

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

Phase 3

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

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

Search documentation