Unit 4 Streaming Data
Unit 4 Streaming Data
Example Workflow:
1. Periodic Query
Definition: A periodic query is executed at fixed intervals (e.g.,
every minute, hour, or day) to retrieve or process data.
How It Works:
o The query runs repeatedly on a schedule.
o Each execution processes a snapshot of the data available
at that moment.
Use Cases:
o Batch processing systems (e.g., daily reports).
o Systems where real-time updates are not critical.
o Monitoring systems that don't require instant feedback.
Advantages:
o Simpler to implement and manage.
o Reduces computational overhead compared to continuous
processing.
o Suitable for historical or aggregated data analysis.
Disadvantages:
o Delayed insights due to the interval-based nature.
o May miss real-time events or changes between intervals.
Example:
o A daily sales report generated at midnight.
o Checking server logs every 5 minutes for errors.
2. Continuous Query
Key Differences