Relay events guide 3

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

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

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

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

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

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

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

Phase 2

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

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

Search documentation