Relay events guide 51

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

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

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

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

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

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

Phase 2

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

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

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

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

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

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

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

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

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

Phase 3

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

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

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

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

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

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

Phase 4

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

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

Search documentation