st - demystifying complext event processing
DESCRIPTION
TRANSCRIPT
Demystifying Complex Event Processing*
Demystifying Complex Event Processing*
Edson Tirelli
CEP Lead Designer
Red Hat Inc
Demystifying Complex Event Processing*
Edson [email protected]
*a.k.a. CEP crash course for BR technologists
[email protected] CEP DesignerJBoss, a Division of Red Hat
Demystifying Complex Event Processing*
*a.k.a. CEP crash course for BR technologists
“An event is an observable occurrence“An event in the Unified Modeling Language is a
notable occurrence at a particular
Terminology: Event
“Anything that happens,happening.”
“An object that represents,event, generally for theprocessing”
http://complexevents.com
observable occurrence.”“An event in the Unified Modeling Language is a
at a particular point in time.”http://www.wikipedia.org
Terminology: Event
, or is contemplated as
represents, encodes or records anthe purpose of computer
http://complexevents.com
Rules Fest – October 2010 – © Edson Tirelli 3
For the scope of this presentation:
“An event is a significant
Terminology: Event
“An event is a significantstate at a particular
For the scope of this presentation:
significant change of
Terminology: Event
significant change of at a particular point in time ”
Rules Fest – October 2010 – © Edson Tirelli 4
“Complex Event , is an abstraction of other events called its members.”
o Examples:o The 1929 stock market crash –
thousands of member events, including individual stock trades)
Terminology: Complex Event
thousands of member events, including individual stock trades)
o The 2004 Indonesian Tsunami –events
o A completed stock purchase -an abstraction of the events in a transaction to purchase the stock
o A successful on- line shopping cart checkout shopping cart events on an on-line website
� Source: http://complexevents.com
, is an abstraction of other events
an abstraction denoting many member events, including individual stock trades)
Terminology: Complex Event
member events, including individual stock trades)
– an abstraction of many natural
an abstraction of the events in a
line shopping cart checkout – an abstraction of line website
http://complexevents.com
Rules Fest – October 2010 – © Edson Tirelli 5
“Complex Event Processingan event processing concept that deals with the task of processing multiple events with the goal of identifying the meaningful eventsevent cloud.
Terminology: CEP
CEP employs techniques such as complex patterns of many events, event correlation and abstractionand relationships between events such as causality, membership, and timing, and eventdriven processes.”
Complex Event Processing , or CEP, is primarily an event processing concept that deals with the task of processing multiple events with the goal
identifying the meaningful events within the
Terminology: CEP
employs techniques such as detection of complex patterns of many events, event
abstraction , event hierarchies, and relationships between events such as causality, membership, and timing, and event-
-- wikipediaRules Fest – October 2010 – © Edson Tirelli 6
o Examples:o Fraud detection (credit cards, social security, banks, telecom
carriers, etc)
o Logistics Real-Time Awareness solution
o Neonatal ICU: infant vital signs monitoring
o BAM (Business Activity Monitoring)
Terminology: CEP
o Risk Assessment
o Rating (telecom, traffic)
o Traffic flow control
o RFID monitoring (products in stores, bags in airports, etc)
o …
Fraud detection (credit cards, social security, banks, telecom
Time Awareness solution
Neonatal ICU: infant vital signs monitoring
BAM (Business Activity Monitoring)
CEP
RFID monitoring (products in stores, bags in airports, etc)
Rules Fest – October 2010 – © Edson Tirelli 7
Complex Event ProcessingStream Processing , or ESP, are two technologies that were born separate, but converged.
Terminology: CEP
An oversimplification: at their origins...� Event Stream Processing focused on the ability to
process high volume streams� Complex Event Processing
detecting and processing the events.
Complex Event Processing , or CEP, and Event , or ESP, are two
technologies that were born separate, but
Terminology: CEP vs ESP
: at their origins...focused on the ability to
streams of events.Complex Event Processing focused on defining, detecting and processing the relationships among
Rules Fest – October 2010 – © Edson Tirelli 8
“Event Driven Architecture (EDA) pattern promoting the productionand reaction to events. An eventsignificant change in state"[1]. For example, when a consumer purchases a car, the car's state changes from "for sale" to "sold". A car dealer's system architecture may treat this state change as an event to be produced, published,
Terminology: EDA
this state change as an event to be produced, published, detected and consumed by various applications within the architecture.”
http://en.wikipedia.org/wiki/Event_Driven_Architecture
Event Driven Architecture (EDA) is a software architecture production, detection, consumption of,
event can be defined as "a significant change in state"[1]. For example, when a consumer purchases a car, the car's state changes from "for sale" to "sold". A car dealer's system architecture may treat this state change as an event to be produced, published,
Terminology: EDA
this state change as an event to be produced, published, detected and consumed by various applications within the
http://en.wikipedia.org/wiki/Event_Driven_Architecture
Rules Fest – October 2010 – © Edson Tirelli 9
EDA vs CEP
CEP is a component
Source: http://elementallinks.typepad.com/.shared/image.html?/photos/uncategorized/simple_event_flow.gif
component of the EDA
Source: http://elementallinks.typepad.com/.shared/image.html?/photos/uncategorized/simple_event_flow.gif
Rules Fest – October 2010 – © Edson Tirelli 10
EDA vs SOA
o EDA is not SOA 2.0
o Complementary architectureso Metaphor*
o In our body: o SOA is used to build our o EDA is used to build our
* I read this metaphor somewhere, but unfortunately I can’t remember the author
SOA is used to build our muscles and organsEDA is used to build our sensory system
* I read this metaphor somewhere, but unfortunately I can’t remember the author
Rules Fest – October 2010 – © Edson Tirelli 11
EDA vs SOA
Source: http://soa-eda.blogspot.com/2006/11/howeda.blogspot.com/2006/11/how-eda-extends-soa-and-why-it-is.html
Rules Fest – October 2010 – © Edson Tirelli 12
CEP Requirements
• Event Detection:• From an event cloud or set of streams
meaningful events, and only them.
• [Temporal] Event Correlation:• Ability to correlate events declaring both
non-temporal constraints between them.non-temporal constraints between them.• Ability to reason over event
• Event Abstraction:• Ability to compose complex events from atomic events
AND reason over them.
CEP Requirements
set of streams , select all the meaningful events, and only them.
[Temporal] Event Correlation:events declaring both temporal and
between them.between them.Ability to reason over event aggregation.
complex events from atomic events
Rules Fest – October 2010 – © Edson Tirelli 13
Event Semantics from a BR
o An event is a fact with a few special characteristics:o Usually immutable, not necessarily enforced
“All events are facts, but not all facts are events.”“All events are facts, but not all facts are events.”
o Usually immutable, not necessarily enforcedo Strong temporal relationshipso Lifecycle may be managed o Allows the use of sliding windows
Event Semantics from a BR PoV
is a fact with a few special characteristics:, not necessarily enforced
, but not all facts are events.”, but not all facts are events.”
, not necessarily enforcedrelationships
sliding windows
Rules Fest – October 2010 – © Edson Tirelli 14
Complex Event Processing
o A few characteristics of common CEP scenarios:o Huge volume of events, but only a o Usually events are immutableo Usually queries/rules have to run in o Strong temporal relationshipso Individual events are usually o The composition and aggregation
Complex Event Processing
A few characteristics of common CEP scenarios:of events, but only a few of real interest
immutableUsually queries/rules have to run in reactive mode
temporal relationships between eventsevents are usually not important
aggregation of events is important
Rules Fest – October 2010 – © Edson Tirelli 15
CEP Market PlayersCEP Market Players
Source: Paul Vincent http://tibcoblogs.com/cep
Rules Fest – October 2010 – © Edson Tirelli 16
Q&A
o To know more:o Complex Events:
o http://www.complexevents.com/o Drools Documentation:
o http://www.jboss.org/drools/documentation.html
Edson [email protected] CEP DesignerJBoss, a Division of Red Hat
http://www.complexevents.com/
http://www.jboss.org/drools/documentation.html