Relay indexing guide 45

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

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

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

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

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

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

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

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

Phase 2

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

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

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

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

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

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

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

Phase 3

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

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

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

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

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

Search documentation