Skip to main content

Module serve

Module serve 

Source
Expand description

Broker serve-mode wiring for registered and launch-backed backends.

Phase 4 grows the long-lived daemon incrementally. This module connects the existing service-definition loader, broker instance routing, backend registry, backend launch coordination, and framed local-socket accept loop. Tests can still request bounded runs while the CLI defaults to accepting until process exit.

Structs§

BrokerLaunchServeConfig
Configuration for serve mode that launches backends on Hello miss.
BrokerServeConfig
Configuration for a bounded broker serve-mode run.

Enums§

BrokerServeError
Errors raised while wiring or serving the bounded broker.

Functions§

build_hello_handler
Build a Hello handler from one service definition and backend endpoint.
serve_launching_backends
Serve a bounded number of broker Hello connections, launching backends on verified registry misses.
serve_launching_backends_with_launcher
Testable launch-backed serve mode with an injected launcher.
serve_registered_backend
Serve a bounded number of broker Hello connections.