SlideShare a Scribd company logo
Building Event Driven
Systems
Shiroshica Kulatilake
Solutions Architect
Setting Expectations
o Today’s Enterprise Systems and how events fit in
o What is Event Driven Architecture
o Patterns for building Event Driven Systems
o Summarize
Enterprise Systems & Events
Enterprises Today
o Distributed
- Functionality is broken down into several sub systems
- Located in multiple places
o Ubiquitous
- Based on parties interacting through different means
o Connected
- Built based on synergies
- Own as well as partner systems need to interact with each
other efficiently
Events in Enterprise Systems
o Occurrence within the context of interest
o A series of events depicting one event in the real world
- e.g. A customer placing an order in a retail system
o Not all events are of interest
o Most everyday events can be dealt in an asynchronous manner
o Occurrence of an situation (relevant event) requires something to
react to it - to move from one state to another
o For this events should be detected, situations filtered and
processes notified
o Leads to Event Driven Architecture
Event Driven Architecture
Evolution
o SOA
- Synchronous request response systems with asynchronous
message delivery
- Technically loosely coupled
- Functionally tightly coupled
- Mostly centralized
o Evolving into EDA
- Based on message driven model for information propagation
- Spatial and temporal decoupling
- Analogous to the operational model of an organisation where a
series of events take place
o Suited where
- Distributed environments
- Higher level of autonomy is needed at unit level
Main Components
o Event - significant happening which results in change of state from
a business perspective
o Event generator- publishes events
o Event processor- consumes events and decide what to do
o Event channel - medium where event lies before consumption
Principles
o Immediate information dissemination and reactive business
process execution
o Fire and forget - push based mechanism
o Single responsibility at practice
o Autonomous messages for the receiver to process
o Higher decoupling - no need to bind to contracts
o Logical decoupling of functional units - not dependent and less
impact from change
o Receiver driven flow control - more responsibility lies with receivers
o Near real time information consistency
Advantages
o Effective data integration
o Low latency of information
o High reactiveness
o More accurate responses
o High flexibility
o Higher business agility
Generic EDA Pattern
Event Mediator Pattern
http://radar.oreilly.com/2015/02/variations-in-event-driven-architecture.html
Event Mediator Pattern
o Need to orchestrate multiple steps
o Orchestration happens through a central mediator
o Multiple steps need to happen in a certain order
o Processing will be done by separate entities which need to be
invoked in many ways
o Fits scenarios which are complex, have some sort of orchestration
logic and approval tasks etc as well
Broker Pattern
http://radar.oreilly.com/2015/02/variations-in-event-driven-architecture.html
Broker Pattern
o Message flow is distributed across several processors with no
orchestration
o Fits for use cases where the flow is entirely dependent on event
receiving with no timing
o Once a processor is done with processing another event will be
fired to the broker which will be consumed by another processor
Components in an Event Driven System
o Process Engine
o Mediation Engine
o Message Broker
o Business Activity Monitor
o Complex Event Processor
o Business Rules Manager
Patterns in building Event Driven
Systems
Centralized Message Driven System
Sample Solution
Sample Extended Solution
Autonomous Message Driven System
Sample Solution
Sample Extended Solution
Request Rate Controlling
Guaranteed Delivery - Directly via Broker
Guaranteed Delivery - via Mediation Engine
Guaranteed Delivery - Fault Handling
Monitoring and Alerting
Keeping up with the trends
Internet of Things (IoT)
Internet of Things (IoT)
o There exists a plethora of devices which provide data in several
contexts
o This data needs to be captured in order to analyze and derive
intelligence and then take actions
o Point to point integration with each device is not a possibility
o Leads to the use of Event Driven Architecture through the use of
protocols which work on publish-subscribe mechanisms - e.g.
MQTT and also through handling large scale event analyzing
Internet of Things (IoT)
Microservices Architecture
Microservices Architecture
o Microservices promote distributed data management
o Data in microservices
- Are private to a specific microservice
- Use polygot persistence
- Might not expose generic APIs for all possible modes of use
o However, business transactions span multiple microservices
which would need accessing private data of other microservices
o Leads to the use of Event Driven Architecture where distributed
data management is handled through the use of events
o Variants are event tables, transaction log mining and event
sourcing which try to reduce errors relating to atomicity
Microservices Architecture
Reactive Architecture
Reactive Architecture
o To achieve being reactive, systems should be designed with
containment of functionality in mind so that scaling, isolation of
failures and adaptable fault tolerance happens
o Microservices Architecture can achieve this
o Also, for a system to be reactive it should be able to
- React to Load through scalability
- React to failure through recoverability
- React to user experience effectively
o The ability to react to events and act accordingly becomes the
main ingredient
o Leads to designing and building systems in an Event Driven
manner
Key take aways ...
Building Event Driven Systems
o What does your enterprise system look like ?
- Determine how complex or simple your system flows are
- Determine how autonomous your processing units are
- Determine how isolated your processing units should be
o What do you need to do with event processing ?
- Identify both functional as well as operational needs
o Which pattern would suit you best ?
- Select based on enterprise system characteristics and needs
o Which components do you need ?
- Identity which middleware components you need to achieve the
above
References
o Event Processing in Action - Opher Etzion and Peter Niblett -
Manning
o https://msdn.microsoft.com/en-us/library/dd129913.aspx
o Software Architecture Patterns - Mark Richards - Orielly
o http://radar.oreilly.com/2015/02/variations-in-event-driven-
architecture.html
o http://wso2.com/whitepapers/a-reference-architecture-for-the-
internet-of-things/
o https://www.nginx.com/blog/event-driven-data-management-
microservices/
CONTACT US !

