Creating an EventDriven SOA Madhusudhan KM Chief Architect

  • Slides: 38
Download presentation
Creating an Event-Driven SOA Madhusudhan KM Chief Architect & Head – Central Architecture Group,

Creating an Event-Driven SOA Madhusudhan KM Chief Architect & Head – Central Architecture Group, IT Services, Mind. Tree Ltd ©© 2008 2010 Mind. Tree. Consulting Limited

Topics l Concepts, Sample Use case & EDA characteristics l EDA Reference Architectures l

Topics l Concepts, Sample Use case & EDA characteristics l EDA Reference Architectures l Present & Future applications of EDA l Major players in EDA l Summary & Conclusion © 2010 Mind. Tree Limited Slide 2

Event driven world l We all live in an event driven world l All

Event driven world l We all live in an event driven world l All animals along with human beings respond to events of two types ; opportunities & threats l Zebras on the savannah sense and respond to the opportunity of a water hole or the threat of a lion. l Banks credit card usage to stop fraudulent as theyto occur Aretrack enterprises using sensors tocharges respond business l We pick telephone calls when Wethreats do not pick opportunities and it torings. fight at other’s right telephone time ? ? (usually)…sometimes, we also filter our own calls if the number if unknown l We have cognitive sensors and filters that help us to concentrate on events that are important to us and ignore events that are not related to us (or at least we think they are not related !!) © 2010 Mind. Tree Limited Slide 3

Events – Airline Use Case • I will miss my connecting flight • I

Events – Airline Use Case • I will miss my connecting flight • I will have to cancel my hotel reservation and car rental booking • I will have to cancel my meetings BLR-Dubai-LHR Flight gets delayed Dubai Airport Cabin crew to serve another flight in Dubai • We can’t serve the next flight to start from destination of this flight © 2010 Mind. Tree Limited • Ground operations staff at destination will have to arrange alternate crew • Make sure the passengers are accommodated on the next connecting flight • Book hotels for passengers if the wait time is more than six hours Slide 4

Events – Airline Use Case l Event - Flight delayed l Impact on passenger

Events – Airline Use Case l Event - Flight delayed l Impact on passenger traveling for business purposes l Might miss a connecting flight l Might need to cancel/change hotel reservation & car rental reservation l Might need to cancel/postpone a meeting l Impact on Airline l The flight crew may miss their next flights. The flights must be delayed or replacement crews assigned. l Crew members who are passengers on the current flight may not be available for their assigned flights. l Catering provider might have to be notified of this event if the meal preparation should be delayed / cancelled. l If there are priority passengers on the flight, airlines may want to see how these priority passengers are affected and what could the airline do to reduce the inconvenience to priority passengers. © 2010 Mind. Tree Limited Slide 5

Events – Concepts & Terms l What is an Event ? l An event

Events – Concepts & Terms l What is an Event ? l An event is a notable thing that happens inside or outside your business. An event (business or system) may signify a problem or impending problem, an opportunity, a threshold, or a deviation. l Examples l A financial trade l An airplane lands l A sensor outputs a reading l A change of state in a database or a finite state machine l A key stroke l A natural occurrence such as an earthquake © 2010 Mind. Tree Limited Slide 6

Events – Concepts & Terms l Simple Event : Any event in its simplest

Events – Concepts & Terms l Simple Event : Any event in its simplest form l Flight delay event l Complex Event : An event that is an abstraction of other events called its members. l The 1929 stock market crash – an abstraction denoting many thousands of member events, including individual stock trades) l The 2004 Indonesian Tsunami – an abstraction of many natural events l Derived event : An event that is generated as a result of applying a method or process to one or more other events. l An event reporting that company B has entered the bidding to take over A with probability 0. 9, might be derived from an event reporting that the price of company A’s stock has jumped 10% in 5 minutes. l The absence of an event, say in a given time interval, can lead to a derived event reporting that the first event did not © 2010 Mind. Tree Limited Slide 7

Events – Concepts & Terms l Event Driven Architecture : An architectural style in

