03 / Connected devices

2024—NOW

Backend commands,
physical devices.

Real-time remote control of ~1,000 connected devices over MQTT and AWS IoT Core.

Role
Full-Stack Engineer
Company
Kevych Solutions
Tech
MQTT / AWS IoT Core / Node.js

Scroll to explore

01

Overview

When the backend sends a command, a physical device somewhere has to act on it.

I built MQTT-based remote control for about 1,000 connected devices through AWS IoT Core, so they can be managed remotely and in real time from the product.

02

The hard part

Devices are not web clients.

  • Devices are remote and stay connected over long periods. They don't call an API and wait for a response.
  • Commands have to reach them in real time, and their state has to flow back to the product.
  • A mistake here doesn't just show a wrong screen. It changes how real hardware behaves.

03

System

The backend never talks to a device directly. Messages go through AWS IoT Core over MQTT.

  1. Product

    • Remote device management
  2. Backend · Node.js

    • Device-control logic
  3. AWS IoT Core

    • MQTT broker · device connections
  4. Devices

    • Receive commands · report back

04

Engineering decisions

MQTT over HTTP
MQTT is built for devices: lightweight publish/subscribe messaging over persistent connections, so commands reach a device without it having to poll for them.
A managed broker
AWS IoT Core holds the device connections and the messaging, so the backend stays focused on control logic instead of running broker infrastructure.
Devices as part of the product
Device control runs through the same backend as the rest of the product, so remote operations are product features, not a separate tool.

05

Impact

~1,000 devices, controlled in real time.

About 1,000 connected devices are managed remotely through the product, with commands delivered in real time over MQTT and AWS IoT Core.

06

Stack

  • Node.js
  • TypeScript
  • MQTT
  • AWS IoT Core