Connectivity, Remote Monitoring, and Management for eXtremeDB/rt Systems
Modern embedded systems increasingly require network connectivity for monitoring, diagnostics, management, and integration with external applications. This is particularly true for IoT and edge devices deployed in large numbers, where remote monitoring and management are essential throughout the product lifecycle.
EWSLite is a compact embedded web services framework written in C. It combines a lightweight HTTP server with REST APIs, JSON response generation, and WebSocket communication in a portable package designed for resource-constrained systems. Support for the LwIP TCP/IP stack enables deployment on memory-constrained microcontrollers and embedded devices while maintaining a small footprint and low runtime overhead. Communications can be secured using industry-standard embedded TLS solutions, including WolfSSL and other supported TLS libraries.
Architecture
EWSLite forms the connectivity layer for eXtremeDB/rt systems. Built on top of EWSLite, the RESTrt library implements a REST API for accessing runtime information from the eXtremeDB/rt database kernel. Applications and monitoring systems can query database and storage metrics such as memory utilization, transaction activity, deadline compliance, I/O statistics, flash storage metrics, and performance counters using standard HTTP requests and JSON-formatted responses. For hard real-time applications, statistics can include transactions that met or missed their execution deadlines. Runtime statistics are collected by STATrt, a component of the eXtremeDB runtime library. STATrt gathers operational data from the database kernel, RESTrt formats and exposes that information through REST APIs, while EWSLite provides external access to those services. The resulting services can be accessed by custom applications or through eXtremeDB xPanel Dashboard, which provides a graphical interface for viewing database and flash storage statistics.
In addition to the provided monitoring services, EWSLite, RESTrt, and STATrt expose comprehensive C APIs, allowing applications to integrate these capabilities with existing management and monitoring frameworks or build custom solutions.
