Quick Intro to Time series databases (TSDBs)
Companies like Amazon, Uber, and Facebook use time series databases (TSDBs) to store and analyze large volumes of time-series data. But what exactly are TSDBs, and what use-cases are they best suited for?
For instance,
What is Time Series Data ?
In simple terms, data that is generated over time at regular intervals.
You can think of it as a collection of observations that are recorded in chronological order. Each observation is associated with a specific timestamp or time period, such as seconds, minutes, hours, days, weeks etc.
Internals in brief
TSDBs have two primary components: a storage engine and a query engine.
It uses combination of indexing, compression, caching, and aggregation techniques to efficiently store and query time-series data, while also providing scalability and fault-tolerance through sharding and replication.
For example, TSDBs may use an index to quickly locate the data for a specific time range or use pre-computed aggregates to reduce the amount of data that needs to be processed for a query.
Popular Use Cases
TSDBs can be used to store and analyse :
领英推荐
Popular OpenSource TSDBs that you can explore ??
These DBs uses a query language that is specifically designed for time-series data, such as PromQL, InfluxQL, or OpenTSDB's Query Language. These query languages support time-based filtering and aggregation operations.
TSDBs are used along with other big data technologies, such as Apache Kafka and Apache Spark, to handle large volumes of time-series data in real-time.
References and Good Reads
_______________________________________________________________
If you found this article informative, don't forget to leave a like and subscribe to the newsletter for more snackable system design concepts. The newsletter has already reached 5.1k+ subscribers!
Feel free to connect with me here : https://linktr.ee/asmah98