Relay logging guide 63

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

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

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

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

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

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

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

Phase 2

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

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

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

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

Search documentation