Relay storage guide 33

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

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

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

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

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

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

Phase 2

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

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

Search documentation