SlideShare a Scribd company logo
EVENT DRIVEN
ARCHITECTURE
VINOD WILSON – ARCHITECT – CRESTRON ELECTRONICS
WHAT IS IN AN EVENT?
An event is a notable thing that happens inside or outside
your business. An event (business or system) may signify a
problem or impending problem, an opportunity, a
threshold, or a deviation.
SPECIFICATION AND OCCURRENCE
The term event is often used interchangeably to refer to both the specification (definition) of the event,
and each individual occurrence (instance) of the event.
WHAT IS IN AN EVENT?
1. Event specification ID
2. Event Type
3. Event Name
4. Event Timestamp
5. Event Occurrence Number
6. Event Creator
HeaderBody
EVENT TYPES
• ORDINARY EVENT
• Example: Regular Temperature information
• NOTABLE EVENT
• Example: Temperature reaching above the threshold limit of 40 degrees
EVENT PROCESSING STYLES
• SIMPLE EVENT PROCESSING
• In simple event processing, a notable event happens, initiating downstream action(s)
• STREAM EVENT PROCESSING
• In stream event processing, both ordinary and notable events happen
• COMPLEX EVENT PROCESSING
• Complex event processing (CEP) deals with evaluating a confluence of events and then taking action
• The events (notable or ordinary) may cross event types and occur over a long period of time.
• CEP requires the employment of sophisticated event interpreters, event pattern definition and
matching, and correlation techniques
• CEP is commonly used to detect and respond to business anomalies, threats, and opportunities.
EVENT GENERATORS
Every event is generated from a source
Sources
1. Application
2. Data Store
3. Service
4. Business process
5. Transmitter
6. Sensor
7. Collaboration
Tool
EVENT PREPROCESSOR
• The processor can act as ROUTER or FILTER
• An ordinary event may be evaluated for notability by an event preprocessor (router, filter), resulting in
the generation of a new notable event.
EVENT CHANNEL
• The event channel, typically a messaging backbone, transports standard formatted events between
event generators, event processing engines, and downstream subscribers.
EVENT PROCESSING
• In the event processing layer, upon receipt, events are
evaluated against event processing rules, and actions
are initiated
• The event processing rules and actions are defined in
accordance to the needs of the interested parties, not
of the event generators.
ACTIONS
1. PUBLISH
2. NOTIFY
3. INVOKE SERVICE
4. START BUSINESS
PROCESS
5. CAPTURE
6. GENERATE EVENT
publishing the event
out to a subscription
hub
Directly notifying
humans or systems
EVENT REACTIONS
• Reactions to an event
Reactions
1. Automated
application
responses
2. Automated
notifications
sent to either
applications or
people
3. Human
reactions
MESSAGE FLOW
EVENT STREAM PROCESSING
• Event stream processing involves event processors receiving a number of signals from event producers
(via the event listeners) but only reacting when certain criteria are met
COMPLEX EVENT PROCESSING - REVERSING
• Determine event sequence that created the desired event
• CEP == AI (Artificial Intelligence)
EDA
• sensitive, responsive, and teachable
LOOSE COUPLING
• Loose coupling is the measurement of two fundamentals
• Preconception
• The amount of knowledge, prejudice, or fixed idea that a piece of software has about another piece of software
• Maintainability (Changeability)
• The level of rework required by all participants when one integrated component changes
ADAPTERS
EVENT FLOW
THE AGILITY CYCLE
SITUATION
• A situation is an event occurrence that might require a reaction
• One of the main themes in event processing is the detection and reporting of situations so that they can
be reacted to
EXAMPLE OF EVENT PROCESSING
Event
Generator
Event
Generator
Event
Generator
Event
Processor
Event 1
Event 2
Event 3
If certain
combinations are
measurements
are detected,
then raise alert
ABSENCE PATTERN OR NON-EVENT
• The fact that an event did not occur is one of the most common event processing patterns, called the
absence pattern
CATEGORIES OF EVENT PROCESSING APPLICATIONS
EVENT PROCESSING AND ITS RELATIONSHIP TO THE
REAL WORLD
• Deterministic— There is an exact mapping between a situation in the real world and its representation
in the event processing system.
• Approximate— The event processing system provides an approximation to real world events.
STATELESS EVENT PROCESSING
• An event processing agent is said to be stateless if the way it processes one event does not influence
the way it processes any subsequent events
• Filtering, routing and logging are all examples of stateless event processing
STATEFUL EVENT PROCESSING
• An event processing agent is said to be stateful if the way it processes events is influenced by more than
one input event
• An incoming event may be split into multiple events, each containing a subset of the information from
the original event
• A stream of multiple incoming events may be aggregated to produce a stream of derived events. The
derived events are typically computed from more than one event from the input stream
• Two streams of incoming events may be composed to produce a stream of derived events
EVENTS AND MESSAGES
• The difference here is that the event is the entity that records information about the event occurrence,
whereas the message is the mechanism used to exchange that information
WHAT IS AN EVENT STREAM?
• An event stream (or stream) is a set of associated events. It is often a temporally totally ordered set
(that is to say, there is a well-defined timestamp-based order to the events in the stream)
• Homogeneous event stream
• A stream in which all the events must be of the same type
• Heterogeneous event stream
• A stream in which the events may be of different types
• The stream concept can be particularly useful in applications that involve time series events, such as the
periodic reading of a sensor or periodic quotes of a stock price
WINDOW
• Stateful agents can be defined so that they operate only on subsets of the input events that they
receive
• In stream processing terminology, such a subset is often referred to as a window into the stream
SEVEN FUNDAMENTAL BUILDING BLOCKS OF EVENT
PROCESSING
EVENT PROCESSING AGENTS
CHANNEL-BASED EVENT DISTRIBUTION
• It could be an intermediary service or other piece of software (sometimes called a broker).
• It could be implemented using a multicast protocol, such as IP Multicast.
• It could be implemented using message-oriented middleware (MOM), such as a Java Message
Service (JMS) provider.
AN EVENT TYPE SHOULD ANSWER
• What happened?
• When did it happen?
• What other information is associated with this happening?
LOGICAL STRUCTURE OF AN EVENT INSTANCE
HEADER ATTRIBUTES
• Attributes whose values are generally set by the application: occurrence time, event certainty, and
event annotation
• Attributes whose values can be system generated: event identity, detection time, and event source
Thank you

