when we have to use an event driven architecture? initially, current practices and future

27
When we have to use an Event Driven Architecture? Initially, Current Practices and Future

Upload: aaliyah-crabtree

Post on 26-Mar-2015

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: When we have to use an Event Driven Architecture? Initially, Current Practices and Future

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

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

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

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

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

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
Page 8: When we have to use an Event Driven Architecture? Initially, Current Practices and Future
Page 9: When we have to use an Event Driven Architecture? Initially, Current Practices and Future

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
Page 11: When we have to use an Event Driven Architecture? Initially, Current Practices and Future

The Problem on the ActionSynchronous Action

Asynchronous Action

Page 12: When we have to use an Event Driven Architecture? Initially, Current Practices and Future

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

What is the Benefit?ScalableReaction basedStagedStaged + Reaction =

Page 14: When we have to use an Event Driven Architecture? Initially, Current Practices and Future

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

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

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

Sample of Messaging Solution

Page 18: When we have to use an Event Driven Architecture? Initially, Current Practices and Future

Sample of Workflow

Page 19: When we have to use an Event Driven Architecture? Initially, Current Practices and Future

Sample of Complex Workflow

Page 20: When we have to use an Event Driven Architecture? Initially, Current Practices and Future

Existing SampleNatPOS WindMills using SEDA

Implementation

Page 21: When we have to use an Event Driven Architecture? Initially, Current Practices and Future

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
Page 23: When we have to use an Event Driven Architecture? Initially, Current Practices and Future

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

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
Page 26: When we have to use an Event Driven Architecture? Initially, Current Practices and Future
Page 27: When we have to use an Event Driven Architecture? Initially, Current Practices and Future

References:4 Years prediction on SOA implementation - Gartner

Event Driven Architecture – InfoQ articleMicrosoft .NET Framework 3.0, 3.5, WWF

NatPOS workflow engine - WindMills