SpecsModelExplore
Overview
Actors
External Systems
IoT Platform
Edge
Edge Agent
Edge Rule Runtime
Rule LoaderRule EvaluatorActuator Client
Ingestion
Stream Processing
Device Management
User-Facing Apps
Platform
SpecsModelExplore
Edge Rule Runtime
OverviewGuideLinks and Communications
IDproduct.edge.rule_runtime
DescriptionEvaluates rules locally for low-latency control.
Keyrule_runtime
Typemicroservice:service
TeamEdge Platform
Owneredge-platform@iotgateway.example
Statusactive
TechnologiesRust, Lua/WASM (rules), OpenTelemetry
Attributeslanguage: Rust, latency: <10ms, runtime: container
Tags
Table of contents
Guide
Edge Rule Runtime
Internal structure
Components
Evaluation pipeline
Why rules run at the edge
Related workflows

Guide

Edge Rule Runtime

The Edge Rule Runtime is what lets the gateway act without waiting for the cloud. Rules like “if pressure > threshold for 3 samples, close the valve” must fire in milliseconds and must keep working when the uplink is down. The runtime loads rule packs, evaluates them against the live local stream, and drives actuators when a rule fires.

Responsibility in one sentence

Turn the cloud’s declarative rule packs into fast, deterministic, offline-safe local control actions.

Internal structure

Could not build diagram for model "example-iot".

Components

Rule Loader

Fetches and hot-reloads versioned rule packs from the cloud.

Rule Evaluator

Runs the rules against the local data stream in a sandbox.

Actuator Client

Executes the outcomes by driving local actuators.

Evaluation pipeline

Why rules run at the edge

  • Control loops need single-digit-millisecond reaction times.
  • A cloud round-trip is far too slow for a safety interlock.

Related workflows

Local rules are the fast path of the alert pipeline:

Rule outcomes and cloud commands converge on the same dispatch path:

Links and Communications

1 workflow

Related Workflows(1)

WorkflowModelParticipant idParticipant label
Telemetry to alert

telemetry.alert-pipeline

example-iotproduct.edge.rule_runtimeRule runtime