29
www.griffiths-waite.co.uk Insight Driven Actions with EDN and BAM Mark Simpson – Consultancy Director, Griffiths Waite

Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

  • Upload
    doanh

  • View
    219

  • Download
    4

Embed Size (px)

Citation preview

Page 1: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

Insight Driven Actions with EDN and BAM Mark Simpson – Consultancy Director, Griffiths Waite

Page 2: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

> 18 years Oracle development and architecture experience

> 1st UK Oracle ACE Director for SOA

> 1st BPEL project 2005, 1st BAM 2006

> Regular Speaker – UKOUG Conference – 9th Year

– Butler Group (Ovum) Master classes

– Gartner, IDC

– Oracle Open World x 3yrs

– SOA Symposium

> Oracle SOA Community – Award Winner 2009, 2010 and 2011

Your Speaker – Mark Simpson

Consultancy Director Griffiths Waite

Global Fusion Middleware Innovation Award 2012

Page 3: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

> Event Driven Architecture (EDA)

– Purpose

– Design Considerations

– EDN

> Monitoring Event Processing

– Control and monitoring Process

– Event Driven Challenges

> Introduction to BAM

– Business Event Monitoring

– Metrics, Thresholds, Alerts and Actions

> Case Example

– EDN, BAM, Actions

Agenda

Page 4: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

> An identifiable occurrence of something happening that is of interest to one or many consumers

– May be due to a change of state

– May be due to a key path taken in a process

– May be due to a time transition

– May be due to an absence of change

> It should be designed in a canonical format meaning something to business users

> True Business Events should be treated differently to Application Events which are often triggered just on entity updates

Definition of a Business Event

Page 5: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

> Process Centric > Event Centric

Event Driven Architecture

Change

Business Service

Business Service Human

Tasks

Business Service

Change

Event Publish

Business Service Human

Tasks

Business Service

Page 6: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

> Process Centric

– Transaction Control

– Service Paths are linked/dependent

– Exceptions can be propagated back to source

– Flow clearly audited

– Orchestration Paradigm

– Dependencies between process/services determined at design time

> Event Centric

– Decoupled

– Targets are no concerned of source

– Exceptions handled offline

– Flexibility in Adding new consumers

– Event Subscriptions link the processes

– Publish Subscribe Paradigm

– Dependencies between process/services determined at execution

Event Driven Architecture

Page 7: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

> Simple Declarative Eventing in SOA Suite, abstracts eventing infrastructure from Developers

> Mediator, BPEL Process, Java, ADF or DB can produce and consume events

> Configured for EDN-JMS or EDN-DB

> Event filtering on Namespace, Event Type or Payload Content

> ECID common across publisher and subscribers

> Consistency can be Guaranteed or Once and Only Once Delivery

Event Delivery Network (EDN)

SOA composite

SOA composite

SOA composite

newSupplier

event

DB Event

- do you mind seeing the event twice ?

Page 8: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

> Event Equivalent of WSDL

Event Definition Language (EDL)

Header Information Event Type, Source, ECID, Instance etc.

Event Payload Based on Centralised XSD

Page 9: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

Lost Property

> Decoupling ! – How does the publisher know if someone has

dealt with event

– Firm Transaction Boundary

– Exceptions must be handled by consumers or compensated by publisher

> EDN limitations – One queue, one threadpool

– At present, No Priority exposed

– No durable subscriptions

Challenges with Events

Page 10: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

Durable Subscriber Pattern for EDN

Consumer

A

Su

bsc

rip

tio

n

Pu

blis

her

EDN

Consumer

B

Su

bsc

rip

tio

n

Page 11: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

> What about when the logic in the subscriber changes ?

> Do you stop subscribing immediately, what about running instances of the services, is there chance of duplicate subscriptions

Durable Subscriber Pattern for EDN

Consumer

A

Su

bsc

rip

tio

n

Pu

blis

her

EDN

Consumer

B.2

Su

bsc

rip

tio

n

Consumer

B.1

Su

bsc

rip

tio

n

Page 12: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

> Apply a subscription façade and route to business service that contains logic.

Durable Subscriber Pattern for EDN

Consumer

A

Su

bsc

rip

tio

n A

Pu

blis

her

EDN

Consumer

B.2

Consumer

B.1

Su

bsc

rip

tio

n B

Page 13: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

> For the full end to end picture of Events a Monitoring System is needed

– Monitor events as they happen

– Monitor impending events

– Monitor actions

– Create Events from monitoring metrics

> Business Activity Monitoring

– Reports on Events Occurring, Thresholds Breached, Events being Actioned, Trends taking shape

– Real Benefit is to enable / automate action on events

Events and Monitoring System

“What is going on in my flexible and self managing Event Driven Architecture”

Page 14: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk www.griffiths-waite.co.uk

Oracle Business Activity Monitoring (BAM)

> Integrated Process Insight into SOA – Sensored Process Flows

– Exceptions/ Bottlenecks/ Process Opportunities

– Build Adaptive/Dynamic Processes that react

> Overcomes Insight to Action Gap – Visibility into SOA for the business user

– Single business view across processes & into disparate

