UBC Undergraduate Research

ECA Rules in EmbedDB : Enabling Lightweight, Event-Driven Decision Making for Resource-Constrained Devices Richards, MacKenzie E.

Abstract

Resource-constrained Internet of Things (IoT) and edge devices require autonomous, real-time decision-making capabilities without relying on cloud systems or energy-intensive polling. This thesis introduces event-condition-action (ECA) rule support in EmbedDB, transforming it into an active database system that executes reactive queries with minimal latency and memory overhead. We present a lightweight API for defining ECA rules that trigger on data insertion, enabling devices to evaluate conditions (e.g., sliding-window aggregates) and execute actions (e.g., alerts or actuation) entirely on-device. Our implementation maintains EmbedDB’s efficiency, operating in under 4 KB of RAM, while adding active capabilities. Benchmarks show that EmbedDB processes ECA rules in 49µs per insert, outperforming InfluxDB/Kapacitor by over 200 times in end-to-end latency.

Item Citations and Data

Rights

Attribution-NonCommercial-NoDerivatives 4.0 International