Skip to main content
QUICK REVIEW

[Paper Review] A Fast Lightweight Time-Series Store for IoT Data

Daniel Waddington, Changhui Lin|arXiv (Cornell University)|May 4, 2016
Advanced Data Storage TechnologiesComputer Science8 references3 citations
TL;DR

This paper presents Lightweight Time-Series Store (LTSS), a high-performance, memory-efficient time-series database optimized for IoT workloads. By combining a log-structured storage engine, in-memory hierarchical indexing, in-flight sorting, and a multicore-optimized pipeline architecture, LTSS achieves over 4 million records per second ingestion on commodity hardware while maintaining SQL query performance comparable to or better than SQLite3 and PostgreSQL, even under concurrent write loads.

ABSTRACT

With the advent of the Internet-of-Things (IoT), handling large volumes of time-series data has become a growing concern. Data, generated from millions of Internet-connected sensors, will drive new IoT applications and services. A key requirement is the ability to aggregate, preprocess, index, store and analyze data with minimal latency so that time-to-insight can be reduced. In the future, we expect real-time data collection and analysis to be performed both on small devices (e.g., in hubs and appliances) as well in server-based infrastructure. The ability to localize sensitive data to the home, and thus preserve privacy, is a key driver for small-device deployment. In this paper, we present an efficient architecture for time-series data management that provides a high data ingestion rate, while still being sufficiently lightweight that it can be deployed in embedded environments or small virtual machines. Our solution strives to minimize overhead and explores what can be done without complex indexing schemes that typically, for performance reasons, must be held in main memory. We combine a simple in-memory hierarchical index, log-structured store and in-flight sort, with a high-performance data pipeline architecture that is optimized for multicore platforms. We show that our solution is able to handle streaming insertions at over 4 million records per second (on a single x86 server) while still retaining SQL query performance better than or comparable to existing RDBMS.

Motivation & Objective

  • Address the growing need for high-throughput, low-latency time-series data management in IoT environments with massive sensor-generated data.
  • Overcome the performance limitations of traditional RDBMS and NoSQL systems that struggle with high ingestion rates due to complex indexing and memory-heavy designs.
  • Enable deployment in resource-constrained embedded environments (e.g., Raspberry Pi) while maintaining high performance and SQL compatibility.
  • Minimize memory overhead by avoiding main-memory B+-tree or LSM-tree indexing, instead using a lightweight in-memory hierarchical index and persistent log-structured storage.
  • Support both real-time data ingestion and complex analytical SQL queries with low latency, even under concurrent write loads.

Proposed method

  • Design a software pipeline architecture optimized for multicore CPUs and parallel I/O to maximize throughput.
  • Use a log-structured storage engine to minimize random writes and improve write amplification, especially on NVMe SSDs.
  • Implement an in-memory hierarchical index that efficiently supports time-range queries without requiring full B+-tree structures in DRAM.
  • Apply in-flight sorting during ingestion to maintain sorted order and enable efficient range scans and sliding window aggregations.
  • Derive composite time metadata (e.g., day, month) at ingestion time to reduce query-time computation and improve performance for time-based analytics.
  • Use a single pipeline architecture to unify ingestion and query processing, reducing context switches and improving cache locality.

Experimental results

Research questions

  • RQ1Can a lightweight, embedded-friendly time-series store achieve significantly higher ingestion rates than existing RDBMS and NoSQL solutions?
  • RQ2To what extent can performance be improved by minimizing reliance on main memory for indexing while still supporting complex SQL queries?
  • RQ3How well does the system tolerate out-of-order data, a common issue in IoT networks with variable network delays?
  • RQ4Can the system maintain low-latency SQL query performance under high concurrent write loads, especially compared to traditional RDBMS with locking mechanisms?
  • RQ5Is it feasible to deploy such a system on low-power embedded platforms like the Raspberry Pi 2 while still achieving acceptable performance?

Key findings

  • LTSS achieves a peak ingestion rate of over 4 million records per second on a single x86 server with a 10G NIC, representing a 3x to 4x improvement over existing RDBMS solutions.
  • On the Raspberry Pi 2, LTSS achieves approximately 70,000 records per second, demonstrating viability in embedded and resource-constrained environments.
  • LTSS maintains SQL query performance that is consistently better than both SQLite3 and PostgreSQL, especially for time-selective queries such as those filtering by month or time window.
  • The system exhibits strong out-of-order tolerance: with 1:100 delay ratio, throughput drops only slightly to 844.8 KPPS (from 981.5 KPPS under ideal conditions), indicating resilience to network jitter.
  • Under concurrent ingestion and query load (up to 1M events/sec), query performance fluctuates by less than 1%, demonstrating robustness to read-write contention.
  • Traditional RDBMS like SQLite3 and PostgreSQL suffer from severe performance degradation under load due to locking, with packet drops occurring even at low query rates, whereas LTSS avoids this through lock-free design.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.