Recipes¶
Copy-paste examples for common Istos patterns. Each recipe is self-contained.
| Recipe | Pattern |
|---|---|
| RPC with lifespan | Query a handler after the session opens |
| Pub/Sub telemetry | Publish and subscribe to live events |
| Durable orders | Late-join replay without a broker |
| Agent channel | FastAPI WebSocket → open_channel → remote agent |
| Secure RPC | TLS config + token authorization |
| Redis storage | Shared durability ledger |
| Health checks | Liveness, readiness, custom checks |
| Custom middleware | Timing / logging around handlers |
| Production service | Logging, metrics, tracing, Redis |
| Scaffold a service | istos new + TestClient |
Start from Getting Started if you are new to Istos.