More Related Content

PDF
Event-Driven Architecture (EDA)
PDF
[WSO2Con Asia 2018] Building Reactive Applications Using Event-driven Archite...
PPTX
Event Driven Architectures
PDF
Building Event Driven Systems
PDF
Introduction to Event Driven Architecture
PPT
CEP and SOA: An Open Event-Driven Architecture for Risk Management
PPTX
Event driven architecture
PPTX
Event-driven architecture
Event-Driven Architecture (EDA)
[WSO2Con Asia 2018] Building Reactive Applications Using Event-driven Archite...
Event Driven Architectures
Building Event Driven Systems
Introduction to Event Driven Architecture
CEP and SOA: An Open Event-Driven Architecture for Risk Management
Event driven architecture
Event-driven architecture

What's hot (20)

PDF
Workflows via Event driven architecture
PDF
Event Driven Architecture
KEY
Event Driven Architecture
PPTX
Javascript Today
PDF
WSO2Con ASIA 2016: Event Driven Architecture: Managing Business Dynamics for ...
PDF
Bright talk mapping the right aut solution for you 2014 final (1)
PDF
apidays LIVE Australia 2020 - Building an Enterprise Eventing Platform by Gna...
PDF
Open Standards Enabling Digital Transformation
PDF
Data reply sneak peek: real time decision engines
PDF
Five Trends in Real Time Applications
PPTX
The Impact of Messaging Standards on Event-Driven Architecture and IoT
PPTX
Eda on the azure services platform
PDF
Migrating workloads to OpenStack
PPTX
High volume real time contiguous etl and audit
PPTX
Accelerate DevOps/Microservices and Kubernetes
PPTX
Global Azure Bootcamp 2017 - Performance and Health Management for Modern App...
PDF
Enterprise Integration in Cloud Native Microservices Architectures
PPTX
Unlocking the Power of Salesforce Integrations with Confluent
PDF
IoT Dynatrace
PDF
Google Cloud and Confluent Streaming: Generating Real Value From Real Time | ...
Workflows via Event driven architecture
Event Driven Architecture
Event Driven Architecture
Javascript Today
WSO2Con ASIA 2016: Event Driven Architecture: Managing Business Dynamics for ...
Bright talk mapping the right aut solution for you 2014 final (1)
apidays LIVE Australia 2020 - Building an Enterprise Eventing Platform by Gna...
Open Standards Enabling Digital Transformation
Data reply sneak peek: real time decision engines
Five Trends in Real Time Applications
The Impact of Messaging Standards on Event-Driven Architecture and IoT
Eda on the azure services platform
Migrating workloads to OpenStack
High volume real time contiguous etl and audit
Accelerate DevOps/Microservices and Kubernetes
Global Azure Bootcamp 2017 - Performance and Health Management for Modern App...
Enterprise Integration in Cloud Native Microservices Architectures
Unlocking the Power of Salesforce Integrations with Confluent
IoT Dynatrace
Google Cloud and Confluent Streaming: Generating Real Value From Real Time | ...
Ad

