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/
Step-by-step exercises:
examples/durable_agent/restate/README.md.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
Fromexamples/, after Configuration:
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)