More Related Content

PDF
Introduction to Event-Driven Architecture
KEY
Event Driven Architecture
PDF
Event Driven Architecture
PDF
Event-Driven Architecture (EDA)
PPTX
Event-driven architecture
PDF
Event-driven Architecture
PPTX
Introduction to microservices
PDF
Event Driven Architecture (EDA) Reference Architecture
Introduction to Event-Driven Architecture
Event Driven Architecture
Event Driven Architecture
Event-Driven Architecture (EDA)
Event-driven architecture
Event-driven Architecture
Introduction to microservices
Event Driven Architecture (EDA) Reference Architecture

What's hot (20)

PPSX
Event Sourcing & CQRS, Kafka, Rabbit MQ
PPTX
Elastic - ELK, Logstash & Kibana
PPTX
Event-driven microservices
KEY
Event Driven Architecture
PPTX
Event Driven Software Architecture Pattern
PDF
ES2015 / ES6: Basics of modern Javascript
PDF
Event Driven Architecture: Mistakes, I've made a few...
PPTX
Event driven architecture
PDF
Elasticsearch
PDF
Event Driven-Architecture from a Scalability perspective
PDF
Domain driven design and model driven development
PPTX
Microservices Part 3 Service Mesh and Kafka
PPTX
ReactJS presentation.pptx
PDF
Domain Driven Design
PDF
What Is ELK Stack | ELK Tutorial For Beginners | Elasticsearch Kibana | ELK S...
PDF
Microservices with Java, Spring Boot and Spring Cloud
PPTX
Micro services Architecture
PDF
Automate Your Kafka Cluster with Kubernetes Custom Resources
PDF
Event Sourcing, Stream Processing and Serverless (Benjamin Stopford, Confluen...
ODP
Testing RESTful Webservices using the REST-assured framework
Event Sourcing & CQRS, Kafka, Rabbit MQ
Elastic - ELK, Logstash & Kibana
Event-driven microservices
Event Driven Architecture
Event Driven Software Architecture Pattern
ES2015 / ES6: Basics of modern Javascript
Event Driven Architecture: Mistakes, I've made a few...
Event driven architecture
Elasticsearch
Event Driven-Architecture from a Scalability perspective
Domain driven design and model driven development
Microservices Part 3 Service Mesh and Kafka
ReactJS presentation.pptx
Domain Driven Design
What Is ELK Stack | ELK Tutorial For Beginners | Elasticsearch Kibana | ELK S...
Microservices with Java, Spring Boot and Spring Cloud
Micro services Architecture
Automate Your Kafka Cluster with Kubernetes Custom Resources
Event Sourcing, Stream Processing and Serverless (Benjamin Stopford, Confluen...
Testing RESTful Webservices using the REST-assured framework
Ad

Similar to Building Event Driven Systems (20)

PDF
Deconstructing Monoliths with Domain Driven Design
PDF
Intelligent Cloud Automation
PPTX
TechDays 2010 Portugal - Event Driven Architectures - 16x9
PDF
Introduction to Event Driven Architecture
PDF
An eventful tour from enterprise integration to serverless and functions
PPTX
Kochi mulesoft meetup 02
PDF
The Significant role of event driven apps in software development
PPTX
Eda on the azure services platform
PPT
Service Oriented Architecture
PDF
Data Microservices with Spring Cloud
PPTX
Taming the regulatory tiger with jwg and smartlogic
PPTX
Observability in serverless solutions
PDF
Saga transactions msa_ architecture
PDF
Unraveling the mystery how to predict application performance problems
PDF
JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...
PDF
Distributed Systems in Data Engineering
PDF
Stream Processing and Complex Event Processing together with Kafka, Flink and...
PPTX
L08 architecture considerations
PPT
Event Driven Architecture (EDA), November 2, 2006
PDF
Part 1 A Simple Introduction to Complex Event Processing
Deconstructing Monoliths with Domain Driven Design
Intelligent Cloud Automation
TechDays 2010 Portugal - Event Driven Architectures - 16x9
Introduction to Event Driven Architecture
An eventful tour from enterprise integration to serverless and functions
Kochi mulesoft meetup 02
The Significant role of event driven apps in software development
Eda on the azure services platform
Service Oriented Architecture
Data Microservices with Spring Cloud
Taming the regulatory tiger with jwg and smartlogic
Observability in serverless solutions
Saga transactions msa_ architecture
Unraveling the mystery how to predict application performance problems
JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...
Distributed Systems in Data Engineering
Stream Processing and Complex Event Processing together with Kafka, Flink and...
L08 architecture considerations
Event Driven Architecture (EDA), November 2, 2006
Part 1 A Simple Introduction to Complex Event Processing
Ad

More from WSO2 (20)

PDF
Demystifying CMS-0057-F - Compliance Made Seamless with WSO2
PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
PDF
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
PDF
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
PDF
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
PDF
Platformless Modernization with Choreo.pdf
PDF
Application Modernization with Choreo for the BFSI Sector
PDF
Choreo - The AI-Native Internal Developer Platform as a Service: Overview
PDF
[Roundtable] Choreo - The AI-Native Internal Developer Platform as a Service
PPTX
WSO2Con 2025 - Building AI Applications in the Enterprise (Part 1)
PPTX
WSO2Con 2025 - Building Secure Business Customer and Partner Experience (B2B)...
PPTX
WSO2Con 2025 - Building Secure Customer Experience Apps
PPTX
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
PPTX
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
PPTX
WSO2Con 2025 - Unified Management of Ingress and Egress Across Multiple API G...
PPTX
WSO2Con 2025 - How an Internal Developer Platform Lets Developers Focus on Code
PPTX
WSO2Con 2025 - Architecting Cloud-Native Applications
PDF
Mastering Intelligent Digital Experiences with Platformless Modernization
PDF
Accelerate Enterprise Software Engineering with Platformless
PDF
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
Demystifying CMS-0057-F - Compliance Made Seamless with WSO2
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
Platformless Modernization with Choreo.pdf
Application Modernization with Choreo for the BFSI Sector
Choreo - The AI-Native Internal Developer Platform as a Service: Overview
[Roundtable] Choreo - The AI-Native Internal Developer Platform as a Service
WSO2Con 2025 - Building AI Applications in the Enterprise (Part 1)
WSO2Con 2025 - Building Secure Business Customer and Partner Experience (B2B)...
WSO2Con 2025 - Building Secure Customer Experience Apps
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
WSO2Con 2025 - Unified Management of Ingress and Egress Across Multiple API G...
WSO2Con 2025 - How an Internal Developer Platform Lets Developers Focus on Code
WSO2Con 2025 - Architecting Cloud-Native Applications
Mastering Intelligent Digital Experiences with Platformless Modernization
Accelerate Enterprise Software Engineering with Platformless
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Modernizing your data center with Dell and AMD
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Approach and Philosophy of On baking technology
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The AUB Centre for AI in Media Proposal.docx
Modernizing your data center with Dell and AMD
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Monthly Chronicles - July 2025
Dropbox Q2 2025 Financial Results & Investor Presentation
Reach Out and Touch Someone: Haptics and Empathic Computing
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Approach and Philosophy of On baking technology
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Review of recent advances in non-invasive hemoglobin estimation
Unlocking AI with Model Context Protocol (MCP)
20250228 LYD VKU AI Blended-Learning.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Building Event Driven Systems

  • 1. Building Event Driven Systems Shiroshica Kulatilake Solutions Architect
  • 2. Setting Expectations o Today’s Enterprise Systems and how events fit in o What is Event Driven Architecture o Patterns for building Event Driven Systems o Summarize
  • 4. Enterprises Today o Distributed - Functionality is broken down into several sub systems - Located in multiple places o Ubiquitous - Based on parties interacting through different means o Connected - Built based on synergies - Own as well as partner systems need to interact with each other efficiently
  • 5. Events in Enterprise Systems o Occurrence within the context of interest o A series of events depicting one event in the real world - e.g. A customer placing an order in a retail system o Not all events are of interest o Most everyday events can be dealt in an asynchronous manner o Occurrence of an situation (relevant event) requires something to react to it - to move from one state to another o For this events should be detected, situations filtered and processes notified o Leads to Event Driven Architecture
  • 7. Evolution o SOA - Synchronous request response systems with asynchronous message delivery - Technically loosely coupled - Functionally tightly coupled - Mostly centralized o Evolving into EDA - Based on message driven model for information propagation - Spatial and temporal decoupling - Analogous to the operational model of an organisation where a series of events take place o Suited where - Distributed environments - Higher level of autonomy is needed at unit level
  • 8. Main Components o Event - significant happening which results in change of state from a business perspective o Event generator- publishes events o Event processor- consumes events and decide what to do o Event channel - medium where event lies before consumption
  • 9. Principles o Immediate information dissemination and reactive business process execution o Fire and forget - push based mechanism o Single responsibility at practice o Autonomous messages for the receiver to process o Higher decoupling - no need to bind to contracts o Logical decoupling of functional units - not dependent and less impact from change o Receiver driven flow control - more responsibility lies with receivers o Near real time information consistency
  • 10. Advantages o Effective data integration o Low latency of information o High reactiveness o More accurate responses o High flexibility o Higher business agility
  • 13. Event Mediator Pattern o Need to orchestrate multiple steps o Orchestration happens through a central mediator o Multiple steps need to happen in a certain order o Processing will be done by separate entities which need to be invoked in many ways o Fits scenarios which are complex, have some sort of orchestration logic and approval tasks etc as well
  • 15. Broker Pattern o Message flow is distributed across several processors with no orchestration o Fits for use cases where the flow is entirely dependent on event receiving with no timing o Once a processor is done with processing another event will be fired to the broker which will be consumed by another processor
  • 16. Components in an Event Driven System o Process Engine o Mediation Engine o Message Broker o Business Activity Monitor o Complex Event Processor o Business Rules Manager
  • 17. Patterns in building Event Driven Systems
  • 25. Guaranteed Delivery - Directly via Broker
  • 26. Guaranteed Delivery - via Mediation Engine
  • 27. Guaranteed Delivery - Fault Handling
  • 29. Keeping up with the trends
  • 31. Internet of Things (IoT) o There exists a plethora of devices which provide data in several contexts o This data needs to be captured in order to analyze and derive intelligence and then take actions o Point to point integration with each device is not a possibility o Leads to the use of Event Driven Architecture through the use of protocols which work on publish-subscribe mechanisms - e.g. MQTT and also through handling large scale event analyzing
  • 34. Microservices Architecture o Microservices promote distributed data management o Data in microservices - Are private to a specific microservice - Use polygot persistence - Might not expose generic APIs for all possible modes of use o However, business transactions span multiple microservices which would need accessing private data of other microservices o Leads to the use of Event Driven Architecture where distributed data management is handled through the use of events o Variants are event tables, transaction log mining and event sourcing which try to reduce errors relating to atomicity
  • 37. Reactive Architecture o To achieve being reactive, systems should be designed with containment of functionality in mind so that scaling, isolation of failures and adaptable fault tolerance happens o Microservices Architecture can achieve this o Also, for a system to be reactive it should be able to - React to Load through scalability - React to failure through recoverability - React to user experience effectively o The ability to react to events and act accordingly becomes the main ingredient o Leads to designing and building systems in an Event Driven manner
  • 39. Building Event Driven Systems o What does your enterprise system look like ? - Determine how complex or simple your system flows are - Determine how autonomous your processing units are - Determine how isolated your processing units should be o What do you need to do with event processing ? - Identify both functional as well as operational needs o Which pattern would suit you best ? - Select based on enterprise system characteristics and needs o Which components do you need ? - Identity which middleware components you need to achieve the above
  • 40. References o Event Processing in Action - Opher Etzion and Peter Niblett - Manning o https://msdn.microsoft.com/en-us/library/dd129913.aspx o Software Architecture Patterns - Mark Richards - Orielly o http://radar.oreilly.com/2015/02/variations-in-event-driven- architecture.html o http://wso2.com/whitepapers/a-reference-architecture-for-the- internet-of-things/ o https://www.nginx.com/blog/event-driven-data-management- microservices/