SpecsModelExplore
Overview
Actors
External Systems
IoT Platform
Edge
Ingestion
Stream Processing
Device Management
Device Registry
Device RepositoryConnection State TrackerTwin Store
OTA Service
User-Facing Apps
Platform
SpecsModelExplore
Connection State Tracker
OverviewGuideLinks and Communications
IDproduct.device_management.registry_service.state_tracker
DescriptionTracks online / offline state per device.
Keystate_tracker
Typecomponent
TeamDevice Management
Ownerdevice-mgmt@iotgateway.example
Statusactive
TechnologiesGo, Redis
Attributesfreshness: <5s
Tags
Table of contents
Guide
Connection State Tracker
State transitions
Behaviour

Guide

Connection State Tracker

The Connection State Tracker keeps a fast, ephemeral view of which devices are currently connected. It reacts to MQTT session open/close events and to a liveness timeout, and exposes presence to the rest of the registry.

Why it is separate from the repository

Presence changes thousands of times per second across the fleet. Keeping it in a fast in-memory store (Redis) instead of the relational Device Repository protects the durable store from write amplification.

State transitions

Behaviour

  • Presence TTL is refreshed by MQTT keepalives; a missed window moves a device to Stale before it is declared Offline.
  • Durable last_seen_at is flushed back to the Device Repository on transition, not on every heartbeat.

Links and Communications

1 outgoing link

Outgoing Links(1)

Target objectLabelLink typeRelationRaw idRequiredDescription
Device Repository

example-iot.product.device_management.registry_service.device_repo

component:database
tracks state in—linksproduct.device_management.registry_service.device_repo——