Similar to Event driven architecture (20)

PPT
OpherEtzion Wed-PM.ppt
PPT
Proposed Event Processing Definitions ,September 20, 2006
PDF
Semantic Complex Event Processing
PPT
Vldb 2010 event processing tutorial
PPT
Aaai 2011 event processing tutorial
PDF
Event Stream Processing SAP
PPT
Open Source Event Processing for Sensor Fusion Applications
PPT
Complex Event Processing
PPTX
Event semantics and model - multimedia events workshop
PDF
Stream Processing and Complex Event Processing together with Kafka, Flink and...
PDF
Applying CEP Drools Fusion - Drools jBPM Bootcamps 2011
PDF
Reaction RuleML 1.0
PPT
Mythbusters: Event Stream Processing v. Complex Event Processing
PPTX
ER 2013 tutorial: modeling the event driven world
PDF
Designing Events-first Microservices
PDF
st - demystifying complext event processing
PDF
Event Processing For Dummies
PPT
Processing Patterns for Predictive Business
PDF
Designing Events-First Microservices
KEY
Event Processing Overview
OpherEtzion Wed-PM.ppt
Proposed Event Processing Definitions ,September 20, 2006
Semantic Complex Event Processing
Vldb 2010 event processing tutorial
Aaai 2011 event processing tutorial
Event Stream Processing SAP
Open Source Event Processing for Sensor Fusion Applications
Complex Event Processing
Event semantics and model - multimedia events workshop
Stream Processing and Complex Event Processing together with Kafka, Flink and...
Applying CEP Drools Fusion - Drools jBPM Bootcamps 2011
Reaction RuleML 1.0
Mythbusters: Event Stream Processing v. Complex Event Processing
ER 2013 tutorial: modeling the event driven world
Designing Events-first Microservices
st - demystifying complext event processing
Event Processing For Dummies
Processing Patterns for Predictive Business
Designing Events-First Microservices
Event Processing Overview
Ad

More from Vinod Wilson (15)

