Complex Event Processing (CEP) Why and How. Richard Hallgren BUGS 2013-05-30



Similar documents
Client. Applications. Middle Tier. Database. Infrastructure. Leading Vendors

The ESB and Microsoft BI

Microsoft Services Exceed your business with Microsoft SharePoint Server 2010

Big Data and Advanced Analytics Technologies for the Smart Grid

Integration Architecture & (Hybrid) Cloud Scenarios on the Microsoft Business Platform. Gijs in t Veld CTO BizTalk Server MVP BTUG NL, June 7 th 2012

Converging Technologies: Real-Time Business Intelligence and Big Data

The Purview Solution Integration With Splunk

Exploring the Synergistic Relationships Between BPC, BW and HANA

Intelligent Business Operations and Big Data Software AG. All rights reserved.

Global outlook on the perspectives of technologies like Power Hub

White Paper. How Streaming Data Analytics Enables Real-Time Decisions

MS 20467: Designing Business Intelligence Solutions with Microsoft SQL Server 2012

Outlines. Business Intelligence. What Is Business Intelligence? Data mining life cycle

ORACLE OLAP. Oracle OLAP is embedded in the Oracle Database kernel and runs in the same database process

Intelligent Business Operations

Reporting component for templates, reports and documents. Formerly XML Publisher.

S o l u t i o n O v e r v i e w. Turbo-charging Demand Response Programs with Operational Intelligence from Vitria

LEARNING SOLUTIONS website milner.com/learning phone

A Guide Through the BPM Maze

Upgrading to Microsoft SQL Server 2008 R2 from Microsoft SQL Server 2008, SQL Server 2005, and SQL Server 2000

BPM, EDA and SOA: How the Combination of these Technologies Facilitates Change. Dr. Neil Thomson, Head of Group Development, Microgen plc

JOURNAL OF OBJECT TECHNOLOGY

The Synergy of SOA, Event-Driven Architecture (EDA), and Complex Event Processing (CEP)

NEEDLE STACKS & BIG DATA: USING EVENT STREAM PROCESSING FOR RISK, SURVEILLANCE & SECURITY ANALYTICS IN CAPITAL MARKETS

Developing Analytics with Microsoft StreamInsight & PI for StreamInsight

How To Build A Financial Messaging And Enterprise Service Bus (Esb)

BI4Dynamics provides rich business intelligence capabilities to companies of all sizes and industries. From the first day on you can analyse your

Converged, Real-time Analytics Enabling Faster Decision Making and New Business Opportunities

Nýjungar í webmethods 9.x. Ingólfur Þorsteinsson

Salesforce.com and MicroStrategy. A functional overview and recommendation for analysis and application development

Designing Business Intelligence Solutions with Microsoft SQL Server 2012 Course 20467A; 5 Days

BizTalk 2010: First Looks. Brendon Birdoes

MOC 20467B: Designing Business Intelligence Solutions with Microsoft SQL Server 2012

Business Process Management Enabled by SOA

SQL Server 2012 Business Intelligence Boot Camp

Big Data Volume, Velocity, Variability

Oracle Service Bus: - When to use, where to use and when not to use

MDM and Data Warehousing Complement Each Other

How In-Memory Data Grids Can Analyze Fast-Changing Data in Real Time

2/6/2015. Proposed By:

HOW TO DO A SMART DATA PROJECT

Pulsar Realtime Analytics At Scale. Tony Ng April 14, 2015

Analance Data Integration Technical Whitepaper

S o l u t i o n O v e r v i e w. Optimising Service Assurance with Vitria Operational Intelligence

Vendor briefing Business Intelligence and Analytics Platforms Gartner 15 capabilities

Monitoring MSDynamix CRM 2011

News and trends in Data Warehouse Automation, Big Data and BI. Johan Hendrickx & Dirk Vermeiren

IBM Cognos Enterprise: Powerful and scalable business intelligence and performance management

Dynamic M2M Event Processing Complex Event Processing and OSGi on Java Embedded

A Technical Roadmap for Oracle Fusion Middleware, E-Business Suite Release 12 and Oracle Fusion Applications

Analance Data Integration Technical Whitepaper

WHITE PAPER. Enabling predictive analysis in service oriented BPM solutions.

Implementing Data Models and Reports with Microsoft SQL Server 20466C; 5 Days

Workflow/Business Process Management

The IBM Cognos Platform

The IBM Solution Architecture for Energy and Utilities Framework

Managing Big Data with Hadoop & Vertica. A look at integration between the Cloudera distribution for Hadoop and the Vertica Analytic Database

Business Intelligence and Service Oriented Architectures. An Oracle White Paper May 2007

DATA WAREHOUSE BUSINESS INTELLIGENCE FOR MICROSOFT DYNAMICS NAV

ProClarity Analytics Family

Hadoop Data Hubs and BI. Supporting the migration from siloed reporting and BI to centralized services with Hadoop

MS 10978A Introduction to Azure for Developers

