SlideShare a Scribd company logo
Architect / Associate Director, WSO2
Building Reactive Applications using
Event-driven Architecture
Joseph Fonseka
Event-driven Architecture
Event-driven architecture (EDA), is a software architecture
pattern promoting the production, detection, consumption of, and
reaction to events.
- Wikipedia
What is an Event ?
An event can be defined as "a significant change in state"
- When a user clicks a button "button state changes"
- When a consumer purchases a car, the car's state changes
from "for sale" to "sold"
In a system an Event can be represented with an Object or a
message. When an event it occured it will get Notified to other
subsystems.
This happens when a system sends event messages to notify
other systems of a change in its domain.
- Source system doesn't really care much about the response.
- Event do not need to carry all the data, Receiver can send a
request to the sender to retrieve more data if required.
- Implies a low level of coupling, and is pretty simple to set up.
Event Notification
Event Notification
// Get the button, and when the user clicks on it, execute myFunction
document.getElementById("myBtn").onclick = function() {myFunction()};
/* myFunction toggles between adding and removing the show class,
which is used to hide and show the dropdown content */
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
Commonly found in UI Frameworks
Change
Address
Event Notification
Customer
Management
Insurance
Quoting
Communications
send email
requote
Event Notification
Customer
Management
Insurance
Quoting
Communications
Change
Address
Event Notification
Customer
Management
Insurance
Quoting
Communications
address
changed
Events vs Commands
Event Notification
Customer
Management
Insurance
Quoting
Communications
address
changed
Pros :
Receiver and Sender is decoupled.
Cons:
Overall behaviour of the system is not captured in the code.
Event Notification
Event-Carried State Transfer
Customer
Management
Insurance
Quoting
Communications
address
changed
Customer
Event-Carried State Transfer
Customer
Management
Insurance
Quoting
Communications
address
changed
Customer
Event-Carried State Transfer
Customer
Management
Insurance
Quoting
Communications
address
changed
Customer
Customer
Pros :
More decoupled.
Reduced load on the sender
More resiliency
Cons:
Replicated Data -> Eventual Consistency
Complexity of Receiver
Event-Carried State Transfer
What is a Reactive
App?
Core building blocks of a Reactive Application
Reactive Application
Responsive
Resilient
Message Driven
Scalable
How to Implement ?
<events><events>
EDA High Level
Event Channel
System
A
System
B
System
C
System
D
<events><events>
Event Producer Event
Consumer
<events><events>
EDA High Level
Event Channel
System
A
System
B
System
C
System
D
<events><events>
Event Producer Event
Consumer
Analytics
CEP
Analytics
CEP
<events><events>
EDA
Event Channel
System
A
System
B
System
C
System
D
<events><events> Analytics
CEP
API Gateway
Sample
Text
Analytics
CEP
Do I have to re-write ?
EDA in Brownfield Projects
Legacy Monolith
Application
Agent Event Channel
System
A
System
B
System
C
System
D
● Event-driven architecture can complement service-oriented
architecture (SOA) because services can be activated by
triggers fired on incoming events.
EDA + SOA
● EDA is a good fit for Serverless Architecture.
● You can have function that written by developers run in
stateless compute containers that are event-triggered.
● The functions may only last for one invocation and fully
managed by a third party.
Serverless with EDA
EDA is Architecture
not a Solution.
Martin Fowler
- https://martinfowler.com/articles/201701-event-driven.html
References
THANK YOU
wso2.com

More Related Content

PPTX
Event Driven Architectures
PDF
Event-Driven Architecture (EDA)
PPTX
Event driven architecture
PPTX
Event-driven architecture
PDF
Building Event Driven Systems
PPT
CEP and SOA: An Open Event-Driven Architecture for Risk Management
PDF
Workflows via Event driven architecture
PDF
Event Driven Architecture
Event Driven Architectures
Event-Driven Architecture (EDA)
Event driven architecture
Event-driven architecture
Building Event Driven Systems
CEP and SOA: An Open Event-Driven Architecture for Risk Management
Workflows via Event driven architecture
Event Driven Architecture

What's hot (20)

