Cases
IoT & monitoring · An international manufacturer of energy systemsHundreds of thousands of devices, connected live
The monitoring platform of an energy-systems manufacturer: hundreds of thousands of installations worldwide are connected live over MQTT, with close to a million messages a second, typically delivered in about 30 milliseconds.
Results
70 billion+
messages a day
350,000+
devices connected at once
~30 ms
to deliver a message
4 million+
active subscriptions
Situation
A manufacturer of energy systems has hundreds of thousands of installations in the field worldwide: inverters, chargers and batteries, connected through a gateway to the monitoring platform. Owners and installers follow their system live in a web portal and app, get an alert when something fails and change settings remotely.
Problem
Every device sends measurements and status updates continuously, and a remote command has to arrive right away. That means hundreds of thousands of connections open at the same time, peaks of more than a million messages a second, and data that still has to arrive complete after a connection drops. A failure has to show up because data stops arriving, not when someone happens to look at a dashboard.
Approach
An event-driven architecture on MQTT, with FlashMQ as the broker:
- A broker cluster for the live data, a separate broker for remote commands, and regional brokers in Europe, the United States, Australia and Africa.
- Log data arrives in bundles and goes through queues into InfluxDB for the time series and into MySQL on Vitess, which scales the database horizontally; what arrives days or months late after an outage is still processed.
- Monitoring on missing data, with e-mail and push alerts to owners and installers.
- Metrics at every step: messages per second, connections, latency and queues.
- Event-driven