Events – Concepts & Terms l Event Driven Architecture : An architectural style in which some of the components are event driven and communicate by means of events. l Simple Event Processing: In simple event processing, a notable event happens, initiating downstream action(s). Simple event processing is commonly used to drive the real-time flow of work—taking lag time and cost out of a business. l Stream Event Processing : In stream event processing, linearly ordered stream of events are processed l Events (orders, RFID transmissions, etc) are both screened for notability and streamed to information subscribers. l Stream event processing is commonly used to drive the real-time flow of information in and around the enterprise––enabling in time decision making l A stream may contain events of different types © 2010 Mind. Tree Limited Slide 8

Events – Concepts & Terms l Complex Event Processing : A sophisticated form of

Events – Concepts & Terms l Complex Event Processing : A sophisticated form of EDA that is used to extract the information value from multiple events. l CEP systems find patterns in event data to detect opportunities and threats. Timely alerts are then pushed to the appropriate recipients, often using Business Activity Monitoring (BAM) dashboards. The result is faster and better operational decisions and more timely responses. l In CEP, events usually across types, occur over long period of time l Event correlation can be casual / temporal / spatial l Few possible of application of CEP are Algorithmic trading, Fraud monitoring and detection, Global epidemic warning, Air traffic control, Self tuning databases, Adaptive middleware, etc. © 2010 Mind. Tree Limited Slide 9

Event Driven Architecture – Few characteristics Model SOA EDA Interaction Request – Response Request

Event Driven Architecture – Few characteristics Model SOA EDA Interaction Request – Response Request – Callback Sense - Respond Pub – Sub Invocation Client/user driven Event driven Relationship 1: 1 Client : Service provider 1: n Event source : Event sinks Flow Top down Complex flow Client Service provider data © 2010 Mind. Tree Limited Slide 10

Events – Airline Use Case Event Consumer SMS to Passenger – Your Flight delayed

Events – Airline Use Case Event Consumer SMS to Passenger – Your Flight delayed ; You are booked on alternate flight Event Producer Event Management Engine Event Consumer Trigger a business process in Airline reservations to take care of rebooking passengers who missed connecting flights Event Consumer Trigger a business process in Flight operations to arrange new set of cabin crew for the flight to start at destination © 2010 Mind. Tree Limited Slide 11

Events – Tying concepts together Event Producers l Consumers receive events based on rules,

Events – Tying concepts together Event Producers l Consumers receive events based on rules, filters, etc. l Producers could be business processes, services/transactions, state change in state of entity in DB, user actions on applications, etc Event Hub l Consumers have no obligation to producers l Consumers are usually producers too Event Consumers © 2010 Mind. Tree Limited Slide 12

Events – Moving from Loose coupling to Minimal coupling Process Service Event Service Data

Events – Moving from Loose coupling to Minimal coupling Process Service Event Service Data Store Event Legacy Service Business Processes and Services are not hardwired…. . instead, they are linked via events © 2010 Mind. Tree Limited Slide 13

Event Driven SOA – Reference Architectures ©© 2008 2010 Mind. Tree. Consulting Limited

Event Driven SOA – Reference Architectures ©© 2008 2010 Mind. Tree. Consulting Limited

A framework for handling highly concurrent systems © 2010 Mind. Tree Limited Slide 15

A framework for handling highly concurrent systems © 2010 Mind. Tree Limited Slide 15

A framework for handling highly concurrent systems © 2010 Mind. Tree Limited Slide 16

A framework for handling highly concurrent systems © 2010 Mind. Tree Limited Slide 16

A framework for handling highly concurrent systems © 2010 Mind. Tree Limited Slide 17

A framework for handling highly concurrent systems © 2010 Mind. Tree Limited Slide 17

Staged Event Driven Architecture - SEDA l Each Stage contains an incoming event queue,

Staged Event Driven Architecture - SEDA l Each Stage contains an incoming event queue, a thread pool, an event handler and a controller l Each stage can be independently managed l Stages can be run in series or in parallel or a combination of the two l Each stage is separated by a queue l Use of event queues allows each stage to be individually load conditioned by using proper thresholds © 2010 Mind. Tree Limited Slide 18

Benchmark of HTTP servers © 2010 Mind. Tree Limited Slide 19

Benchmark of HTTP servers © 2010 Mind. Tree Limited Slide 19

Simple Event Processing Source : Event-Driven Architecture Overview by Brenda M. Michelson, Sr. VP

Simple Event Processing Source : Event-Driven Architecture Overview by Brenda M. Michelson, Sr. VP and Sr. Consultant, Patricia Seybold Group © 2010 Mind. Tree Limited Slide 20

