Antek Async uses a "Hub and Spoke" model where the central BrokerModule receives messages from various Protocols and redistributes them to interested parties.
- Ingestion: A Gateway (e.g., MQTTGateway) receives a packet.
- Translation: The Gateway parses the raw bytes/text into a logical
topicandpayload. - Routing: The Gateway calls
BrokerModule.publish(topic, payload, source). - Distribution:
BrokerModuleiterates over subscribers and triggers callbacks (which may write back to sockets).
All Gateways must:
- Import
BrokerModule. - Log activities via
Logger. - Handle their own connection lifecycle.
- Not block the event loop.