How satrai-lab/comdex works
ComDeX is a decentralized NGSI-LD-style IoT broker built around an Action Handler and MQTT brokers; the primary workflow is a client issuing an entity or subscription action, which the handler exchanges through MQTT. The repository also contains ComDeX-FL, an extension for collaborative training, and demo materials for federated setups. The graph shows the documented core and the sampled FL components; unsampled demo internals and unverified runtime connections are not expanded.
Main entry points: actionhandler.py Action Handler · fl_collab.py FL Coordination · c_action.py FL Action Handler
Components 15
ComDeX Core
- Action Handler
actionhandler.py - MQTT Broker
- Entity Operations
actionhandler.py - Subscriptions
actionhandler.py
Context Discovery
- Context Discovery
actionhandler.py - Provider Advertisements
actionhandler.py
Federated Learning
- FL Action Handler
comdex-FL/c_action.py - FL Coordination
comdex-FL/fl_collab.py - Dataset Loading
comdex-FL/fl_collab.py - Model Registry
comdex-FL/fl_collab.py - Local Training
comdex-FL/fl_collab.py - FL Server
comdex-FL/fl_collab.py - FL Client
comdex-FL/fl_collab.py
Demonstrations
- Federation Demos
DEMO
Other components
- IoT Client
Connections 16
- IoT Client → Action Handler: requests actions
README.md - Action Handler → Entity Operations: routes commands
actionhandler.py - Action Handler → Subscriptions: routes commands
README.md - Entity Operations → MQTT Broker: publishes entities
actionhandler.py - Subscriptions → MQTT Broker: subscribes topics
README.md - Action Handler → Context Discovery: discovers context
README.md - Context Discovery → MQTT Broker: queries topics
actionhandler.py - Action Handler → Provider Advertisements: monitors providers
actionhandler.py - Provider Advertisements → MQTT Broker: subscribes topics
actionhandler.py - FL Coordination → Dataset Loading: loads data
comdex-FL/fl_collab.py - FL Coordination → Model Registry: creates models
comdex-FL/fl_collab.py - FL Client → Local Training: trains locally
comdex-FL/fl_collab.py - Local Training → Dataset Loading: uses loaders
comdex-FL/fl_collab.py - FL Server → FL Coordination: starts server role
comdex-FL/fl_collab.py - FL Client → FL Coordination: starts client role
comdex-FL/fl_collab.py - FL Coordination → FL Action Handler: references handler
comdex-FL/fl_collab.py