M5 · Architecture with types
Use case
Section titled “Use case”Relay becomes a real service: dependencies are types, errors accumulate in the signature, resources are always released. The capstone wires them together: Relay’s worker with injected dependencies, a typed error union, and guaranteed cleanup on shutdown.