Menu

1 / 5

Time-Series Databases Explained: Storing Data That Arrives by the Clock

DEV Community: backend·Abdeldjalil Chougui·about 16 hours ago
#3FAWjxV5
#devtobackend#devto#dev#time#series
Long article (1245 words) — no AI summary yet.
Reading 0:00
15s threshold

Every second, your servers report CPU usage. Every minute, a sensor sends a temperature. Every trade on an exchange carries a price and a timestamp. This kind of data has one thing in common: each record is a measurement at a point in time, and you almost never change it after it arrives.

You can store it in a normal table. Many teams start that way and it works for a while. Then the table grows to billions of rows, dashboards get slow, the disk fills up, and deleting old data locks everything. Time-series databases exist for exactly this shape of data.

What counts as time-series data

A time-series is a sequence of values indexed by time. A single data point usually has:

a timestamp ,

a metric name , such as cpu_usage or temperature ,

tags (also called labels or dimensions) that say where it came from, such as host=web-1 or region=eu ,

one or more values , usually numbers.

The access pattern is what makes it special:

Writes are mostly appends. New points arrive with a recent timestamp.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.