Communication Patterns

Mir IoT Hub implements three distinct communication patterns, each optimized for specific use cases. Understanding these patterns is crucial for building efficient and reliable IoT solutions.

The Three Paths

┌─────────────────────────────────────────────────────────────────┐
│                        Device Communication                     │
├─────────────────┬─────────────────┬─────────────────────────────┤
│   🔥 Telemetry  │  🔄 Commands    │  ⚙️ Configuration           │
├─────────────────┼─────────────────┼─────────────────────────────┤
│ Fire & Forget   │ Request/Reply   │ Desired/Reported State      │
│ High Volume     │ Synchronous     │ Persistent                  │
│ One-way         │ Two-way         │ Eventually Consistent       │
└─────────────────┴─────────────────┴─────────────────────────────┘

Choosing the Right Path

AspectTelemetryCommandsConfig
DirectionDevice → CloudCloud ↔ DeviceCloud ↔ Device
AcknowledgmentNoneRequiredEventually
PersistenceTime-series DBEvent logDigital Twin
Use WhenStreaming dataImmediate actionPersistent state
Offline BehaviorBuffer locallyFails immediatelyApplies when online
ExamplesSensor dataTurn on lightUpdate threshold

Remember: Choose the right path for each use case, and your IoT solution will be efficient, reliable, and scalable! 🚀

Next Steps

Master these communication patterns to build robust IoT solutions: