Posts

Showing posts with the label Performance

Load-testing an IoT platform with 3,000 simulated energy meters

Before an IoT platform goes live with thousands of devices, one question matters more than any feature: will it keep up? I work on a smart energy metering platform built on ThingsBoard, and before a large rollout I was asked to find out. This post explains how I tested it, what the numbers showed, and the two problems the tests found that no unit test would have caught. Short version: 3,000 simulated meters, one reading per minute each (50 messages per second), for an hour. Processing lag stayed flat at about 1 second (p95) , a supply cut-off command reached the meter in 1.3 seconds (p95) , and the server used about one CPU core . The tests also exposed a start-up connection wave and an alert flood . Why simulate instead of waiting for real meters Real meters arrive in batches, months apart, and you cannot ask a customer to switch 3,000 of them on and off for a test. A simulator lets you create the whole fleet on day one, run it as often as you like, and break things on purpose. ...