integration technologies

– Opportunity to take corrective actions while there is still

time to avert a crisis

> Business Activity Monitoring Value Proposition – Monitor, Analyze & Act in real-time

– Achieve process optimization & agility

Page 15: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

BAM –all about the Events and Actions

> In defining BAM solutions always define

– Real-time metrics – How often do they change, is there impact when they change

– Thresholds and Boundaries – When does a metric need dealing with, when should someone be concerned and when is action needed (on breaches). These could be positive or negative

– Action those breaches – Alert those who need to take action immediately with the facts and a current view

– Monitor the results of any rectification actions

– Automate the actions over time

> BAM is always moving, BI gives more of a view of the static state of data at a point in time

> BAM gives the tactical “alert, respond and monitor” view BI gives the more strategic ”request, analyse and re-align” view

Page 16: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

Fits a pattern for real time reporting hooking into SOA – but is the problem / requirements really understood

> Due to decoupled nature of events it becomes hard interact with running instances (Adaptive Case Management gives more opportunities)

> Normally event action will take the form of changing something external to process to improve future steps or next instances

Taking action on Event Monitoring

Event

Rectify/Compensate

Take Action

Page 17: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk www.griffiths-waite.co.uk

> Understand the Metrics

> Capture the Events

> Iterate through Dashboards

> Automate the Manual Actions

Stages of BAM Implementation

Page 18: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk www.griffiths-waite.co.uk

> Business Driven – What actions / behaviour will the metrics encourage

> E.g. Lean Six Sigma DMAIC : Measure

Stage 1 : Understand the Metrics

Defects

Page 19: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk www.griffiths-waite.co.uk

Protect

Evolve

Governence

Met

rics IT

PartnersEnd U

sers

Business Policy

System

s Interaction

Process Flow

Execu

tives

Customer

Key Performance

Indicators and Process

Measurements

Roles, Capabilities and

Compliance

User Interface

Requirements and

Systems Integration

Steps involved in the

Business Process

Rules determining

Business Operations

360˚ view of process discovery

Stage 1 : Understand the Metrics

Get all Stakeholders view of the Process

Page 20: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk www.griffiths-waite.co.uk

Stage 2 : Capture the Events

Systems Services

Request Entered

Department Over Utilised

Finance Check Required

Queue Threshold Reached

Action Overdue

Alerts

Dashboards

Corrective Actions

CTQ’s

Improvements

Business Process

Partner Not Set Up

Page 21: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk www.griffiths-waite.co.uk

> Ensure the are current and give actionable information, not just interesting facts

> Align them to events occurring , not DW type analytical data

Stage 3: Iterate through Dashboards

Page 22: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk www.griffiths-waite.co.uk

> Define Thresholds, Breaches, Opportunities and Business Exceptions – then design Manual or Automated Actions

Step 4 – Automate the Actions

Business Metric Breach

Automated Action(BPEL)

Manual Rectification / Decision (Notification)

Page 23: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

Stage 4 : Actions Optimising Process and Rules

Page 24: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk www.griffiths-waite.co.uk 24

© Griffiths

Waite Ltd

BAM Opportunity Sensor

No Yes

Exception

Process

Stage 4 : Actions Optimising Process and Rules

Page 25: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk www.griffiths-waite.co.uk

Stock Maintenance

Demonstration Overview – Stock Management

Process Order

Stock Database

Check Stock

Insufficient Stock

Reorder Stock

Replenish Stock

Issue Stock

Threshold Breached

Place Order

Page 26: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk www.griffiths-waite.co.uk

> Scenario 1 - In process event raising – Large Order with not sufficient Stock

– BAM Alerted of Issue

– Event sent to reorder stock (edn)

> Scenario 2 – BAM notices upcoming issues and raises event – Large Order leaves shortage of stock

– BAM Threshold Breached

– Auto Replenish Implemented

– BAM Alert Fires to Call web service and raise event to reorder stock (edn)

Demo Scenarios – Stock Reordering

Page 27: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk www.griffiths-waite.co.uk

Demo - BAM Monitoring Process and Events

Page 28: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk www.griffiths-waite.co.uk

> Events where appropriate to decouple process / services

> Events will need a monitoring system if it is mandatory that the right actions is taken

> Monitor on Business Metrics primarily, but IT have a responsibility for reconciliation of event processing if decoupling

> Definition of Business Events is much more than data entity snapshot capture

> EDN internally to Oracle Solutions (ADF / DB / SOA), JMS external

> Build Action Driven Dashboards – Dashboards as a confidence factor – most actions can be automated on thresholds

– Automate Actions Over Time

> Define process for Exception and Opportunity Paths and associated Thresholds to Automate and Pre-Empt Issues

Best Practice to Takeaway

Page 29: Insight Driven Actions with EDN and BAM - Oracle ... · PDF file> Configured for EDN-JMS or EDN-DB > Event filtering on Namespace, Event ... > Apply a subscription façade ... not

www.griffiths-waite.co.uk

Thank You – Any Questions Q A & Twitter:

mark_gw

Email: mark.simpson@

griffiths-waite.co.uk