2025-06-24•Abyan Dimas
Time-Series Databases: InfluxDB and Prometheus
Imagine you are tracking temperature from 1,000 sensors every second. That's 86 million records a day. MySQL will choke.
Characteristics of Time-Series Data
- High Write Volume: Append-only. No updates.
- Time-Centric Queries: "Give me average temp for the last hour".
- Data Retention: "Delete data older than 30 days".
InfluxDB & Prometheus
These databases are optimized for exactly this.
- Compression: They use specialized algorithms (like Gorilla) to compress similar floating-point numbers, reducing storage by 90%.
- Downsampling: Automatically convert "1-second resolution" data to "1-minute resolution" after a week to save space.
Essential for DevOps monitoring, Crypto trading, and IoT.