Stream Event Processing Source : Event-Driven Architecture Overview by Brenda M. Michelson, Sr. VP

Stream Event Processing Source : Event-Driven Architecture Overview by Brenda M. Michelson, Sr. VP and Sr. Consultant, Patricia Seybold Group © 2010 Mind. Tree Limited Slide 21

Complex Event Processing Source : Event-Driven Architecture Overview by Brenda M. Michelson, Sr. VP

Complex Event Processing Source : Event-Driven Architecture Overview by Brenda M. Michelson, Sr. VP and Sr. Consultant, Patricia Seybold Group © 2010 Mind. Tree Limited Slide 22

Event Processing in Business Intelligence l Analyst driven BI l Ad-hoc queries, Periodic reports,

Event Processing in Business Intelligence l Analyst driven BI l Ad-hoc queries, Periodic reports, data mining, etc l Output is mainly used for planning l Process driven BI l Some process driven BI systems use near real time information using BAM (Business Activity Monitoring) l Input for BAM is event data that arrived in the last few seconds/minutes l Historical data is used to put the new data in in context and to enrich the information before it is distributed l Strategy driven BI l Used to measure and manage overall business performance l Are we on track to meet our monthly target ? © 2010 Mind. Tree Limited Slide 23

Periodic intelligence v/s Continuous intelligence l Event driven system sends alert when things occur

Periodic intelligence v/s Continuous intelligence l Event driven system sends alert when things occur and not based on predetermined schedule or upon receiving ad-hoc query l Reports complex events like exceptions events on KPI l They operate fast enough to allow operations staff to intervene in a transaction when it is still in flight Source : Event Processing : Designing IT systems for Agile companies by Mani Chandy & Roy Schutle © 2010 Mind. Tree Limited Slide 24

Few applications of EDA & CEP ©© 2008 2010 Mind. Tree. Consulting Limited

Few applications of EDA & CEP ©© 2008 2010 Mind. Tree. Consulting Limited

Algorithmic trading l Algorithmic trading is achieved using computer algorithms deciding on aspects of

Algorithmic trading l Algorithmic trading is achieved using computer algorithms deciding on aspects of the order such as timing, price & quantity of the order l CEP engines are now used to predict a trend to make use of both sides of the market (ups & downs) l As of 2006, a third of all EU and US stock trades were driven by automatic programs or algorithms l Multiple players in capital market segment are using CEP engines for algorithmic trading l Bluecrest, Wall street on demand (WSOD), Sun. Gard, etc © 2010 Mind. Tree Limited Slide 26

Fraud detection l A 2006 Cyber. Source report stated that 2. 8 billion USD

Fraud detection l A 2006 Cyber. Source report stated that 2. 8 billion USD was lost to online fraud in US & Canada in 2005 l Requirements l Stop new account setups from fraudulent IP addresses l Verify user identity in every user transaction based on click behavior l Identify multiple users trying to login from same IP address l Identify single user logins from multiple IP addresses within a time span l Fraud detection systems enabled with CEP products are being used in Banks, Betting companies, Insurance companies, etc l In Banks, multiple withdrawals made from a card within a specific time interval from locations that are distance apart indicates a fraud © 2010 Mind. Tree Limited Slide 27

Air Traffic Control l Autonomous event-driven air traffic management system spanning the world. l

Air Traffic Control l Autonomous event-driven air traffic management system spanning the world. l Why is it needed ? l Crowded air space l The technology used in ATC is dated (1960) Source : The Future Event Driven World Scenario 1: Air Traffic Management by David Luckham © 2010 Mind. Tree Limited Slide 28

Potential future applications Business Intelligence • Algorithmic Trading • Fraud Detection • Event-Driven SOA

Potential future applications Business Intelligence • Algorithmic Trading • Fraud Detection • Event-Driven SOA • Business Activity Monitoring • Supply Chain Visibility Autonomic Computing • Self-tuning databases • Planning systems • Self configuring hardware and software systems • Adaptive middleware © 2010 Mind. Tree Limited Travel Industry • Air Traffic Control • Baggage Tracking and Tracing • Passenger Security • Automatic reaccommodation • Intelligent baggage tracking • Aircraft maintenance based on real time information Slide 29

