This is time for Time-series Databases
The history of Database management systems could be interpreted as a Darwinian evolution process.
The dominance of relational databases gives way to the data warehouses one, which better adapt to the earliest business intelligence requirements; then, alongside the rise of the most popular big data platforms such as Hadoop or spark, comes the era of the NoSQL databases, which were designed to privilege scalability among other features (instead of consistency for example).
However, what has happened during the years, is more likely a specialization process.
In fact, we are experiencing the coexistence of many DBMS paradigms, such as columnar, key-value, document, etc; therefore, instead of relying on a general-purpose unique standard, it is possible to choose the one that is better optimized to manage a particular kind of data and that better fits architectural and functional requirements, e.g. a relational paradigm is still one of the best choices in order to deal with ACID transactions, while a columnar storage fits perfectly in a data lake architecture and so on.
Among the above-mentioned solutions, time-series databases are getting very popular during the last few years.
As the name suggests, a time-series database is designed and optimized to store data that evolves through time (time-series data). In other words, a time series is a (potentially unbounded) sequence of points for a particular metric over time. A metric is the measurement of a phenomenon that evolves through time.
For example, the number of people that come to a country for tourist purposes is an effective example of a metric.
This metric can have multiple dimensions (e.g. the origin country, the destination country) but it’s mandatory that every point has a timestamp and a numerical value that represents the measurement itself.
Time-series Databases in real-time analytics
There are many, very similar definitions of Real-time analytics, each of them agrees that it is the capability to collect and analyze real-time data, that is information immediately available after it comes in a system.
From a business perspective, a real-time analytic system must be able to provide insights while events are gathered into it, so that users are able to take actions with the lowest possible delay. As opposed to the traditional Big Data Analytics, which is focused on the possibility to analyze huge amounts of data generated by heterogeneous sources, it would be unacceptable to have an architecture, e.g. a data lake, that allows users to access to historical data updated to the last day, but event to the last hour.
What is strongly needed by real-time analytics is an architecture that processes data as soon as it is collected from the external world (applications, sensors, etc.), an architecture that privileges incremental updates instead of periodic full data recomputation; in other terms, a stream processing architecture.
Moreover, this kind of architecture naturally fits with time-series data; in fact, if data evolves in time, many single events are collected by the system, which must be able to process it individually.
Stream processing, by definition, is able to manage this scenario easily.
The most popular and also the most iconic stream processing architecture is called Kappa Architecture.
One of the peculiarities of this architecture is that 2 layers of persistence are expected:
- Log store: most of the time, raw events coming from the external are volatile, hence, for fault tolerance purposes, it must be possible to persist them. This storage layer does only require fast write throughput.
- Serving DataBase: client applications (for instance web or mobile dashboards) must query a database where a subset of the information contained in the raw events had been stored by the streaming process engine.
The serving Database must be optimized in order to guarantee the best read performance in querying data that evolves in time.
Given all the assumptions made so far, it goes without saying that a time-series database acts perfectly as a serving layer DB.
The history of F1 motor racing and the use of telemetry as a way to monitor car setup and performance dates back to the 80s. The first electronic systems were installed onboard the car, collected information for only one lap and the data were then downloaded when the...
Walking by the hottest ITstreets in these days means you've likely heard about achieving Online Machine Learning, i.e. moving AI towards streaming scenario and exploiting the real-time capabilities along with new Artificial Intelligence techniques. Moreover, you will...
Big Data is probably one of the most misused words of the last decade. It was widely promoted, discussed and spread around by business managers, technical experts, and experienced academics. Slogans like “Data is the new oil” and all its different shades were widely...
NSDb: Radicalbit Time-series Database
At Radicalbit, we have started the design and the implementation of a time-series database called Natural Series Database (NSDb).
It can be described as a scalable, real-time streaming oriented time-series database.
In fact, besides the main features, we can vouch it is optimized for gathering data trends through time and it supports a P2P cluster with no point of failures.
Moreover, it implements a custom delivery semantic that guarantees real-time processing throughout all the layers of the kappa architecture, i.e. from the external world to the client applications, which is able to leverage push technologies like web sockets in order to allow client applications subscribing to a data trend, which is modeled by a SQL query.
This subscription will enable clients to:
In this article, after a general description of time-series databases, it has been indicated how this kind of storage solution can be applied in a real-time analytics architecture.
Lastly, the Radicalbit solution, NSDb has been introduced and a brief description of its main feature has been provided.
In the following article, the focus will be laid on it from a technical perspective, so that all the features can be further elaborated.
Via Pirelli, 11
Via Pietro Borsieri, 41
1015 re Amsterdam
North end road, 404
sw6 1lu London