YOU VS THE SENSORS. Six Requirements for Visualizing the Internet of Things. Dan Potter Chief Marketing Officer, Datawatch Corporation

TURN YOUR DATA INTO KNOWLEDGE

Enterprise Enabler and the Microsoft Integration Stack

Azure Data Lake Analytics

Entity store. Microsoft Dynamics AX 2012 R3

TRANSFORM BIG DATA INTO ACTIONABLE INFORMATION

New Features in Neuron ESB 2.6

In-Memory Analytics: A comparison between Oracle TimesTen and Oracle Essbase

Towards Smart and Intelligent SDN Controller

Implementing Oracle BI Applications during an ERP Upgrade

2933A: Developing Business Process and Integration Solutions Using Microsoft BizTalk Server 2006

Introducing Oracle Exalytics In-Memory Machine

Oracle Business Intelligence EE. Prab h akar A lu ri

secure intelligence collection and assessment system Your business technologists. Powering progress

MicroStrategy Course Catalog

Implementing Data Models and Reports with Microsoft SQL Server

Oracle Business Activity Monitoring 11g New Features

SQL Server 2008 Business Intelligence

Common Situations. Departments choosing best in class solutions for their specific needs. Lack of coordinated BI strategy across the enterprise

Oracle Big Data SQL Technical Update

Empowering intelligent utility networks with visibility and control

Supply Chain Optimization for Logistics Service Providers. White Paper

Oracle Service Bus vs. Oracle Enterprise Service Bus vs. BPEL wann soll welche Komponente eingesetzt werden?

Budgeting and Planning with Microsoft Excel and Oracle OLAP

How telcos can benefit from streaming big data analytics

SQL Server 2005 Features Comparison

Oracle SOA Suite: The Evaluation from 10g to 11g

Simplifying Big Data Analytics: Unifying Batch and Stream Processing. John Fanelli,! VP Product! In-Memory Compute Summit! June 30, 2015!!

Transcription:

Complex Event Processing (CEP) Why and How Richard Hallgren BUGS 2013-05-30

Objectives Understand why and how CEP is important for modern business processes Concepts within a CEP solution Overview of StreamInsight Understand how StreamInsight and BizTalk can work together Presentation Outline Why CEP CEP overview StreamInsight in detail StreamInsight + BizTalk

Value to business Act Anticipate Understand Connect Data isolated in seperate systems Understanding of data

Data refinement process Industry trends Data acquisition costs are negligible Raw storage costs are small and continue to decrease Processing costs are non-negligible Data loading costs continue to be significant Monitor KPIs Record raw data (history) Manage business via KPI-triggered actions Mine historical data Devise new KPIs CEP opportunities Process data incrementally, i.e., while it is in flight Avoid loading while still doing the processing you want Seamless querying for monitoring, managing and mining Close to real time Faster loop closer to real time!

The value of timely analytics

Messages/Events Traditional messaging applications: High signal every message is business relevant Rich data schemas sets of related information Workflow centric and transactional Emerging data sources and trends: Machine born data is growing at a very rapid rate Not all of this data is business relevant (low signal/noise ratio) How do we, issues to solve: Identify and extract business relevant events from streaming data? Take action on these business insights (line of business, human workflow, etc) Large Messages Low Volume LOB B2B Web Services RFID Electrical Grids CRM SWIFT Health Care High Volume Small Events Stock Feeds Operational Data

Different approach of processing data Traditional Data Processing How many invalid credit card authorization were accepted yesterday? Event Data Processing When 3 authorizations for the same credit card occur in any 60 second period, deny the request and require manual approval Time Works in real time Analyze by pattern within time frames

Trends recap - Vivek Ranadivé

CEP Overview

CEP applications generally have two primary orientations: computing aggregates and detecting event patterns over a time line of events. Complex Event Processing (CEP) is an architecture style based on the principles of Event Driven Architecture (EDA).

What is CEP and what does it do? How? 1. Continuously processing a high-volume stream of events from various event sources 2. Events are logically grouped in sequences (typically known as streams) based on a time defined criteria such as an interval. 3. Event streams are processed through a series of queries Why? CEP is commonly used to detect and respond to business anomalies, threats, and opportunities

Typical scenario The utility sector requires an efficient infrastructure for managing electric grids and other utilities. Immediate response to variations in energy or water consumption, to minimize or avoid outages or other disruptions of service. Gaining operational and environmental efficiencies by moving to smart grids. Multiple levels of aggregation along the grid. Ability to handle up to 100,000 events per second from millions of data sources.

StreamInsight

Basics StreamInsight Highly optimized performance and data throughput.net based Flexible deployment capability Manageability Premium version of StreamInsight event rates > 5000 events/sec. or latency requirements are < 5 sec. Standard Sql Server 2012 Business Intelligence, Standard, Web Premium Sql Server Enterprise Non persistent works in-memory (no dependecy to Sql Server) http://msdn.microsoft.com/en-us/library/ff518551.aspx