Potential future applications Health Care • Global Epidemic Warning • Hospital Patient Monitoring •

Potential future applications Health Care • Global Epidemic Warning • Hospital Patient Monitoring • Home Monitoring Systems • RFID In-Body Monitoring Ambient Intelligence • Smart Homes • Smart Cities • Personalized Mobile Information Systems © 2010 Mind. Tree Limited Homeland Security • Storm Evacuation Systems • First Responder Systems • Terrorism Situational Awareness • Power, Fuel, and Water System Monitoring Slide 30

Potential future applications Environmental Systems • Wind Engineering • Weather Systems • Water Sources

Potential future applications Environmental Systems • Wind Engineering • Weather Systems • Water Sources • Habitat Conservation Military Systems • Command control systems • Physical Infrastructure Monitoring © 2010 Mind. Tree Limited Transportation Systems • Traffic Management • Produce Tracking Systems • Truck Routing Systems Slide 31

Major Players in EDA & CEP space ©© 2008 2010 Mind. Tree. Consulting Limited

Major Players in EDA & CEP space ©© 2008 2010 Mind. Tree. Consulting Limited

What to look for in EDA & CEP Products l Event Pattern Matching l

What to look for in EDA & CEP Products l Event Pattern Matching l Event Stream Processing l Ability to support multiple event patterns l Filter, Enrich, Split, Aggregate, Correlate l SQL like Event Query Language support l Variety of event data storage options l Support for multiple event type representations like Java Object & XML l Multiple integration options l Tools for event modeling & visualization with rich IDE along with debugging features l Event history replay l JMX instrumentation l Ability to expose services and to integrate into ESB products © 2010 Mind. Tree Limited Slide 33

EDA & CEP – Major Players Business. Events Oracle CEP ; Able to process

EDA & CEP – Major Players Business. Events Oracle CEP ; Able to process 1 million events/sec with low latency Websphere Business Events Apama Event Processing Platform ; Specialize in solutions to capital markets like Algorithmic trading, Smart order routing, etc Aleri Streaming Platform; Specialize in stream event processing Event Processing Platform ; Specialize in stream event processing Vhayu Velocity : High performance solution used widely for tick data management allowing users to perform real-time and historical market data analysis in a single CEP platform. Event Processing & CEP Platform ; Open source CEP platform © 2010 Mind. Tree Limited Slide 34

Summary & Conclusion ©© 2008 2010 Mind. Tree. Consulting Limited

Summary & Conclusion ©© 2008 2010 Mind. Tree. Consulting Limited

Summary & Conclusion l Organizations should gear up to sense opportunity and threat events

Summary & Conclusion l Organizations should gear up to sense opportunity and threat events from both inside and outside l Event Driven Architecture combined with SOA will enable organizations to achieve this l Technology products to support EDA+SOA are maturing l There are many interesting futuristic use cases that are possible in different domains So…Let us sense this opportunity and respond by creating some interesting solutions © 2010 Mind. Tree Limited Slide 36

Acknowledgements l Understanding Event-Driven Architecture : Article by Roy Schutle and Dr K Mani

Acknowledgements l Understanding Event-Driven Architecture : Article by Roy Schutle and Dr K Mani Chandy l Event Processing Glossary by David Luckham, Roy Schulte l The Future Event Driven World Scenario 1: Air Traffic Management by David Luckham l A Design Framework for Highly Concurrent Systems by Matt Welsh, Steven D. Gribble, Eric A. Brewer, and David Culler, Computer Science Division University of California, Berkeley l SEDA: An Architecture for Well conditioned, Scalable Internet Services by Matt Welsh, David Culler, and Eric Brewer Computer Science Division University of California, Berkeley l Event-Driven Architecture Overview, Event-Driven SOA Is Just Part of the EDA Story by Brenda M. Michelson Sr. VP and Sr. Consultant, Patricia Seybold Group © 2010 Mind. Tree Limited Slide 37

Successful Customers Our Mission Happy People Innovative Solutions Madhusudhan KM Chief Architect & Head

Successful Customers Our Mission Happy People Innovative Solutions Madhusudhan KM Chief Architect & Head – Central Architecture Group, IT Services, Mind. Tree Ltd madhusudhan_km@mindtree. com +91 - 99860 48076 www. mindtree. com © 2010 Mind. Tree Limited Slide 38