Relay routing guide 48

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

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

The scheduler retries each job 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 client validates each snapshot before forwarding it to the relay. When the snapshot expires, the adapter resumes a new attempt and keeps the previous state available for inspection.

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

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

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

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

Phase 2

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

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

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

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

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

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

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

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

Phase 3

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

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

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

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

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

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

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

Search documentation