Connectivity~5 min read
MQTT topics and device shadow: an evolvable message topology
From a single project to multi-tenant setups—how to name topics and model shadow state without painting yourself into a corner.
顶部展示视频未配置(可在后台文章编辑中填写 YouTube / mp4 / webm 地址)。
Prefer segmented prefixes such as `tenant/{id}/device/{did}/telemetry` for ACLs and routing. Split commands and telemetry onto separate channels to avoid blocking each other.
Device shadow fits “desired vs reported” state well and can buffer commands and merge deltas on flaky networks.
If you later add multi-protocol gateways, map to a unified thing model at the edge while keeping one shadow API in the cloud.
文末视频入口未配置(可用于 YouTube / TikTok 引流)。