PPTX
Representational state transfer (rest) architectural style1.1
PPTX
UI Design - Organizing the page
PPTX
Service oriented architecture introduction
PPTX
Togaf – models for phase A
PPTX
The components of togaf architecture
PPTX
Togaf – architecture development method (adm)
PPTX
Togaf 9 introduction
PPTX
Ssas mdx language
PPTX
D3 data visualization
PPTX
Unit testing
PPTX
Domain driven design simplified
PPTX
Data partitioning
PPTX
Developing saas application in azure
PPTX
Iot cloud service v2.0
PPTX
IoT mobile app device cloud identity and security architecture
Representational state transfer (rest) architectural style1.1
UI Design - Organizing the page
Service oriented architecture introduction
Togaf – models for phase A
The components of togaf architecture
Togaf – architecture development method (adm)
Togaf 9 introduction
Ssas mdx language
D3 data visualization
Unit testing
Domain driven design simplified
Data partitioning
Developing saas application in azure
Iot cloud service v2.0
IoT mobile app device cloud identity and security architecture

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Electronic commerce courselecture one. Pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPT
Teaching material agriculture food technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Approach and Philosophy of On baking technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
KodekX | Application Modernization Development
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Cloud computing and distributed systems.
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectral efficient network and resource selection model in 5G networks
Electronic commerce courselecture one. Pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Teaching material agriculture food technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
NewMind AI Weekly Chronicles - August'25 Week I
Machine learning based COVID-19 study performance prediction
Understanding_Digital_Forensics_Presentation.pptx
Network Security Unit 5.pdf for BCA BBA.
Encapsulation_ Review paper, used for researhc scholars
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Approach and Philosophy of On baking technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
KodekX | Application Modernization Development
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Cloud computing and distributed systems.
Diabetes mellitus diagnosis method based random forest with bat algorithm
Empathic Computing: Creating Shared Understanding
Digital-Transformation-Roadmap-for-Companies.pptx

