blackbull.mqtt.broker¶
blackbull.mqtt.broker
¶
MQTT 5.0 broker — the routing/session state owner (actor model).
:class:BrokerActor is one per app/worker, supervisor/lifespan-owned. It owns
all routing state (subscriptions, sessions, retained messages, the live
connection registry) and processes its inbox serially, so there are no locks
and no shared mutable state. Per-connection actors (see
:mod:blackbull.mqtt.connection) send it the Level A messages defined here
and receive :class:Send / :class:Close back.
Because the broker outlives every connection actor, a Will (LWT) routes to live subscribers during a peer's teardown with no special-casing.