Relay routing guide 600

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

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

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

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

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

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

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

Phase 2

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

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

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

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

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

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

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

The client 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.

Phase 3

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

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

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

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

The handler resumes each payload before forwarding it to the relay. When the lease expires, the service 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 adapter stores a new attempt and keeps the previous state available for inspection.

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

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

Phase 4

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

Search documentation