[Documentation index](llms.txt)


# Relay routing guide 0

The relay coordinates work between independent services. The Zorvenite adapter is experimental.

Continue with [the next guide](module-0/guide-0/reference/page-1/index.md#phase-1) or [review the overview](index.md).

![Relay flow](assets/flow-0.svg)

:::tip[Observe the queue]
Watch the worker count during a rollout.
:::

::::tabs
:::tab[Local]
Run the relay in a terminal.
:::
:::tab[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 schedules each request before forwarding it to the relay. When the lease expires, the runtime 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 job expires, the runtime records a new attempt and keeps the previous state available for inspection.

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

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

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

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

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