DEV Community

Cover image for Decoupling from the Cloud: Building a Real-Time Event Analytics Dashboard at the Edge
stampiq
stampiq

Posted on

Decoupling from the Cloud: Building a Real-Time Event Analytics Dashboard at the Edge

Building a real-time event analytics dashboard for web traffic is simple. Building one to track 15,000 physical humans walking around a convention center is an entirely different engineering challenge.

When you deploy IoT hardware (like RFID antennas) across a massive venue, the standard developer instinct is to stream the payload directly to a cloud API endpoint. Do not do this at a live event. The moment 10,000 delegates enter a hall, the local 5G cell towers get congested, the venue Wi-Fi crashes, and your cloud connection will drop, leaving your dashboard completely blank.

The Solution: Edge Computing & Local MQTT Brokers
To ensure high availability, we push all processing to the edge. We attach local micro-servers (running Node.js) to our physical thresholds.

Instead of making external HTTP requests, our hardware publishes tag reads to a local MQTT broker hosted entirely on the venue's intranet.

JavaScript
// Edge-level debouncing and local publishing
function handleRfidTag(tagId, zoneId) {
const timestamp = Date.now();

// Publish locally immediately - no internet required
localMqttClient.publish('venue/telemetry/traffic', JSON.stringify({
    uid: tagId,
    location: zoneId,
    time: timestamp
}), { qos: 1 });
Enter fullscreen mode Exit fullscreen mode

}
By decoupling the data capture from the cloud upload, the venue operations team can still access the live heatmap dashboard via the local network, even if the building loses external internet access. A separate background worker batches these MQTT messages and syncs them to our AWS time-series database only when the external connection is stable.

If you are a technical director building an event roi platform saudi arabia or managing massive crowds in the GCC, never trust the venue's external internet. Build for the edge.

Top comments (0)