Introduction

TDengine is an open source, high-performance, cloud native time-series database optimized for Internet of Things (IoT), Connected Cars, and Industrial IoT. Its code, including its cluster feature is open source under GNU AGPL v3.0. Besides the database engine, it provides caching, stream processing, data subscription and other functionalities to reduce the system complexity and cost of development and operation.

This section introduces the major features, competitive advantages, typical use-cases and benchmarks to help you get a high level overview of TDengine.

Major Features

The major features are listed below:

  1. Insert data
  2. Query data
  3. Caching: TDengine always saves the last data point in cache, so Redis is not needed for time-series data processing.
  4. Stream Processing: Not only is the continuous query is supported, but TDengine also supports event driven stream processing, so Flink or Spark is not needed for time-series data processing.
  5. Data Subscription: Application can subscribe a table or a set of tables. API is the same as Kafka, but you can specify filter conditions.
  6. Visualization
  7. Cluster
    • Supports cluster with the capability of increasing processing power by adding more nodes.
    • Supports deployment on Kubernetes.
    • Supports high availability via data replication.
  8. Administration
  9. Tools
  10. Programming

For more details on features, please read through the entire documentation.

Competitive Advantages

By making full use of characteristics of time series data, TDengine differentiates itself from other time series databases, with the following advantages.

  • High-Performance: TDengine is the only time-series database to solve the high cardinality issue to support billions of data collection points while out performing other time-series databases for data ingestion, querying and data compression.

  • Simplified Solution: Through built-in caching, stream processing and data subscription features, TDengine provides a simplified solution for time-series data processing. It reduces system design complexity and operation costs significantly.

  • Cloud Native: Through native distributed design, sharding and partitioning, separation of compute and storage, RAFT, support for Kubernetes deployment and full observability, TDengine is a cloud native Time-series Database and can be deployed on public, private or hybrid clouds.

  • Ease of Use: For administrators, TDengine significantly reduces the effort to deploy and maintain. For developers, it provides a simple interface, simplified solution and seamless integrations for third party tools. For data users, it gives easy data access.

  • Easy Data Analytics: Through super tables, storage and compute separation, data partitioning by time interval, pre-computation and other means, TDengine makes it easy to explore, format, and get access to data in a highly efficient way.

  • Open Source: TDengine’s core modules, including cluster feature, are all available under open source licenses. It has gathered over 19k stars on GitHub. There is an active developer community, and over 140k running instances worldwide.

With TDengine, the total cost of ownership of your time-series data platform can be greatly reduced.

  1. With its superior performance, the computing and storage resources are reduced significantly.
  2. With SQL support, it can be seamlessly integrated with many third party tools, and learning costs/migration costs are reduced significantly.
  3. With its simplified solution and nearly zero management, the operation and maintenance costs are reduced significantly.

Technical Ecosystem

This is how TDengine would be situated, in a typical time-series data processing platform:

TDengine Database Technical Ecosystem

Figure 1. TDengine Technical Ecosystem

On the left-hand side, there are data collection agents like OPC-UA, MQTT, Telegraf and Kafka. On the right-hand side, visualization/BI tools, HMI, Python/R, and IoT Apps can be connected. TDengine itself provides an interactive command-line interface and a web interface for management and maintenance.

Typical Use Cases

As a high-performance, scalable and SQL supported time-series database, TDengine’s typical use case include but are not limited to IoT, Industrial Internet, Connected Vehicles, IT operation and maintenance, energy, financial markets and other fields. TDengine is a purpose-built database optimized for the characteristics of time series data. As such, it cannot be used to process data from web crawlers, social media, e-commerce, ERP, CRM and so on. More generally TDengine is not a suitable storage engine for non-time-series data. This section makes a more detailed analysis of the applicable scenarios.

Characteristics and Requirements of Data Sources

Data Source Characteristics and RequirementsNot ApplicableMight Be ApplicableVery ApplicableDescription
A massive amount of total dataTDengine provides excellent scale-out functions in terms of capacity, and has a storage structure with matching high compression ratio to achieve the best storage efficiency in the industry.
Data input velocity is extremely highTDengine’s performance is much higher than that of other similar products. It can continuously process larger amounts of input data in the same hardware environment, and provides a performance evaluation tool that can easily run in the user environment.
A huge number of data sourcesTDengine is optimized specifically for a huge number of data sources. It is especially suitable for efficiently ingesting, writing and querying data from billions of data sources.

System Architecture Requirements

System Architecture RequirementsNot ApplicableMight Be ApplicableVery ApplicableDescription
A simple and reliable system architectureTDengine’s system architecture is very simple and reliable, with its own message queue, cache, stream computing, monitoring and other functions. There is no need to integrate any additional third-party products.
Fault-tolerance and high-reliabilityTDengine has cluster functions to automatically provide high-reliability and high-availability functions such as fault tolerance and disaster recovery.
Standardization supportTDengine supports standard SQL and provides SQL extensions for time-series data analysis.

System Function Requirements

System Function RequirementsNot ApplicableMight Be ApplicableVery ApplicableDescription
Complete data processing algorithms built-inWhile TDengine implements various general data processing algorithms, industry specific algorithms and special types of processing will need to be implemented at the application level.
A large number of crosstab queriesThis type of processing is better handled by general purpose relational database systems but TDengine can work in concert with relational database systems to provide more complete solutions.

System Performance Requirements

System Performance RequirementsNot ApplicableMight Be ApplicableVery ApplicableDescription
Very large total processing capacityTDengine’s cluster functions can easily improve processing capacity via multi-server coordination.
Extremely high-speed data processingTDengine’s storage and data processing are optimized for IoT, and can process data many times faster than similar products.
Extremely fast processing of high resolution dataTDengine has achieved the same or better performance than other relational and NoSQL data processing systems.

System Maintenance Requirements

System Maintenance RequirementsNot ApplicableMight Be ApplicableVery ApplicableDescription
Native high-reliabilityTDengine has a very robust, reliable and easily configurable system architecture to simplify routine operation. Human errors and accidents are eliminated to the greatest extent, with a streamlined experience for operators.
Minimize learning and maintenance costsIn addition to being easily configurable, standard SQL support and the TDengine CLI for ad hoc queries makes maintenance simpler, allows reuse and reduces learning costs.
Abundant talent supplyGiven the above, and given the extensive training and professional services provided by TDengine, it is easy to migrate from existing solutions or create a new and lasting solution based on TDengine.

Comparison with other databases

More readings