Event driven architecture

  • 1. EVENT DRIVEN ARCHITECTURE VINOD WILSON – ARCHITECT – CRESTRON ELECTRONICS
  • 2. WHAT IS IN AN EVENT? An event is a notable thing that happens inside or outside your business. An event (business or system) may signify a problem or impending problem, an opportunity, a threshold, or a deviation.
  • 3. SPECIFICATION AND OCCURRENCE The term event is often used interchangeably to refer to both the specification (definition) of the event, and each individual occurrence (instance) of the event.
  • 4. WHAT IS IN AN EVENT? 1. Event specification ID 2. Event Type 3. Event Name 4. Event Timestamp 5. Event Occurrence Number 6. Event Creator HeaderBody
  • 5. EVENT TYPES • ORDINARY EVENT • Example: Regular Temperature information • NOTABLE EVENT • Example: Temperature reaching above the threshold limit of 40 degrees
  • 6. EVENT PROCESSING STYLES • SIMPLE EVENT PROCESSING • In simple event processing, a notable event happens, initiating downstream action(s) • STREAM EVENT PROCESSING • In stream event processing, both ordinary and notable events happen • COMPLEX EVENT PROCESSING • Complex event processing (CEP) deals with evaluating a confluence of events and then taking action • The events (notable or ordinary) may cross event types and occur over a long period of time. • CEP requires the employment of sophisticated event interpreters, event pattern definition and matching, and correlation techniques • CEP is commonly used to detect and respond to business anomalies, threats, and opportunities.
  • 7. EVENT GENERATORS Every event is generated from a source Sources 1. Application 2. Data Store 3. Service 4. Business process 5. Transmitter 6. Sensor 7. Collaboration Tool
  • 8. EVENT PREPROCESSOR • The processor can act as ROUTER or FILTER • An ordinary event may be evaluated for notability by an event preprocessor (router, filter), resulting in the generation of a new notable event.
  • 9. EVENT CHANNEL • The event channel, typically a messaging backbone, transports standard formatted events between event generators, event processing engines, and downstream subscribers.
  • 10. EVENT PROCESSING • In the event processing layer, upon receipt, events are evaluated against event processing rules, and actions are initiated • The event processing rules and actions are defined in accordance to the needs of the interested parties, not of the event generators. ACTIONS 1. PUBLISH 2. NOTIFY 3. INVOKE SERVICE 4. START BUSINESS PROCESS 5. CAPTURE 6. GENERATE EVENT publishing the event out to a subscription hub Directly notifying humans or systems
  • 11. EVENT REACTIONS • Reactions to an event Reactions 1. Automated application responses 2. Automated notifications sent to either applications or people 3. Human reactions
  • 13. EVENT STREAM PROCESSING • Event stream processing involves event processors receiving a number of signals from event producers (via the event listeners) but only reacting when certain criteria are met
  • 14. COMPLEX EVENT PROCESSING - REVERSING • Determine event sequence that created the desired event • CEP == AI (Artificial Intelligence)
  • 16. LOOSE COUPLING • Loose coupling is the measurement of two fundamentals • Preconception • The amount of knowledge, prejudice, or fixed idea that a piece of software has about another piece of software • Maintainability (Changeability) • The level of rework required by all participants when one integrated component changes
  • 20. SITUATION • A situation is an event occurrence that might require a reaction • One of the main themes in event processing is the detection and reporting of situations so that they can be reacted to
  • 21. EXAMPLE OF EVENT PROCESSING Event Generator Event Generator Event Generator Event Processor Event 1 Event 2 Event 3 If certain combinations are measurements are detected, then raise alert
  • 22. ABSENCE PATTERN OR NON-EVENT • The fact that an event did not occur is one of the most common event processing patterns, called the absence pattern
  • 23. CATEGORIES OF EVENT PROCESSING APPLICATIONS
  • 24. EVENT PROCESSING AND ITS RELATIONSHIP TO THE REAL WORLD • Deterministic— There is an exact mapping between a situation in the real world and its representation in the event processing system. • Approximate— The event processing system provides an approximation to real world events.
  • 25. STATELESS EVENT PROCESSING • An event processing agent is said to be stateless if the way it processes one event does not influence the way it processes any subsequent events • Filtering, routing and logging are all examples of stateless event processing
  • 26. STATEFUL EVENT PROCESSING • An event processing agent is said to be stateful if the way it processes events is influenced by more than one input event • An incoming event may be split into multiple events, each containing a subset of the information from the original event • A stream of multiple incoming events may be aggregated to produce a stream of derived events. The derived events are typically computed from more than one event from the input stream • Two streams of incoming events may be composed to produce a stream of derived events
  • 27. EVENTS AND MESSAGES • The difference here is that the event is the entity that records information about the event occurrence, whereas the message is the mechanism used to exchange that information
  • 28. WHAT IS AN EVENT STREAM? • An event stream (or stream) is a set of associated events. It is often a temporally totally ordered set (that is to say, there is a well-defined timestamp-based order to the events in the stream) • Homogeneous event stream • A stream in which all the events must be of the same type • Heterogeneous event stream • A stream in which the events may be of different types • The stream concept can be particularly useful in applications that involve time series events, such as the periodic reading of a sensor or periodic quotes of a stock price
  • 29. WINDOW • Stateful agents can be defined so that they operate only on subsets of the input events that they receive • In stream processing terminology, such a subset is often referred to as a window into the stream
  • 30. SEVEN FUNDAMENTAL BUILDING BLOCKS OF EVENT PROCESSING
  • 32. CHANNEL-BASED EVENT DISTRIBUTION • It could be an intermediary service or other piece of software (sometimes called a broker). • It could be implemented using a multicast protocol, such as IP Multicast. • It could be implemented using message-oriented middleware (MOM), such as a Java Message Service (JMS) provider.
  • 33. AN EVENT TYPE SHOULD ANSWER • What happened? • When did it happen? • What other information is associated with this happening?
  • 34. LOGICAL STRUCTURE OF AN EVENT INSTANCE
  • 35. HEADER ATTRIBUTES • Attributes whose values are generally set by the application: occurrence time, event certainty, and event annotation • Attributes whose values can be system generated: event identity, detection time, and event source