StreamInsight Application Development Event sources Devices, Sensors Web servers StreamInsight Application at Runtime Input Adapters StreamInsight Engine Standing Queries Query Logic Query Logic Output Adapters Event targets ` Pagers & Monitoring devic KPI Dashb SharePoin Event stores & Databases Query Logic Trading stations Stock ticker, news feeds Event stores & Databases

Development steps: Hosting In-process Seperate service Own machine, cluster of machines

Development steps: Sources & Sinks Event sources and Event Sinks StreamInsight 2.1 has support for IEnumerable and IObservable Lots of helper methods to convert to IEnumerable and create IObservable streams Adapters In 1.0, 1.1, 1.2 and 1.2

Development steps: Events, Windows and Time Windows (time) Count Windows Hopping Windows Snapshot Windows Events Points Interval Edge Point Events Interval Edge Time

Development steps: Queries (Linq) var tumblingagg = from w in inputstream.tumblingwindow( TimeSpan.FromHours(1)) select new { sum = w.sum(e => e.i) };

Hello World server = Server.Create("Default"); var myapp = server.createapplication("serverapp"); var mysource = myapp.defineobservable(() => Observable.Interval(TimeSpan.FromSeconds(1))).ToPointStreamable(x => PointEvent.CreateInsert(DateTimeOffset.Now, x), AdvanceTimeSettings.StrictlyIncreasingStartTime); var myquery = from e in mysource where e % 2 == 0 select e; var mysink = myapp.defineobserver(() => Observer.Create<long>(x => Console.WriteLine( Hello World! : {0}", x))); mysink.deploy("serversink"); var proc = myquery.bind(mysink).run("serverprocess");

Demo Scenario 1 Scenario: A public API based on ASP.NET MVC 4 Throttle request to 30 req./10 sec. Issues: Keep a window in memory of all web request for the last 10 sec. relevant to the current req. grouped by API key. Efficient memory management

Demo Scenario 1 Shows StreamInsight hosted in-process

StreamInsight + BizTalk

BizTalk + StreamInsight Scenarion BizTalk Server and StreamInsight together can unlock powerful scenarios: High volume data processing High noise/signal ratio Message integration Leverage StreamInsight to: Consolidation and analyze incoming data streams Convert event sets into messages Deliver to BizTalk Leverage BizTalk Server to: Integrate these insights into line of business applications, BI applications and so on Other potential alignment points: Business Activity Monitoring (BAM). Tap into BAM event events stream for rich analytics and event detections Business Rules Engine (BRE). Leverage BRE to define event pattern rules

Event Driven Processing Monitor Process Act Integrate Informatio n Automate Processes Orchestration Simplify Manageme nt Messaging / ESB Business Rules Business Activity Monitoring B2B Integration Adapters ESSO and UDDI

Demo Scenario 2 Scenario: A number of meters report power usage at a point in time. Data is consolidated into a back end application used for billing and forecasting. The volume of data has forced them to only read values from meters every hour. They want to: Monitor the data more closely, compressing the point stream to an interval stream before loading into the back end application. i.e. if the data does not change by more than 2% over a 10 sec. window, keep the average value. Capture spikes and threshold events, route to a process control application for further inspection. Issues: To much traffic even for BizTalk Server Group data by meter id Keep data for last 10 seconds in memory to calculate average Keep single events if spike detected Timestamp 3/5/2010 14:23 Power 1020 Meter ID 112322 Data consolidation (point -> interval) Anomaly Detection Reference data (location, hierarchy) Batch to Message Batch to Message Line of Business Application Smart Meters

Demo Scenario 2 Possible solutions BizTalk Orchestrations with correlations? Cache framework and custom memory management Custom in-memeory handling.

Demo Scenario 2 Smart Meters Timestamp 3/5/2010 14:23 Power 1020 Meter ID 112322 1 Data consolidation (point -> interval) Anomaly Detection 2 3 Reference data (location, hierarchy) Batch to Message 4 Batch to Message 5 Line of Business Application 1 Meter Input Adapter (StreamInsight) Consolidation Query Threshold Detection Query StreamInsight 2 3 Message Builder Output Adapter Query Results (XML) 4 WCF MSMQ Adapter Receive Port 5 Orchestration BizTalk Server Send Port LOB Adapter Query Result Format (XSD)

Data enrichment process MS Devices, Sensors Web servers Business Processes Stock tickers & News feeds Message Bus Cache Reference Data Operational Analytics Microsoft StreamInsight Automated Decisions In-memory Database Intra-Day Cubes ETL Message Bus Refresh (Push) Refresh (Push) Re-compute (Pull) Operational Dashboard (Ticking - Snapshot) Reporting Dashboard (Refreshed) Static Reports ETL Historic Cubes Mining, Validation, What-If Scenarios Sources Data Bus Caching Processing Distribution Visualization

Recap - objectives Understand why and how CEP is important for modern business processes Concepts within a CEP solution Overview of StreamInsight Understand how StreamInsight and BizTalk can work together