Real-time analytics: use cases, requirements and core architecture
What it takes to analyze data the moment it is generated: types of analysis, automated actions and the two technical pieces every solution is built on.
Real-time analytics processes data as soon as it arrives, so organizations can respond before a finding loses value. This article covers when it pays off (fraud, site availability, IT monitoring, predictive maintenance), what an organization needs to apply it, which analyses and actions it supports, and the tools at its core.
TABLA DE CONTENIDOS
This article explains what real-time analytics is, when it adds value, what an organization needs to put it to work, which kinds of analysis and actions it supports, and which tools a solution is built on.
What real-time analytics is
Real-time analytics makes it possible to analyze data immediately (real time) or as close as possible (near real time) to the moment a specific event occurred or a situation arose that calls for a response.
Traditionally, this kind of analysis was applied only to data generated inside the organization, and the tools that enabled it carried costs that not every organization could afford.
Today, data can be internal or external to the organization; for example, it can come from social media.
When people talk about real-time analysis, it usually makes sense for data to be generated as a stream, that is, continuously (logs, clickstreams, sensors and so on), and to be processed as a stream as well, as soon as it arrives and without storing it first.
Both aspects bring their own complexity, so there need to be mechanisms to handle the problems that can come up during processing. Data may arrive out of order, come from several sources with different issues, or have quality problems.
The range of available tools is broad: proprietary or open source, with or without license fees, with or without paid support. In other words, the tools are there; organizations need to use them to benefit from the results they can deliver.
Use cases
Speed in detecting an event matters, and so does the chance to act proactively and gain an advantage by catching it early. Sometimes the point is to outperform the competition; other times, to contain a problem before it spreads or gets worse over time.
In some cases, the longer it takes to react after an event, the less the finding is worth, so early detection becomes critical. In other words, the value of data depends on keeping the time between the event and the response short.
An organization may want real-time analytics for many reasons. Some examples:
- An e-commerce company will want its site available at all times so it doesn’t lose sales.
- An organization that already knows certain fraudulent behaviors will want to detect new fraud as early as possible and get ahead of it.
- An IT support team will want to monitor every resource it manages and respond to a failure as quickly as possible.
- In any machine maintenance scenario, as predictive analytics matures, the goal will be to predict a failure before it happens.
What an organization needs to get started
Some requirements for applying real-time analytics successfully:
- Every source whose data the analysis needs must be able to send each record, once generated, to the real-time processing system as soon as possible. Ideally it is sent record by record, avoiding the classic buffer that ships data every x minutes.
- The people implementing the analysis need the right technology to receive and process data quickly.
- It must be clear which kinds of analysis are needed (some options are covered below).
- The network must allow data to move with the lowest possible latency.
- The necessary hardware and software must be in place. A high-availability strategy may be needed to minimize the impact of every possible point of failure.
- Launch the first real-time pipeline, analyze the problems that come up, fix them and iterate.
As this shows, there are many possible points of failure or of impact on performance. That is why the whole pipeline needs to be analyzed and, once it is running, so does the behavior at each point.
Types of real-time analysis
Many kinds of analysis are possible; there can be hybrids, and new types may emerge from the organization’s needs.
- Monitoring: watching data as it is generated, for example tracking a company’s vehicle fleet in real time.
- Transforming and enriching data: changing incoming data so it is more useful for analysis, such as filtering it or applying simple rules to its fields.
- Aggregations: aggregating over time windows, such as the number of sales every 30 minutes. There are also tools that ingest data on arrival into a model of time, dimensions and measures, like BI cubes, but adding each new record to the model and making it queryable with minimal delay.
- Analysis against historical data: joining incoming data with history stored in databases, big data platforms, indexing tools and so on. Tools now support streaming SQL, so teams can use a language that is already common in traditional analysis and learn less.
- Detecting specific events with patterns: patterns found in data at rest can point to scenarios of interest, and a streaming job can then use those patterns to catch them as early as possible.
- Inferring new patterns: time series, for example, can reveal behaviors as they happen.
There are countless examples. Some cases are simpler, and starting with them helps build a real-time culture in the organization.
Today’s tools offer plenty of options and flexibility for real-time analysis tailored to each organization’s needs.
Actions that can be triggered
When the goal is to respond to a specific event, it helps to trigger one or more actions. Some examples:
- Trigger an alert when a specific threshold is reached, for example when a company vehicle exceeds the speed limit. An alert can be an email, a text message, a phone call and so on.
- Trigger an alert by comparing real-time data with historical or predefined data. In the vehicle example, if each vehicle has defined zones, an alert can fire when one of them leaves its zone.
- Run a process when a certain scenario or event is detected. If a data quality problem shows up, an automated workflow can be launched to handle it.
- Respond elastically: for sporadic events with a serverless solution (very common in the cloud), detecting a particular pattern in incoming data can trigger a one-off process without a dedicated server, which saves the organization from keeping a server running all the time for those events.
- Build a pipeline as complex as needed, triggered by the detection of a specific event.
Tools: a message broker and a processing engine
No single set of tools covers every scenario: the choice depends mainly on the type of real-time analysis and the data volume involved.
From the standpoint of the real-time analysis system, a good foundation includes:
- A message broker, which buffers the records.
- A real-time data processing engine, which runs the analysis and triggers actions or produces results. Examples include Spark Structured Streaming, Flink and Storm, all of which still have active releases in 2026 (Apache Storm, for instance, released version 3.0).
In short, with tools that cover these two pieces, a clear view of the analysis needed and the tools the organization already has (data movement, visualization and so on), it is possible to build a solid real-time analytics solution.
Gustavo Gabrielli