When we have to use an Event Driven Architecture? Initially, Current Practices and Future.
-
Upload
aaliyah-crabtree -
Category
Documents
-
view
222 -
download
1
Transcript of When we have to use an Event Driven Architecture? Initially, Current Practices and Future.
![Page 1: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/1.jpg)
When we have to use an Event Driven Architecture?Initially, Current Practices and Future
![Page 2: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/2.jpg)
What we will cover hereWhat is the Event Driven Apps?When is the Event Driven Architecture was
started?What is the Benefit?When we have to use?What is the Implementation in the real
world?What is the trend?
![Page 3: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/3.jpg)
What is the Event Driven Apps?What is an Event?What is in an Event?What is the Reaction when an Event fires?
![Page 4: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/4.jpg)
Ask Wiki!An event is a notable thing that happens
inside or outside your businessThe term event is often used interchangeably
to refer to both the specification (definition) of the event, and each individual occurrence (instance) of the event
Each event occurrence has an event header and event body as the delivered information
![Page 5: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/5.jpg)
How’s an Event being consumed?It should be Published!And then Fired! And someone must Listen!And he /she will give some Reaction!Or, just ignore it!...
![Page 6: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/6.jpg)
Simply, EDA will be as
Event Listener
Event Action
![Page 7: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/7.jpg)
![Page 8: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/8.jpg)
![Page 9: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/9.jpg)
The Problem on Event TriggerTriggered by Predictable Events
Triggered by Un Predictable EventsRequired Active Listeners
![Page 10: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/10.jpg)
![Page 11: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/11.jpg)
The Problem on the ActionSynchronous Action
Asynchronous Action
![Page 12: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/12.jpg)
When is the Event Driven Architecture was started?Four years from now, "mere mortals" will
begin to adopt an event-driven architecture (EDA) for the sort of complex event processing that has been attempted only by software gurus building operating systems or systems management tools, and sophisticated developers at financial institutions. (Roy Schulte, an analyst at Stamford, Conn.-based Gartner - 2003)
![Page 13: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/13.jpg)
What is the Benefit?ScalableReaction basedStagedStaged + Reaction =
![Page 14: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/14.jpg)
When we have to use?Best used for Asynchronous Flows of Work
and InformationWhen you need a Fast Responsive in front,
but Asynchronous process in the backgroundFire and Forget handling
Samples:The Web Server
![Page 15: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/15.jpg)
What else? (Quiz)
ReplicationSchedulerReportingSynchronizationMessenger
Use these following key words:
Then add with word “Engine“
![Page 16: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/16.jpg)
What is the Implementation in the real world?SOA based implementationMessaging based solutionAutomation solutionWorkflow solution
![Page 17: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/17.jpg)
Sample of Messaging Solution
![Page 18: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/18.jpg)
Sample of Workflow
![Page 19: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/19.jpg)
Sample of Complex Workflow
![Page 20: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/20.jpg)
Existing SampleNatPOS WindMills using SEDA
Implementation
![Page 21: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/21.jpg)
What is the trend?Workflow enabled applicationFrom Enterprise Level to Single Instance
Application
![Page 22: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/22.jpg)
![Page 23: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/23.jpg)
To Single Instance: WWFSequential WorkflowState Machine WorkflowRule Driven Activities
![Page 24: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/24.jpg)
Rules-driven Activities
Step2
Step1Rule1
Rule2
DataRules + data statedrive processing order
•Data-driven•Simple Conditions, complex Policies •Constrained Activity Group
State Machine Workflow
State2
State1Event
Event
External events drive processingorder
•Reactive, event-driven•Skip/re-work, exception handling•Graph metaphor
Sequential WorkflowStep1
Step2
Sequentialstructure prescribesprocessing order
•Prescriptive, formal•Automation scenarios•Flowchart metaphor
![Page 25: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/25.jpg)
![Page 26: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/26.jpg)
![Page 27: When we have to use an Event Driven Architecture? Initially, Current Practices and Future.](https://reader033.fdocuments.net/reader033/viewer/2022061304/5513c9bf55034679748b4974/html5/thumbnails/27.jpg)
References:4 Years prediction on SOA implementation - Gartner
Event Driven Architecture – InfoQ articleMicrosoft .NET Framework 3.0, 3.5, WWF
NatPOS workflow engine - WindMills