Choosing the right database is a critical choice when building any software application. All databases have different strengths and weaknesses when it comes to performance, so deciding which database has the most benefits and the most minor downsides for your specific use case and data model is an important decision. Below you will find an overview of the key concepts, architecture, features, use cases, and pricing models of Mimir and TDengine so you can quickly see how they compare against each other.

The primary purpose of this article is to compare how Mimir and TDengine perform for workloads involving time series data, not for all possible use cases. Time series data typically presents a unique challenge in terms of database performance. This is due to the high volume of data being written and the query patterns to access that data. This article doesn’t intend to make the case for which database is better; it simply provides an overview of each database so you can make an informed decision.

Mimir vs TDengine Breakdown


 
Database Model

Time series database

Time series database

Architecture

Grafana Mimir is a time series database designed for high-performance, real-time monitoring, and analytics. It features a distributed architecture, allowing for horizontal scaling across multiple nodes to handle large volumes of data and queries. It can be deployed on-prem due to being open source or as a managed solution hosted by Grafana

TDengine can be deployed on-premises, in the cloud, or as a hybrid solution, allowing flexibility in deployment and management.

License

APGL 3.0

AGPL 3.0

Use Cases

Monitoring, observability, IoT

IoT data storage, industrial monitoring, smart energy, smart home, monitoring and observability

Scalability

Horizontally scalable

Horizontally scalable with clustering and built-in load balancing. TDengine also provides decoupled compute and storage as well as object storage support for data tiering in some versions

Mimir Overview

Grafana Mimir is an open-source software project that provides a scalable long-term storage solution for Prometheus. Started at Grafana Labs and announced in 2022, Grafana Mimir aims to become the most scalable and performant open-source time series database for metrics. The project incorporates the knowledge and experience gained by Grafana Labs engineers from running Grafana Enterprise Metrics and Grafana Cloud Metrics at massive scale.

TDengine Overview

TDengine is a high-performance, open source time series database designed to handle massive amounts of time series data efficiently. It was created by TAOS Data in 2017 and is specifically designed for Internet of Things (IoT), Industrial IoT, and IT infrastructure monitoring use cases. TDengine has a unique hybrid architecture that combines the advantages of both relational and NoSQL databases, providing high performance, easy-to-use SQL for querying, and flexible data modeling capabilities.


Mimir for Time Series Data

Grafana Mimir is well-suited for handling time series data, making it a suitable choice for scenarios involving metric storage and analysis. It provides long-term storage capabilities for Prometheus, a popular open-source monitoring and alerting system. With Grafana Mimir, users can store and query time series metrics over extended periods, allowing for historical analysis and trend detection. It is especially useful for applications that require scalable and performant storage of time series data for metrics monitoring and observability purposes.

TDengine for Time Series Data

TDengine is designed from the ground up as a time series database, so it will be a good fit for most use cases that heavily involve storing and analyzing time series data.


Mimir Key Concepts

  • Metrics: In Grafana Mimir, metrics represent the measurements or observations tracked over time. They can include various types of data, such as system metrics, application performance metrics, or sensor data.
  • Long-term Storage: Grafana Mimir provides a storage solution specifically tailored for long-term retention of time series data, allowing users to store and query historical metrics over extended periods.
  • Microservices: Grafana Mimir adopts a microservices-based architecture, where the system consists of multiple horizontally scalable microservices that can operate independently and in parallel.

TDengine Key Concepts

  • Super Table: A template for creating multiple tables with the same schema. It’s similar to the concept of table inheritance in some other databases.
  • Sub Table: A table created based on a Super Table, inheriting its schema. Sub Tables can have additional tags for categorization and querying purposes.
  • Tag: A metadata attribute used to categorize and filter Sub Tables in a Super Table. Tags are indexed and optimized for efficient querying.


Mimir Architecture

Grafana Mimir adopts a microservices-based architecture, where the system comprises multiple horizontally scalable microservices. These microservices can operate independently and in parallel, allowing for efficient distribution of workload and scalability. Grafana Mimir’s components are compiled into a single binary, providing a unified and cohesive system. The architecture is designed to be highly available and multi-tenant, enabling multiple users and applications to utilize the database concurrently. This distributed architecture ensures scalability and resilience in handling large-scale metric storage and retrieval scenarios.

TDengine Architecture

TDengine uses a cloud native architecture that combines the advantages of relational databases (support for SQL querying) and NoSQL databases (scalability and flexibility).

Free Time-Series Database Guide

Get a comprehensive review of alternatives and critical requirements for selecting yours.

Mimir Features

Scalability

Grafana Mimir is designed to scale horizontally, enabling the system to handle growing data volumes and increasing workloads. Its horizontally scalable microservices architecture allows for seamless expansion and improved performance.

High Availability

Grafana Mimir provides high availability by ensuring redundancy and fault tolerance. It allows for replication and distribution of data across multiple nodes, ensuring data durability and continuous availability of stored metrics.

Long-term Storage

Grafana Mimir offers a dedicated solution for long-term storage of time series metrics. It provides efficient storage and retrieval mechanisms, allowing users to retain and analyze historical metric data over extended periods.

TDengine Features

Data ingestion

TDengine supports high-speed data ingestion, with the ability to handle millions of data points per second. It supports batch and individual data insertion.

Data querying

TDengine provides ANSI SQL support with additional that allows users to easily query time series data using familiar SQL syntax. It supports various aggregation functions, filtering, and joins.

Data retention and compression

TDengine automatically compresses data to save storage space and provides data retention policies to automatically delete old data.


Mimir Use Cases

Metrics Monitoring and Observability

Grafana Mimir is well-suited for monitoring and observability use cases. It enables the storage and analysis of time series metrics, allowing users to monitor the performance, health, and behavior of their systems and applications in real-time.

Long Term Metric Storage

With its focus on providing scalable long-term storage, Grafana Mimir is ideal for applications that require retaining and analyzing historical metric data over extended periods. It allows users to store and query large volumes of time series data generated by Prometheus.

Trend and anomaly detection

By using Mimir for storing long term historical data it can be useful for detecting trends in your metrics and also for comparing current metrics to historical data to detect outliers and anomalies

TDengine Use Cases

IoT data storage and analysis

TDengine is designed to handle massive amounts of time series data generated by IoT devices. Its high-performance ingestion, querying, and storage capabilities make it a suitable choice for IoT data storage and analysis.

Industrial IoT monitoring

TDengine can be used to store and analyze data from industrial IoT sensors and devices, helping organizations monitor equipment performance, detect anomalies, and optimize operations.

Infrastructure Monitoring

TDengine can be used to collect and analyze time series data from IT infrastructure components, such as servers, networks, and applications, facilitating real-time monitoring, alerting, and performance optimization.


Mimir Pricing Model

Grafana Mimir is an open-source project, which means it is freely available for usage and does not require any licensing fees. Users can download the source code and deploy Grafana Mimir on their own infrastructure without incurring direct costs. However, it’s important to consider the operational costs associated with hosting and maintaining the database infrastructure.

TDengine Pricing Model

TDengine is open source and free to use under the AGPLv3 license. TDengine also offers commercial licenses and enterprise support options for organizations that require additional features, support, or compliance with specific licensing requirements.

Get started with InfluxDB for free

InfluxDB Cloud is the fastest way to start storing and analyzing your time series data.