PPTX
Event driven architecture
PPT
Event Driven Architecture (EDA), November 2, 2006
PDF
WSO2Con ASIA 2016: Event Driven Architecture: Managing Business Dynamics for ...
KEY
Event Driven Architecture
PPTX
Hybrid IT Operations and the Hybrid Cloud
PDF
Partner Transformation for Hybrid Cloud Management
PDF
Bright talk mapping the right aut solution for you 2014 final (1)
PDF
Database as a Service for Private Clouds
PPTX
System Center Service Manager 2012 Overview
PPTX
Introducing Ironstream Support for ServiceNow Event Management
PDF
Active directory solutions brochure
PPTX
Webinar - How to Get Real-Time Network Management Right?
PPTX
Azure SQL DB V12 at your service by Pieter Vanhove
PDF
Windows Azure Casestudy on Document Search & Retrieval
PDF
Data reply sneak peek: real time decision engines
PPTX
Introduction to Service Manager
PPTX
How Application Discovery and Dependency Mapping can stop you from losing cus...
PPTX
Navigator - Your Cloud Management Platform
PPTX
Microservices session 1
PDF
Diving Deeper into Networking & Local Options in TrialDirector 360
Event driven architecture
Event Driven Architecture (EDA), November 2, 2006
WSO2Con ASIA 2016: Event Driven Architecture: Managing Business Dynamics for ...
Event Driven Architecture
Hybrid IT Operations and the Hybrid Cloud
Partner Transformation for Hybrid Cloud Management
Bright talk mapping the right aut solution for you 2014 final (1)
Database as a Service for Private Clouds
System Center Service Manager 2012 Overview
Introducing Ironstream Support for ServiceNow Event Management
Active directory solutions brochure
Webinar - How to Get Real-Time Network Management Right?
Azure SQL DB V12 at your service by Pieter Vanhove
Windows Azure Casestudy on Document Search & Retrieval
Data reply sneak peek: real time decision engines
Introduction to Service Manager
How Application Discovery and Dependency Mapping can stop you from losing cus...
Navigator - Your Cloud Management Platform
Microservices session 1
Diving Deeper into Networking & Local Options in TrialDirector 360
Ad

Similar to [WSO2Con Asia 2018] Building Reactive Applications Using Event-driven Architecture (20)

PDF
Explore Event Driven Archtecture using PHP
PDF
The Significant role of event driven apps in software development
PPTX
NetWatcher Customer Overview
PDF
Event Processing For Dummies
PDF
[WSO2Con EU 2018] Building Reactive Applications Using Event Driven Architecture
PDF
International Journal of Engineering Inventions (IJEI)
PDF
Real-time Text Audio to Video PPT Converter Tablet App
PPTX
Events vs Notifications
PPT
Netcool Impact docs
PPT
Complex Event Processing
PDF
FIWARE Complex Event Processing
PDF
FIWARE Complex Event Processing
PPTX
Guido schmutz-jax2011-event-driven soa
PDF
Community App for Promoting Cross-Cultural Interaction
PDF
Community App for Promoting Cross-Cultural Interaction
PPTX
webTender 2.0
PPTX
Windows Phone 7 Unleashed Session 2
PDF
Picos, CloudOS, and Connecting Things
PDF
A metamodel-based approach for the dynamic reconfiguration of component-based...
PPT
Optimizing Your SOA with Event Processing
Explore Event Driven Archtecture using PHP
The Significant role of event driven apps in software development
NetWatcher Customer Overview
Event Processing For Dummies
[WSO2Con EU 2018] Building Reactive Applications Using Event Driven Architecture
International Journal of Engineering Inventions (IJEI)
Real-time Text Audio to Video PPT Converter Tablet App
Events vs Notifications
Netcool Impact docs
Complex Event Processing
FIWARE Complex Event Processing
FIWARE Complex Event Processing
Guido schmutz-jax2011-event-driven soa
Community App for Promoting Cross-Cultural Interaction
Community App for Promoting Cross-Cultural Interaction
webTender 2.0
Windows Phone 7 Unleashed Session 2
Picos, CloudOS, and Connecting Things
A metamodel-based approach for the dynamic reconfiguration of component-based...
Optimizing Your SOA with 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
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
KodekX | Application Modernization Development
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Machine learning based COVID-19 study performance prediction
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Cloud computing and distributed systems.
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Programs and apps: productivity, graphics, security and other tools
PPT
Teaching material agriculture food technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
sap open course for s4hana steps from ECC to s4
Dropbox Q2 2025 Financial Results & Investor Presentation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
KodekX | Application Modernization Development
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Electronic commerce courselecture one. Pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Network Security Unit 5.pdf for BCA BBA.
20250228 LYD VKU AI Blended-Learning.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Machine learning based COVID-19 study performance prediction
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Review of recent advances in non-invasive hemoglobin estimation
Cloud computing and distributed systems.
Reach Out and Touch Someone: Haptics and Empathic Computing
Programs and apps: productivity, graphics, security and other tools
Teaching material agriculture food technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
sap open course for s4hana steps from ECC to s4

[WSO2Con Asia 2018] Building Reactive Applications Using Event-driven Architecture