Abstract
IoT deployments increasingly rely on MQTT as a lightweight publish/subscribe backbone connecting heterogeneous devices, gateways, and backend services. Within the
MQTTSuite ecosystem, the mqttintegrator component performs mapping-driven trans
lation between MQTT topics: it subscribes to inputs, transforms payloads, and republishes
mapped outputs according to a JSON mapping file. Historically, this file was loaded
once at startup, so any change required editing it on disk and restarting the process. As
mappings grow and are edited by multiple administrators, this static, restart-oriented
workflow becomes increasingly restrictive: it introduces change friction, risks undetected
errors in large hand-edited documents, and offers no coordination between concurrent
edits or safe rollback.
This thesis addresses the following research question: how can a mapping-driven
MQTT integration component provide a safe, multi-user configuration lifecycle with
runtime reconfiguration while maintaining the low resource overhead required for edge
computing? To answer it, mqttintegrator’s static file-loading model is replaced with
an explicit, state-based lifecycle (SYNCHRONIZED, MODIFIED, VALIDATED, ACTIVE) imple
mented as an HTTP-based management backend. Changes are isolated in a dedicated
draft workspace and applied through granular RFC 6902 JSON Patch operations rather
than full-document replacement. Before promotion, a draft passes mandatory JSON
Schema gatekeeping, and every deployment is persisted atomically via a temporary-file
and-rename pattern with a size-bounded, rollback-capable version history. Concurrent
access is protected by a dual-layer Optimistic Concurrency Control (OCC) mechanism: an
integer revision token guards the draft against lost updates from concurrent editors, and
a second, independent token guards deployment against stale activation of an outdated
draft, both without the overhead or deadlock risk of pessimistic locking. At runtime,
the system distinguishes changes requiring only an incremental subscription delta (“hot
reload”) from connection-parameter changes requiring a full client reconnect.
The implementation is evaluated against ten scripted, assertion-based scenarios exer
cising all five functional requirements and three of the four non-functional requirements
derived from three conflict classes. Results confirm that workspace isolation, patch
atomicity, schema gatekeeping, crash-safe persistence, and both OCC layers behave as
specified; a hot reload completes in roughly 21ms, 2.6 times faster than a full restart.
These results show that a rigorously specified lifecycle combined with optimistic, token
based concurrency control provides safe, auditable, multi-user runtime reconfiguration
for MQTT integration middleware without compromising the resource efficiency edge
deployments require.
| Date of Award | 2026 |
|---|---|
| Original language | English (American) |
| Awarding Institution |
|
| Supervisor | Volker Christian (Supervisor) |
Studyprogram
- Interactive Media
Cite this
- Standard