streaminsight breakthrough

26
MICROSOFT STREAMINSIGHT Breakthrough Guide Yulian Slobodyan L’viv, 2011

Upload: yulian-slobodyan

Post on 20-May-2015

143 views

Category:

Technology


3 download

DESCRIPTION

Unobtrusive introduction to basic Complex Event Processing principles and building blocks. Review of the Microsoft StreamInsight.

TRANSCRIPT

Page 1: StreamInsight Breakthrough

MICROSOFT STREAMINSIGHT

Breakthrough GuideYulian SlobodyanL’viv, 2011

Page 2: StreamInsight Breakthrough

Introduction to CEP

Page 3: StreamInsight Breakthrough

recap(Strategic, Tactical)

tacticalstrategic

Page 4: StreamInsight Breakthrough

scenarioA

Tokyo Metro

東京メトロ Tōkyō Metoro

Page 5: StreamInsight Breakthrough

scenarioA.Info

Anno 1927 #1 annual passenger rides 3,160,000,000

passengers/year avg 6,330,000

passengers/day 24/7 mode 203.4 km system length 2009 profit

¥63,500,000,000

Page 6: StreamInsight Breakthrough

scenarioA.Issues.Take(1)

Pushers 押し屋 oshiya

Page 7: StreamInsight Breakthrough

scenarioA.Strategic

Reporting Planning Data Mining Constraints

Detection Forecasting

Page 8: StreamInsight Breakthrough

scenarioA.Tactical

Real-time Statistics & Monitoring

On a Fly Analysis Traffic

Optimization Systems

Management Emergency

Response

Page 9: StreamInsight Breakthrough

scenarioA.Solutions[“RDBMS”]

RDBMS

Presentation

Request

Data

tactical

strategic

Humans

Services

Sensors

Page 10: StreamInsight Breakthrough

scenarioA.Solutions[“CEP”]

CEP System

tactical

strategic

Humans

Services

Sensors

Presentation

Page 11: StreamInsight Breakthrough

Google(“CEP”)

Complex event processing (CEP) consists of processing many events happening across all the

layers of an organization identifying the most meaningful events within the

event cloud analyzing their impact taking subsequent action in real time.

CEP Products Sybase CEP, StreamBase

Microsoft StreamInsight

Page 12: StreamInsight Breakthrough

Compare(RDBMS, CEP)

RDBMS CEPRequest Paradigm

On-Demand Continuous

Latency ~ sec * n ~ ms * n

Throughput ~ 100 * n/sec ~ 10,000 * n/sec

Page 13: StreamInsight Breakthrough

Microsoft StreamInsight

Page 14: StreamInsight Breakthrough

StreamInsight.Info

CEP engine from Microsoft Part of MS SQL Server 2008/2008R2

Distributive Uses SQL Server license key to activate Two Editions:

Standard ( SQL Server Standard/Enterprise/Web)

Premium ( SQL Server Datacenter/Developer/Eval)

Current version: 1.1

Page 15: StreamInsight Breakthrough

StreamInsight.Architecture

Page 16: StreamInsight Breakthrough
Page 17: StreamInsight Breakthrough

StreamInsight.EventStream.Trace()

Event Source

Input Adapt

er

Standing

Queries

Output Adapt

er

Event Sink

Stream Insight Runtime

Page 18: StreamInsight Breakthrough

StreamInsight.Event.Structure

Even

tHead

er

Paylo

ad

Event KindTimestamp

Data

Event Model

Page 19: StreamInsight Breakthrough

StreamInsight.EventKind

time

Average

- INSERT event

- CTI (Current Time Increment) event

Average

Page 20: StreamInsight Breakthrough

StreamInsight.EventModel

Point “10:42:56.052 - item #123 passed the gate”

Interval “01:12:00-01:35:00 - active sensor #17”

Edge “12:00:00-∞ - temperature 17˚C” “13:00:00-∞ - temperature 18.5˚C”

Page 21: StreamInsight Breakthrough

StreamInsight.EventModel.Edge

time

paylo

ad

A

B

C

Page 22: StreamInsight Breakthrough

StreamInsight.InputAdapters

Page 23: StreamInsight Breakthrough

StreamInsight.OutputAdapters

Page 24: StreamInsight Breakthrough

StreamInsight.Queries

Standard LINQ operations Projection Filtering Joins Unions Grouping

Event Windows

Page 25: StreamInsight Breakthrough

StreamInsight.EventWindows

Page 26: StreamInsight Breakthrough

StreamInsight.EventWindows