TL;DR: Apache IoTDB is an open-source, IoT-native time-series database built for industrial IoT workloads. It organizes device data through Tree and Table models, supports high-speed ingestion from signals with different sampling frequencies, and handles out-of-order data points. Once ingested, the data is stored in Apache TsFile, a columnar file format that supports encoding and compression for time-series data. IoTDB also supports SQL queries and uses the Pipe framework to synchronize data between instances. Together, these capabilities support industrial time-series data management across edge and central environments.
Industrial IoT systems generate continuous streams of time-series data from sensors, machines, and connected devices. Managing this data requires efficient ways to organize measurements across devices, handle high-volume data ingestion, and support time-based analysis.
These requirements call for a database designed specifically for IoT workloads. Apache IoTDB is an open-source time-series database built to address these challenges.
Industrial Time-Series Workloads
Industrial IoT workloads commonly have several characteristics:
Many devices generate measurements continuously.
A single device can report multiple measurements, often at different frequencies.
Devices and measurements follow an equipment hierarchy, such as site, production line, machine, and sensor.
Engineers need both current readings and historical trends.
Network interruptions and buffering can cause delayed or out-of-order arrivals.
These characteristics place different demands on data organization, ingestion, retention, and analysis than those typically found in transactional workloads. While relational databases remain useful for business applications and can store timestamped data, sustained industrial telemetry often requires specialized support for data partitioning, indexing, retention, late-arriving data, and time-range queries.
Apache IoTDB’s IoT-Native Design
Apache IoTDB's IoT-native design is reflected in how it organizes devices and measurements, handles time-series ingestion and storage, supports time-based queries, and synchronizes data across instances. These capabilities address the distinct requirements of industrial IoT workloads throughout the data lifecycle.
Organizing devices and measurements
Industrial assets often form a hierarchy: a site contains production lines, lines contain machines, and machines expose measurement points. Apache IoTDB's Tree Model organizes time series through hierarchical paths, while its Table Model organizes data in tables for table-oriented workflows.
These two models support different data organization and access patterns, allowing teams to work with industrial IoT data through either hierarchical paths or tabular structures. Importantly, the two models are not mutually exclusive. Apache IoTDB supports both models within the same cluster, allowing them to coexist. It also provides Tree-to-Table Views, enabling users to access existing Tree Model data through the Table Model's query interface without requiring the data to be reorganized.
Ingesting and storing time-series data
Apache IoTDB supports high-speed ingestion of multi-frequency and out-of-order measurements. For persistent storage, it uses Apache TsFile, a columnar file format designed for industrial time-series data. TsFile stores timestamps and values in a columnar layout and supports multiple encoding and compression methods, helping reduce storage requirements for growing datasets..
TsFile also maintains schema, metadata, and statistics that help locate relevant data for time-range or value-based queries. Its layout supports selective reads, so a query can access relevant data without scanning the entire dataset. Together, these storage and retrieval capabilities enable efficient access to historical time-series data as datasets continue to grow.
Querying over time
Many industrial IoT analysis tasks begin with a specific time range, such as inspecting machine conditions during a production shift, calculating interval-based aggregates, or comparing signals recorded at different frequencies. Apache IoTDB supports SQL queries and time-series operations, including time-range filtering, aggregation, and timestamp alignment. For example, engineers can query temperature and vibration readings for one machine over a defined interval or aggregate energy measurements across a group of assets.
Moving data across edge and central environments
Industrial IoT systems often span multiple sites. Site-level IoTDB instances can collect data close to industrial equipment, while the Pipe framework synchronizes data to central IoTDB deployments for cross-site analysis.
Industrial IoT Applications
These capabilities support a range of industrial IoT applications that require both real-time monitoring and historical data analysis:
Equipment monitoring: Track current operating conditions and review historical sensor readings for individual machines and other industrial assets.
Predictive maintenance: Analyze historical sensor data to identify abnormal patterns and potential equipment issues, supporting data-driven maintenance decisions.
Energy management: Aggregate time-series measurements over defined intervals to monitor energy consumption across equipment, production lines, and facilities.
Production analysis: Compare operational measurements across machines, production lines, and time periods to identify trends and support process optimization.
Conclusion
By integrating flexible data organization, efficient time-series storage, time-based queries, and cross-instance synchronization, Apache IoTDB provides a unified foundation for managing industrial IoT data.
To learn more, visit the Apache IoTDB website, read the Apache IoTDB introduction, or explore the project on GitHub.