Outline Introduction Problem Statement Model Example Conclusions and Future Works
A Model for Continuous Query Latencies in Data Streams
- R. Baldoni◦
- G. Di Luna◦
- D. Firmani◦
- G. Lodi◦
- Sapienza, University of Rome
September 19, 2011
1/17
A Model for Continuous Query Latencies in Data Streams R. Baldoni - - PowerPoint PPT Presentation
Outline Introduction Problem Statement Model Example Conclusions and Future Works A Model for Continuous Query Latencies in Data Streams R. Baldoni G. Di Luna D. Firmani G. Lodi Sapienza, University of Rome September 19,
Outline Introduction Problem Statement Model Example Conclusions and Future Works
1/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
2/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
◮ Mostly static data, ad-hoc one-time queries ◮ Fire the queries at the data, return result sets
◮ Mostly transient data, continuous queries ◮ Fire the data at the queries, incrementally update result
3/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
4/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
5/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
6/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
7/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
◮ a relational operator (e.g., Esper); ◮ any user-defined operator (e.g., Spade).
◮ V contains all the EPU nodes needed for the computation; ◮ in E there exists an edge (v, u) iff there exists an EPU v ∈ V
8/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
producer u1 market data stream time based u2 ticks per sec event based consumer u3 detect fall-off
EPU
u1 String symbol; FeedEnum feed; double bidPrice; double askPrice; u2 insert into TicksPerSecond select feed, count(∗) as cnt from MarketDataEvent.win:time batch(1 second) group by feed u3 select feed, avg(cnt) as avgCnt, cnt as feedCnt from TicksPerSecond.win:time(10 seconds) group by feed having cnt < avg(cnt) ∗ 0.75
9/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
t Output Latency Activity Latency Reactivity Latency stream #1 cons. stream #2 consumption
10/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
11/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
u v w input set input set
set
set silence out silence in
u v input set input set
set
set σu(v) AL(v) OL(v) AL(v) − n(u)
ρ(u)
12/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
13/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
14/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
TCP syn syn-ack rst rst-ack ack Ho-patternT Ho-patternB Ho-patternA Ho-patternO Cp-pattern Hu-patternT Hu-patternO groupby count UDO User Defined Operator count groupby pattern producer consumer filter
15/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
16/17
Outline Introduction Problem Statement Model Example Conclusions and Future Works
17/17