paul vincent, tibco software – a cep company · pdf filecomplex event processing cloud...
TRANSCRIPT
Rules Fest 2010
Software Practices and Experiences -of Rules -in CEP Applications
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
in CEP Applications
Paul Vincent, TIBCO Software – a CEP Company
� Typical roles for CEP
� The motivation for rules, and types of rules used
� Rule execution vs latency, throughput and reliability
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
2
� Customer use cases and design patterns
Complex Event Processing
Cloud of EventsCustomer
Logon
Base RateIncrease
PipeThroughput
Dips 2% Contract Initiated
SubstationEfficiency dips
0.2%
Service complaint@ 94041
ContractReturnedthru EDIDemand
Increases0.8%
Mobile Callfrom [email protected]
ItalyWorld Cup match
@14.00
Continuous
For automated and manual processes
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
3
FullOperational
View of Events
Continuous
Across events and context
processes
Low latency + high
throughput
Real-time analytics
Patterns, Decisions,
Actions
Energy• Predictive energy usage / energy
event processing• Smart Grid Initiatives• Transmission, Outage Intelligence
Fault Management
CEP Application Areas
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
4
Finance
• Credit derivative trades. Used for real-time workflow and trade matching
• Visualize market data, order executions• Fraud / Intrusion Detection• Track and Trace for Trades / Deals /
Settlements and Pre / Post trade exceptions
Logistics
• Optimization of shipping movements to obtain greater efficiencies and reduce fuel costs
• Real-time tracking of cargo, packages border crossing manifests
• Revenue management, baggage handling in airlines
CEP Application Areas
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
5
Adaptive Marketing
• Capture opportunity with customer while “window” is open
• Ability to learn from successful/failures of campaign in progress to fine tune the offer
Government• Track and Analyze ‘patterns’ that are
very difficult to detect• Real-time tracking of people, places
and things• Capacity planning
CEP Application Areas
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
6
Telco
• Track missing events, SLA violations, re-sequence out-of-order events according to context
• Identify under-performing business systems to ensure service levels can be met and enhanced
• Location-based services for targeted campaigns
Role of CEP in Business
“Operational Intelligence”
Faster, better responses to (decisions in)
business situations
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
7
Delivering
events
Middleware
Persistence
& States
Analysing
Events
Data
Analytics
Pattern
detection
Viewing
Events
Historic
data
Real-time
Making
Decisions
Decision
Management
CEP Functional Areas vs Technology Areas
events
CEP Functional
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
8
Pattern Detection
Event & State store
DecisionsProcessesand Views
Functional Areas
“Complex Event
Processing”(aka CEP, ESP)
“Decision Management”(aka business rules, BRMS)
“Real-timeDashboards”(aka real-time
BI, BAM)
“Straight Thru Processing”(aka real-time
BPM, XTP)
� Typical roles for CEP
� The motivation for rules, and types of rules used
� Rule execution vs latency, throughput and reliability
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
9
� Customer use cases and design patterns
CEP Technology Areas vs Rules
events
CEP Functional
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
10
Pattern Detection
Event & State store
DecisionsProcessesand Views
Functional Areas
“Complex Event
Processing”(aka CEP, ESP)
“Decision Management”(aka business rules, BRMS)
Rule Technologies
events
Compare event-to-data
ECA rules
Compare event-to-event or data
Compare event-to-data
State Machine / Model
Compare event-to-event or data
Temporal Regular
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
11
Pattern Detection
Event & State store
DecisionsProcessesand Views
Event patterns, groups,
ordered, filters,joins...
event-to-event or data
Event-Enabled Production rules
Compare event-to-events or data
ContinuousQueries
Temporal Regular Expression
CEP Technology Areas vs Rules
eventsGraphical decisions
Decision Models
If-Then decisions
Decision Rules
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
12
Pattern Detection
Event & State store
DecisionsProcessesand Views
“Decision Management”(aka business rules, BRMS)
Analytics-based
Executable Models
� Typical roles for CEP
� The motivation for rules, and types of rules used
� Rule execution vs latency, throughput and reliability
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
13
� Customer use cases and design patterns
CEP Rule Goals
events
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
14
Pattern Detection
Event & State store
DecisionsProcessesand Views
Minimise: Time from input - to - outputMaximise: Quantity of events, patterns, outputsScalability: Handle quantities across distributed systemsReliability: Handle failover for components
GO
AL
S
Example Rule Types
� Basic: Condition-Action
� Triggers: Event-Condition-Action
� Timers/schedulers: TimeUp-Action, TimeInterval-Action
� Event lifecycle: TimeToDie-Action
� State transition: Event-StateChange, Timeout-
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
15
� State transition: Event-StateChange, Timeout-StateChange, StateEntry-Action, StateExit-Action
� Typical roles for CEP
� The motivation for rules, and types of rules used
� Rule execution vs latency, throughput and reliability
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
16
� Customer use cases and design patterns
Summary
� CEP involvesevent pattern matching
� Rules used for pattern matching and decisions on the resulting patterns
� Highly successful model
© 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.
17
� Highly successful model
� Resources:www.ep-ts.comwww.tibcoblogs.com/cep
ComplexEvent
Processing