Last Updated: December 29, 2025
A Time-Series Database (TSDB) is a specialized database optimized for storing, querying, and analyzing data points indexed by time. Each data point typically consists of a timestamp, a metric name, a value, and optional tags or labels.
Loading simulation...
Unlike general-purpose databases that handle arbitrary queries equally well, TSDBs are built from the ground up for append-heavy workloads and time-range queries. They excel at ingesting millions of data points per second and retrieving data for specific time windows efficiently.
Popular Examples: InfluxDB, TimescaleDB, Prometheus, Amazon Timestream, QuestDB
What makes time-series data special? Three characteristics shape everything about how we design for it:
This problem is a common choice in system design interviews, especially for roles involving monitoring, observability, IoT, or financial systems. It tests your understanding of write-optimized storage engines, data compression techniques, and query optimization for time-based access patterns.
The challenge is not just storing data, but doing it at scale while keeping queries fast.
In this chapter, we will explore the high-level design of a time-series database.
Let's start by clarifying the requirements: