0% found this document useful (0 votes)
9 views5 pages

Stream Computing

Stream computing is a real-time data processing technique that handles continuous and unbounded data streams, allowing for immediate analysis and decision-making. Key components include data sources, stream processors, standing queries, and temporary storage, which work together to process data as it arrives. While stream computing offers advantages like fast decision-making and efficient big data handling, it also presents challenges such as complex system design and difficulties in managing erroneous data.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views5 pages

Stream Computing

Stream computing is a real-time data processing technique that handles continuous and unbounded data streams, allowing for immediate analysis and decision-making. Key components include data sources, stream processors, standing queries, and temporary storage, which work together to process data as it arrives. While stream computing offers advantages like fast decision-making and efficient big data handling, it also presents challenges such as complex system design and difficulties in managing erroneous data.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Stream Computing (Stream Processing)

1. Introduction

Stream computing is a method of processing continuous and unbounded data streams in


real time. Instead of storing data first and processing it later, the system processes the data
immediately as it arrives.

In modern applications such as social media, sensor networks, stock markets, and online
transactions, huge volumes of data are generated continuously. Stream computing allows
organizations to analyze this data instantly and make quick decisions.

📌 Exam Definition:
Stream computing is a data processing technique in which continuous streams of data are
processed in real time using stream processors and standing queries to generate
immediate results.

2. What is a Data Stream?


A data stream is a sequence of data elements that arrive continuously over time.

Examples of Data Streams

 Sensor data from IoT devices


 Online transaction records
 Network traffic logs
 Social media feeds
 Weather monitoring data

Example stream:

Temperature readings:
22°C → 23°C → 24°C → 25°C → 26°C …

The system must analyze each value immediately without waiting for the entire dataset.

3. Characteristics of Stream Computing


1. Continuous Data Processing

Data flows continuously into the system without interruption.

2. Real-Time Processing
Data is processed immediately after arrival, enabling instant insights.

3. Infinite Data Streams

Data streams are potentially unbounded, meaning they can continue indefinitely.

4. Low Latency

Results are generated with very small delay.

5. Limited Memory Usage

Since data arrives continuously, only a small portion of data is stored temporarily.

6. Automatic Query Execution

Queries called standing queries run continuously on incoming data.

4. Components of Stream Computing System


1. Data Sources

These are the systems that generate continuous data streams.

Examples:

 Sensors
 Mobile devices
 Web applications
 Financial systems
 Social media platforms

2. Data Stream

The data generated by sources flows as a continuous stream into the processing system.

Examples:

 Numbers
 Characters
 Binary data
 Sensor signals
3. Stream Processor

The stream processor is the core component that processes incoming data streams.

Functions performed by the stream processor include:

 Filtering unnecessary data


 Aggregating data values
 Transforming data formats
 Detecting patterns or events
 Performing calculations

The processor works in real time and continuously analyzes the incoming data.

4. Standing Queries

Standing queries are continuous queries that remain active in the system.

They automatically process new data as it arrives.

Examples:

 Detect temperature above 40°C


 Count number of transactions per minute
 Identify fraudulent transactions

Standing queries ensure continuous monitoring of data streams.

5. Temporary (Working) Storage

This is limited memory storage used during processing.

It stores:

 Intermediate results
 Temporary calculations
 Recent data elements

Because data streams are very large, the system cannot store all data permanently.

6. Archival Storage

Important processed data may be stored in long-term storage for future analysis.
Examples:

 Databases
 Data warehouses
 Distributed storage systems

7. Output Streams

After processing, the system generates output results such as:

 Alerts
 Reports
 Aggregated results
 Processed data streams

Example outputs:

 Fraud detection alert


 Traffic congestion warning
 Sensor failure notification

5. Working Process of Stream Computing


The working process occurs in the following steps:

1. Data is generated continuously from different sources.


2. The data enters the stream processing system.
3. The stream processor executes standing queries on incoming data.
4. Temporary data is stored in working storage during processing.
5. Important results may be stored in archival storage.
6. The system produces real-time output streams or alerts.

6. Advantages of Stream Computing


1. Real-Time Data Processing
Data is processed instantly.
2. Fast Decision Making
Organizations can react quickly to events.
3. Reduced Storage Requirements
No need to store all incoming data.
4. Efficient Handling of Big Data
Suitable for large-scale data streams.
5. Continuous Monitoring
Systems can monitor events continuously.

7. Disadvantages of Stream Computing


1. Complex system design
2. Requires high processing capability
3. Difficult to handle missing or incorrect data
4. Debugging and monitoring are challenging

8. Applications of Stream Computing


1. Financial Services

Used for fraud detection and stock market monitoring.

2. Sensor Networks and IoT

Monitoring environmental conditions and machine performance.

3. Social Media Analysis

Analyzing real-time user posts and trends.

4. Traffic Management

Monitoring road traffic and detecting congestion.

5. Network Monitoring

Detecting network intrusions and cyber attacks.

9. Conclusion
Stream computing is an important technique in Big Data Analytics that allows systems to
process continuous streams of data in real time. It helps organizations analyze large
volumes of data quickly and make timely decisions without storing all incoming data.

You might also like