Local vs remote agents
There are two ways to coordinate specialist agents:| Local agents | Remote agents | |
|---|---|---|
| Where they run | Same process as the router | Separate services, potentially on different infrastructure |
| Best for | Simple specialization with shared context | Independent scaling, isolation, different languages |
| How routing works | Handoffs, sub-agents, or tool calls within one handler | Durable RPC calls between Restate services |
| Example | LLM picks a specialist prompt, calls LLM again in the same handler | LLM picks a specialist service, router calls it over HTTP |