Skip to main content
The durable_agent/restate example is an interactive Restate lab. One process embeds the Restate SDK endpoint. Kill the agent mid-stream, keep Restate running, restart, and reconnect with GetAgentStream + WithOffset. Use it after Restate runtime when you need to feel Restate durability. For the Temporal split worker/agent lab, see Durable Agent (Temporal). Source: examples/durable_agent/restate/

Architecture

Streaming and reconnect use the same public APIs as Temporal (GetAgentStream + WithOffset, GetAgentRun). State file: /tmp/durable_agent_restate_runstate.json.

Before you start

From examples/, after Configuration:
Admin UI: http://localhost:9070. Full local notes: restate-setup.md.

Durability scenarios

Full steps: README. Protocol details: Durable Execution.

Learn more

Durable Execution

Shared reconnect protocol (Temporal and Restate)

Restate Runtime

Ingress, embedded endpoint, streaming

Durable Agent (Temporal)

Split worker/agent crash lab

Reconnect Example

Focused GetAgentStream demo (Temporal binary)