SlideShare a Scribd company logo
High Performance CEP:
The SAP Sybase Event Stream Processor
Technical Product Overview
Speaker’s Name/Department (delete if not needed)
Month 00, 2011
Insight from fast-moving data: Continuous Intelligence


Analyze events as they occur
• Continuous insight
• Immediate response

Rapid application development
• Reduce/eliminate dependence on specialist
  programming skills
• Cut implementation/deployment time
• Improve business agility

Non-intrusive deployment
• Event-driven architecture
• Adapt to existing data models




© 2012 SAP AG. All rights reserved.                      2
The SAP Sybase Event Stream Processor

          INPUT                           Studio
          STREAMS                         (Authoring)

                                                                       Reporting
                        Sensor Data
                                                                       Tools
                                        SAP®                                          Dashboard
                                                                   ?
                        Transactions
                                       Sybase®                         Applications
                                                                                      Message

                        Events
                                        ESP                                           Bus
                                                                       SAP HANA, Sybase IQ

                                          Reference
                                          Data


    •    Unlimited number of input                    •   Send output to apps, dashboards
         streams
                                                      •   Capture data in SAP HANA, Sybase IQ,
    •    Incoming data is processed as it                 Sybase RAP for historical analysis,
         arrives, according to the                        compliance
         business logic defined using high
         level authoring tools

© 2012 SAP AG. All rights reserved.                                                               3
Sample Architecture of a CEP-based Application:
Real-time P&L

            Market Prices

               Reuters                                               Live Dashboard
                                      Market Data
                                      Middleware
               Bloomberg
               Nasdaq
               …




      Order Management Systems

                                                                                     Alerts
      Trading Systems




                                                    Sybase   Historical Analytics,
                                                             Ad-hoc Analysis,
                                                      IQ
                                                             Compliance



© 2012 SAP AG. All rights reserved.                                                           4
Two approaches to CEP



                                              Continuous
                                      Rules
                                               Queries




© 2012 SAP AG. All rights reserved.                        5
Key Concepts

Input Streams                                           Derived Streams,
Events arrive on input streams                          Windows
                                                        Apply continuous query
                                                        operators to one or more
                                                        input streams to produce a
                                                        new stream




       Database Analogy                   Windows can Have State
       • Streams are like tables          • Retention rules define how many or how
       • Events are rows in the table       long events are kept
       • Fields in an event message are   • Opcodes in events can indicate
         columns in the table               insert/update/delete and can be
                                            automatically applied to the window



© 2012 SAP AG. All rights reserved.                                                  6
ESP Studio: Both visual and textual authoring

             Visual Dataflow Authoring                                               Language-based Authoring




 • ANALYST-LEVEL SKILLS (EXCEL, VBA)                                           • RAPID PROGRAMMING
 • EASY TO UNDERSTAND COMPLEX MODELS                                           • EASY TO USE LANGUAGE (CCL)
 • NO NEED TO LEARN LANGUAGE SYNTAX                                            • MODULAR, PROJECT BASED APPROACH


                                      ESP Studio supports both Visual and Textual authoring
                                  •   Visual diagram produces CCL (code-behind approach)
                                  •   User can switch back and forth between diagram and language
                                  •   Eclipse-based


© 2012 SAP AG. All rights reserved.                                                                                7
CCL: Continuous Computation Language
SQL-based Event Processing Language
  Leverage familiarity and simplicity of SQL

  Instead of “snapshot” queries, continuous queries
      Filter (WHERE), Aggregate (GROUP BY), Join, Compute

  Extensions for event streams
      Windows, Patterns


                  Example              CCL Query

       Calculation of 10              CREATE LOCAL WINDOW VWAP10
       minute VWAP                    PRIMARY KEY DEDUCED
                                      AS
                                      SELECT
                                       TICKER.Symbol AS Symbol ,
                                       Sum ( TICKER.Price * TICKER.Size) / Sum ( TICKER.Size)
                                      AS VWAP
                                      FROM TICKER KEEP 10 MINUTES
                                      GROUP BY TICKER.Symbol ;




© 2012 SAP AG. All rights reserved.                                                             8
Key CCL Language Features


•   Stateless and stateful elements.                 •   Full support for JOINS
–   STREAMS (stateless without keys)                 –   ANSI JOIN Syntax
–   WINDOWS (stateful with keys)                     –   Stream-Window Joins and Window-Window joins
–   Windows push updates and automatically process
    opcodes.                                         •   Filter

•   Retention policies on Windows                    •   Aggregate
–   Named windows (windows created with “CREATE      –   Group By, Group Filter, Group Order
    WINDOW..”)
–   Unnamed windows (FROM A KEEP 5 ROWS)             •   Pattern Matching
–   Time and Count based retention policies          –   Watch for specific sequence of events within time
                                                         interval
–   Custom windows with EventCache
                                                     –   Within or across streams
•   Parameters, Variables                            –   Pattern can include missing events
–   Variables can maintain state
                                                     •   Transform/Project
                                                     –   Change event schema, compute new fields


© 2012 SAP AG. All rights reserved.                                                                      9
SPLASH scripting adds extensibility to CCL

SPLASH (Stream Processing LAnguage SHell) was introduced in Aleri to provide
extensibility and overcome the limitations of SQL

It complements CCL, providing the ability to write custom functions and stream/window
operators using a simple, procedural language that is optimized for stream processing

Syntax is similar to C and Java, it’s spirit is closer to little languages like AWK or Perl

ESP 5.0 has full support for SPLASH

      Control Structures:              Data Structures:          Flex Streams:
      if, while, switch
      if (temperature < 0) {           -   Variables             - Custom event “handlers”
        display := 'below zero';       -   Vectors                 written in SPLASH
      } else if (temperature = 0) {    -   Dictionaries
        display := 'zero';
      } else {                         -   Event Cache
        display := 'above zero';
      }



 For more info see the SPLASH Tutorial on sybase.com (in the Aleri Product Documentation/Manuals)

© 2012 SAP AG. All rights reserved.                                                             10
Modularity

Benefits:
                                      CREATE MODULE
Facilitates re-use                    • Defines a module consisting of
                                        windows and streams
Simplifies team development           • Define inputs, outputs,
                                        parameters
Improves manageability of
large projects
                                      IMPORT
                                      • Equiv. to #include – include
                                        external .ccl file(s)
                                      • Beyond modules, re-use
                                        declarations, etc

                                      LOAD MODULE
                                      • At load point, define bindings
                                        and parameters
                                      • Same module can be loaded
                                        multiple times

© 2012 SAP AG. All rights reserved.                                      11
Support for External function libraries (UDF)


• Call out to external function libraries

• Support for C and Java

• Can be used to supplement built-in functions

• Can also be used to “trigger” external actions




© 2012 SAP AG. All rights reserved.                12
ESP Studio: RUN/TEST Tools


Single click to Run a project

Rich Suite of Testing, Tuning and Debugging tools
Stream viewer
Record/playback
Manual event input
Performance Monitor
Event Tracer
Debugger with Breakpoints

Multi-server control
View/monitor projects running on multiple servers and clusters




© 2012 SAP AG. All rights reserved.                              13
ESP Advanced Cluster Architecture

                                                Manager             Private
                                                                    Cloud
                                      Manager             Manager




                                                Manager




           Controller                      Controller                         Controller


          Project                         Project                             Project
            Project                         Project                             Project
             Project                         Project
                                               Project                           Project
               Project                          Project                            Project
                Project                                                             Project



© 2012 SAP AG. All rights reserved.                                                           14
ESP Cluster Architecture
Key Features


Manager
     •    Equi-peer management of cluster.
     •    Program deployment and lifecycle control.
     •    Program load balancing at deployment.
     •    Launcher failure detection.
     •    Container failure detection.
     •    Program failover.
     •    Publishes lifecycle updates for Managers, Controllers and Programs.
     •    Name resolution.

Controller
     •    Acts as a daemon for Managers to launch Container processes.
     •    Allows for launching of any configured Program type.

Container
     •    Process that hosts a Program (i.e. – esp_server).




© 2012 SAP AG. All rights reserved.                                             15
Choice of high availability configurations

                                                               FT Cluster
                                                                Manager

Configurable to your level of
availability and flexibility needs
Instant failover to "hot" spare
                                         Synchronized
• highest degree of availability          Hot Spare
• recovery in seconds; no data loss

Shared resources "warm" spares
• flexible configurations
• recovery in minutes
• parallel & pipeline configurations
                                        Parallel & Pipelined     Shared
                                                                  State
                                       Shared Warm Spares
All managed by fault tolerant
cluster manager




 © 2012 SAP AG. All rights reserved.                                        16
ADAPTERS



           Standard                        Optional             Custom
           (Built-in)                      (Add-on)             (SDK)
 • JMS, MQ,                           • Market Data          • C/C++
                                      • Reuters, NYSE Tech
   TIBCO                              • FIX                  • Java
 • Sockets                            • Rep Server           • .NET
 • Databases
 • Files
 • MS Excel
 • Email (out)



© 2012 SAP AG. All rights reserved.                                      17
Integration/Connectivity


                                                            Application with
           In-Process
                                      External Adapters      Native ESP
            Adapters
                                                               Support
 • Entirely under the                 • Independent of     • Embed ESP
   control of the ESP                   ESP Server           pub/sub API
   server.                            • Uses ESP             directly in
 • Performance                          pub/sub API          producer or
   advantages                         • TCP socket           consumer
 • No hot-standby at                    connectivity to      applications
   the adapter level                    ESP Server
 • C/C++ only                         • Auto-failover in
                                        hot-standby
                                        configurations
                                      • C/C++, Java,
                                        .NET


© 2012 SAP AG. All rights reserved.                                            18
USING Sybase Replication Server for Change Capture
Real-time change capture: turn database transactions into event streams




 Transactions             Database
 (insert, update,                     Replication   Replication
                                        Agent         Server      Real-time Event
     delete)
                                                                        Stream
                                                                                    SAP Sybase
                                                                                       ESP




© 2012 SAP AG. All rights reserved.                                                              19
High Level ESP Architecture
                                                                                                                                        Cluster Manager
                                                             Security                                   Load Balancing                          Failover        Lifecycle/Status

                                                                     Distributed Cache                                                    SDK Interface    URI Resolution



        Client
                                                                                                                                           Launcher
                                      SDK - .NET JAVAC++
                                                                                                                                          ESP Project


                                                              Security (Kerberos, PAM, SSL)
       Adapter                                                                                                                                     Query Engine



                                                                                                        Command & Control
                                                                                                                            SQL Query
                                                                                              Gateway                                                                                      SDK
        Studio                                                                                                                              Window                Adapter
                                                                                                                                                                                         External
                                                                                                                                            Stores              Framework                Adapter
                         Tools                                                                                                                                                              s
                                                                                                                                                                  Internal
                                                                                                                                                                  Adapter
                                 Compiler                                                                                                                             s




                                                                                                                                               Log
                                                                                                                                               File                                 Data
                                                                                                                                                                             Source/Destination


© 2012 SAP AG. All rights reserved.                                                                                                                                                                 20
What sets SAP Sybase ESP apart

•    Performance                                 •   State Management
         −   Scalable for extreme throughput          −   Unique ability to automatically apply
         −   Consistent low-latency                       incoming events as
         −   Only CEP vendor to submit to STAC            inserts/updates/deletes to a table
             benchmarking                             −   Simplifies modeling
•    SPLASH scripting                                 −   Extremely efficient
         −   Overcome limitations of SQL         •   Dynamic
         −   Flexibility and productivity             −   Add continuous queries to live system
•    Authoring flexibility                       •   High Availability
         −   Language or UI/IDE                       −   Hot-Hot with Auto-Failover
•    “Private Cloud” Architecture                •   Advanced Subscriptions
         −   Scalable, Dynamic                        −   Initial state followed by updates
                                                      −   Subscriptions with predicates




    © 2012 SAP AG. All rights reserved.                                                           21
High Performance
                 STAC Certified measurement of throughput and latency

     The only CEP vendor to publish STAC benchmarks

                                                                                    •   Linear scaling with addition of more
                                                                                        cores:
                                                                                          180,000 messages/sec on 16 cores
                                                                                          300,000 messages/sec on 24 cores

                                                                                    •   Consistent/predicable low latency.
                                                                                        Only minor increase in latency from
                                                                                        20,000 to 300,000 messages/sec:
                                                                                          Mean: 1.296 - 1.568 ms
                                                                                          Medium: 1.177 - 1.502 ms
                                                                                          Std Dev: 0.567 - 1.104 ms
                                                                                          Min: 0.091 – 0.115 ms
                                                                                          99th percentile: 2.479 – 3.165 ms
   Source: STAC Research Sep 08 – conducted against Aleri 3.1; 5.0 performance is
   similar




© 2012 SAP AG. All rights reserved.                                                                                     22
PANOPTICON EX
REAL-TIME DATA VISUALIZATION
Visually Rich Real-time Dashboards with
Historical Drill-down and Analysis




© 2012 SAP AG. All rights reserved.       24
Panopticon EX Features


Visual Data Analysis
Real-time streaming from Sybase ESP
Historic Time Series data from Sybase RAP or IQ

Drag-and-Drop Designer
Rich palette of charting objects
Simple configuration
No coding required

Multi-dimensional Analysis (in-memory OLAP)

Delivered via Desktop (thick client) or Web (browser)

SDK provides APIs for ability to customize, embed




© 2012 SAP AG. All rights reserved.                     25
Panopticon EX for ESP


Native integration with Sybase
   ESP, RAP, and IQ                      Panopticon EX
                                         Reduces Insight
True real-time dashboards,                  Latency
   subscribing to ESP streaming
   output                              It’s Not Just the Time it
                                       Takes to Get the Data
Seamless drill-down into                 It’s also the time it
  historical time series data in      takes to understand the
  Sybase RAP                                     data
                                           Rich Palette of
                                        Visualization Tools
                                        Designed to Make it
                                      Easier to Understand the
                                                Data




© 2012 SAP AG. All rights reserved.                                 26
Thank you

Contact information:

F name MI. L name
Title
Address
Phone number

More Related Content

PDF
Sap esp integration options
PDF
Event Stream Processing SAP
PDF
Sybase Complex Event Processing
PDF
Autodesk Technical Webinar: SAP HANA in-memory database
PDF
What's Planned for SAP HANA SPS10
PDF
SAP IQ 16 Product Annoucement
PDF
Big Data, Big Thinking: Simplified Architecture Webinar Fact Sheet
PDF
SAP HANA SPS10- Enterprise Information Management
Sap esp integration options
Event Stream Processing SAP
Sybase Complex Event Processing
Autodesk Technical Webinar: SAP HANA in-memory database
What's Planned for SAP HANA SPS10
SAP IQ 16 Product Annoucement
Big Data, Big Thinking: Simplified Architecture Webinar Fact Sheet
SAP HANA SPS10- Enterprise Information Management

What's hot (19)

PDF
SAP HANA SPS10- Security
PPTX
Why sap hana
PPTX
What's New in SPS11 Overview
PPT
Hana Training Day 1
PDF
SAP HANA SPS10- Workload Management
PPTX
Modern Data Warehousing with the Microsoft Analytics Platform System
PDF
SAP HANA SPS09 - Smart Data Streaming
PDF
Real-Time Loading to Sybase IQ
PDF
Spark Usage in Enterprise Business Operations
PDF
Open Innovation with Power Systems
PDF
The Impact of SAP Hana on the SAP Infrastructure Utility Services Marketplace
PPTX
Leveraging SAP, Hadoop, and Big Data to Redefine Business
PPTX
Analyzing the World's Largest Security Data Lake!
PDF
IBM Power8 announce
PPTX
Splunk Architecture
PPTX
HANA SPS07 Geospatial Processing
PPTX
Overview of Microsoft Appliances: Scaling SQL Server to Hundreds of Terabytes
PDF
Maximizing Database Tuning in SAP SQL Anywhere
PDF
97. SAP HANA como plataforma de desarrollo, combinando el mundo OLTP + OLAP
SAP HANA SPS10- Security
Why sap hana
What's New in SPS11 Overview
Hana Training Day 1
SAP HANA SPS10- Workload Management
Modern Data Warehousing with the Microsoft Analytics Platform System
SAP HANA SPS09 - Smart Data Streaming
Real-Time Loading to Sybase IQ
Spark Usage in Enterprise Business Operations
Open Innovation with Power Systems
The Impact of SAP Hana on the SAP Infrastructure Utility Services Marketplace
Leveraging SAP, Hadoop, and Big Data to Redefine Business
Analyzing the World's Largest Security Data Lake!
IBM Power8 announce
Splunk Architecture
HANA SPS07 Geospatial Processing
Overview of Microsoft Appliances: Scaling SQL Server to Hundreds of Terabytes
Maximizing Database Tuning in SAP SQL Anywhere
97. SAP HANA como plataforma de desarrollo, combinando el mundo OLTP + OLAP
Ad

Viewers also liked (6)

PDF
What's New in SAP Replication Server 15.7.1 SP100
PDF
Hyperparameter optimization with approximate gradient
DOCX
Modelos de Banco de dados e SGBDS
PPTX
Sybase: Power Designer
PDF
Sybase Unwired Platform 2.1 MBO best practices
What's New in SAP Replication Server 15.7.1 SP100
Hyperparameter optimization with approximate gradient
Modelos de Banco de dados e SGBDS
Sybase: Power Designer
Sybase Unwired Platform 2.1 MBO best practices
Ad

Similar to SAP Sybase Event Streaming Processing (20)

PDF
Complex Event Processing: What?, Why?, How?
PDF
Innovating the Real-Time Business with SAP BusinessObjects BI Solutions and S...
PPTX
SAP_HANA_FAQ
PPTX
Con2012 salmon impact_of_sap_hana_revolutionary_changes_for_sap_controlling_data
PPTX
Controlling 2012 Impact of SAP HANA
PDF
Good Data: Collaborative Analytics On Demand
PDF
Semantic Complex Event Processing at Sem Tech 2010
PDF
Workware systems company presentation web aug 11
PDF
Microsoft SQL Server - How to Collaboratively Manage Excel Data
PDF
IBM Cognos - IBM informations-integration för IBM Cognos användare
PDF
Ensuring Mobile BI Success
PPT
PPTX
Advanced Logging and Analysis for SOA, Social, Cloud and Big Data
DOC
SAP ABAP Online Training
KEY
Processing Big Data
PDF
Microsoft StreamInsight
PDF
BI Forum 2010 - High Performance BI: The Future of BI
PDF
JDE & Peoplesoft 2 _ Sam Sampathnathan _ Best Practices for Managing Your JD ...
PDF
Solutions for Sage Customers from Robert Lavery
PPTX
SAP HANA - Understanding the Basics
Complex Event Processing: What?, Why?, How?
Innovating the Real-Time Business with SAP BusinessObjects BI Solutions and S...
SAP_HANA_FAQ
Con2012 salmon impact_of_sap_hana_revolutionary_changes_for_sap_controlling_data
Controlling 2012 Impact of SAP HANA
Good Data: Collaborative Analytics On Demand
Semantic Complex Event Processing at Sem Tech 2010
Workware systems company presentation web aug 11
Microsoft SQL Server - How to Collaboratively Manage Excel Data
IBM Cognos - IBM informations-integration för IBM Cognos användare
Ensuring Mobile BI Success
Advanced Logging and Analysis for SOA, Social, Cloud and Big Data
SAP ABAP Online Training
Processing Big Data
Microsoft StreamInsight
BI Forum 2010 - High Performance BI: The Future of BI
JDE & Peoplesoft 2 _ Sam Sampathnathan _ Best Practices for Managing Your JD ...
Solutions for Sage Customers from Robert Lavery
SAP HANA - Understanding the Basics

More from Sybase Türkiye (20)

PDF
Italya Posta Teskilatı Sybase Afaria Kullaniyot
PDF
SAP REAL TIME DATA PLATFORM WITH SYBASE SUPPORT
PDF
Sybase IQ ile Muhteşem Performans
PDF
Mobil Uygulama Geliştirme Klavuzu
PDF
Mobile Device Management for Dummies
PDF
SAP Sybase Data Management
PDF
Sybase IQ ve Big Data
PDF
Sybase IQ ile Analitik Platform
PDF
PDF
Appcelerator report-q2-2012
PDF
Sybase PowerDesigner Vs Erwin
PDF
Elastic Platform for Business Analytics
PDF
Actionable Architecture
PDF
Information Architech and DWH with PowerDesigner
PDF
Why modeling matters ?
PDF
Welcome introduction
PDF
Mobile Application Strategy
PDF
Mobile is the new face of business
PPTX
Sybase SUP Mobil Uygulama Geliştirme Genel Bilgilendirme
PDF
Sybase IQ Big Data
Italya Posta Teskilatı Sybase Afaria Kullaniyot
SAP REAL TIME DATA PLATFORM WITH SYBASE SUPPORT
Sybase IQ ile Muhteşem Performans
Mobil Uygulama Geliştirme Klavuzu
Mobile Device Management for Dummies
SAP Sybase Data Management
Sybase IQ ve Big Data
Sybase IQ ile Analitik Platform
Appcelerator report-q2-2012
Sybase PowerDesigner Vs Erwin
Elastic Platform for Business Analytics
Actionable Architecture
Information Architech and DWH with PowerDesigner
Why modeling matters ?
Welcome introduction
Mobile Application Strategy
Mobile is the new face of business
Sybase SUP Mobil Uygulama Geliştirme Genel Bilgilendirme
Sybase IQ Big Data

Recently uploaded (20)

PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
cuic standard and advanced reporting.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The AUB Centre for AI in Media Proposal.docx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
20250228 LYD VKU AI Blended-Learning.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Machine learning based COVID-19 study performance prediction
Chapter 3 Spatial Domain Image Processing.pdf
Review of recent advances in non-invasive hemoglobin estimation
cuic standard and advanced reporting.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Mobile App Security Testing_ A Comprehensive Guide.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Network Security Unit 5.pdf for BCA BBA.
Encapsulation_ Review paper, used for researhc scholars
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Digital-Transformation-Roadmap-for-Companies.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx

SAP Sybase Event Streaming Processing

  • 1. High Performance CEP: The SAP Sybase Event Stream Processor Technical Product Overview Speaker’s Name/Department (delete if not needed) Month 00, 2011
  • 2. Insight from fast-moving data: Continuous Intelligence Analyze events as they occur • Continuous insight • Immediate response Rapid application development • Reduce/eliminate dependence on specialist programming skills • Cut implementation/deployment time • Improve business agility Non-intrusive deployment • Event-driven architecture • Adapt to existing data models © 2012 SAP AG. All rights reserved. 2
  • 3. The SAP Sybase Event Stream Processor INPUT Studio STREAMS (Authoring) Reporting Sensor Data Tools SAP® Dashboard ? Transactions Sybase® Applications Message Events ESP Bus SAP HANA, Sybase IQ Reference Data • Unlimited number of input • Send output to apps, dashboards streams • Capture data in SAP HANA, Sybase IQ, • Incoming data is processed as it Sybase RAP for historical analysis, arrives, according to the compliance business logic defined using high level authoring tools © 2012 SAP AG. All rights reserved. 3
  • 4. Sample Architecture of a CEP-based Application: Real-time P&L Market Prices  Reuters Live Dashboard Market Data Middleware  Bloomberg  Nasdaq  … Order Management Systems Alerts Trading Systems Sybase Historical Analytics, Ad-hoc Analysis, IQ Compliance © 2012 SAP AG. All rights reserved. 4
  • 5. Two approaches to CEP Continuous Rules Queries © 2012 SAP AG. All rights reserved. 5
  • 6. Key Concepts Input Streams Derived Streams, Events arrive on input streams Windows Apply continuous query operators to one or more input streams to produce a new stream Database Analogy Windows can Have State • Streams are like tables • Retention rules define how many or how • Events are rows in the table long events are kept • Fields in an event message are • Opcodes in events can indicate columns in the table insert/update/delete and can be automatically applied to the window © 2012 SAP AG. All rights reserved. 6
  • 7. ESP Studio: Both visual and textual authoring Visual Dataflow Authoring Language-based Authoring • ANALYST-LEVEL SKILLS (EXCEL, VBA) • RAPID PROGRAMMING • EASY TO UNDERSTAND COMPLEX MODELS • EASY TO USE LANGUAGE (CCL) • NO NEED TO LEARN LANGUAGE SYNTAX • MODULAR, PROJECT BASED APPROACH ESP Studio supports both Visual and Textual authoring • Visual diagram produces CCL (code-behind approach) • User can switch back and forth between diagram and language • Eclipse-based © 2012 SAP AG. All rights reserved. 7
  • 8. CCL: Continuous Computation Language SQL-based Event Processing Language Leverage familiarity and simplicity of SQL Instead of “snapshot” queries, continuous queries Filter (WHERE), Aggregate (GROUP BY), Join, Compute Extensions for event streams Windows, Patterns Example CCL Query Calculation of 10 CREATE LOCAL WINDOW VWAP10 minute VWAP PRIMARY KEY DEDUCED AS SELECT TICKER.Symbol AS Symbol , Sum ( TICKER.Price * TICKER.Size) / Sum ( TICKER.Size) AS VWAP FROM TICKER KEEP 10 MINUTES GROUP BY TICKER.Symbol ; © 2012 SAP AG. All rights reserved. 8
  • 9. Key CCL Language Features • Stateless and stateful elements. • Full support for JOINS – STREAMS (stateless without keys) – ANSI JOIN Syntax – WINDOWS (stateful with keys) – Stream-Window Joins and Window-Window joins – Windows push updates and automatically process opcodes. • Filter • Retention policies on Windows • Aggregate – Named windows (windows created with “CREATE – Group By, Group Filter, Group Order WINDOW..”) – Unnamed windows (FROM A KEEP 5 ROWS) • Pattern Matching – Time and Count based retention policies – Watch for specific sequence of events within time interval – Custom windows with EventCache – Within or across streams • Parameters, Variables – Pattern can include missing events – Variables can maintain state • Transform/Project – Change event schema, compute new fields © 2012 SAP AG. All rights reserved. 9
  • 10. SPLASH scripting adds extensibility to CCL SPLASH (Stream Processing LAnguage SHell) was introduced in Aleri to provide extensibility and overcome the limitations of SQL It complements CCL, providing the ability to write custom functions and stream/window operators using a simple, procedural language that is optimized for stream processing Syntax is similar to C and Java, it’s spirit is closer to little languages like AWK or Perl ESP 5.0 has full support for SPLASH Control Structures: Data Structures: Flex Streams: if, while, switch if (temperature < 0) { - Variables - Custom event “handlers” display := 'below zero'; - Vectors written in SPLASH } else if (temperature = 0) { - Dictionaries display := 'zero'; } else { - Event Cache display := 'above zero'; } For more info see the SPLASH Tutorial on sybase.com (in the Aleri Product Documentation/Manuals) © 2012 SAP AG. All rights reserved. 10
  • 11. Modularity Benefits: CREATE MODULE Facilitates re-use • Defines a module consisting of windows and streams Simplifies team development • Define inputs, outputs, parameters Improves manageability of large projects IMPORT • Equiv. to #include – include external .ccl file(s) • Beyond modules, re-use declarations, etc LOAD MODULE • At load point, define bindings and parameters • Same module can be loaded multiple times © 2012 SAP AG. All rights reserved. 11
  • 12. Support for External function libraries (UDF) • Call out to external function libraries • Support for C and Java • Can be used to supplement built-in functions • Can also be used to “trigger” external actions © 2012 SAP AG. All rights reserved. 12
  • 13. ESP Studio: RUN/TEST Tools Single click to Run a project Rich Suite of Testing, Tuning and Debugging tools Stream viewer Record/playback Manual event input Performance Monitor Event Tracer Debugger with Breakpoints Multi-server control View/monitor projects running on multiple servers and clusters © 2012 SAP AG. All rights reserved. 13
  • 14. ESP Advanced Cluster Architecture Manager Private Cloud Manager Manager Manager Controller Controller Controller Project Project Project Project Project Project Project Project Project Project Project Project Project Project Project © 2012 SAP AG. All rights reserved. 14
  • 15. ESP Cluster Architecture Key Features Manager • Equi-peer management of cluster. • Program deployment and lifecycle control. • Program load balancing at deployment. • Launcher failure detection. • Container failure detection. • Program failover. • Publishes lifecycle updates for Managers, Controllers and Programs. • Name resolution. Controller • Acts as a daemon for Managers to launch Container processes. • Allows for launching of any configured Program type. Container • Process that hosts a Program (i.e. – esp_server). © 2012 SAP AG. All rights reserved. 15
  • 16. Choice of high availability configurations FT Cluster Manager Configurable to your level of availability and flexibility needs Instant failover to "hot" spare Synchronized • highest degree of availability Hot Spare • recovery in seconds; no data loss Shared resources "warm" spares • flexible configurations • recovery in minutes • parallel & pipeline configurations Parallel & Pipelined Shared State Shared Warm Spares All managed by fault tolerant cluster manager © 2012 SAP AG. All rights reserved. 16
  • 17. ADAPTERS Standard Optional Custom (Built-in) (Add-on) (SDK) • JMS, MQ, • Market Data • C/C++ • Reuters, NYSE Tech TIBCO • FIX • Java • Sockets • Rep Server • .NET • Databases • Files • MS Excel • Email (out) © 2012 SAP AG. All rights reserved. 17
  • 18. Integration/Connectivity Application with In-Process External Adapters Native ESP Adapters Support • Entirely under the • Independent of • Embed ESP control of the ESP ESP Server pub/sub API server. • Uses ESP directly in • Performance pub/sub API producer or advantages • TCP socket consumer • No hot-standby at connectivity to applications the adapter level ESP Server • C/C++ only • Auto-failover in hot-standby configurations • C/C++, Java, .NET © 2012 SAP AG. All rights reserved. 18
  • 19. USING Sybase Replication Server for Change Capture Real-time change capture: turn database transactions into event streams Transactions Database (insert, update, Replication Replication Agent Server Real-time Event delete) Stream SAP Sybase ESP © 2012 SAP AG. All rights reserved. 19
  • 20. High Level ESP Architecture Cluster Manager Security Load Balancing Failover Lifecycle/Status Distributed Cache SDK Interface URI Resolution Client Launcher SDK - .NET JAVAC++ ESP Project Security (Kerberos, PAM, SSL) Adapter Query Engine Command & Control SQL Query Gateway SDK Studio Window Adapter External Stores Framework Adapter Tools s Internal Adapter Compiler s Log File Data Source/Destination © 2012 SAP AG. All rights reserved. 20
  • 21. What sets SAP Sybase ESP apart • Performance • State Management − Scalable for extreme throughput − Unique ability to automatically apply − Consistent low-latency incoming events as − Only CEP vendor to submit to STAC inserts/updates/deletes to a table benchmarking − Simplifies modeling • SPLASH scripting − Extremely efficient − Overcome limitations of SQL • Dynamic − Flexibility and productivity − Add continuous queries to live system • Authoring flexibility • High Availability − Language or UI/IDE − Hot-Hot with Auto-Failover • “Private Cloud” Architecture • Advanced Subscriptions − Scalable, Dynamic − Initial state followed by updates − Subscriptions with predicates © 2012 SAP AG. All rights reserved. 21
  • 22. High Performance STAC Certified measurement of throughput and latency The only CEP vendor to publish STAC benchmarks • Linear scaling with addition of more cores: 180,000 messages/sec on 16 cores 300,000 messages/sec on 24 cores • Consistent/predicable low latency. Only minor increase in latency from 20,000 to 300,000 messages/sec: Mean: 1.296 - 1.568 ms Medium: 1.177 - 1.502 ms Std Dev: 0.567 - 1.104 ms Min: 0.091 – 0.115 ms 99th percentile: 2.479 – 3.165 ms Source: STAC Research Sep 08 – conducted against Aleri 3.1; 5.0 performance is similar © 2012 SAP AG. All rights reserved. 22
  • 24. Visually Rich Real-time Dashboards with Historical Drill-down and Analysis © 2012 SAP AG. All rights reserved. 24
  • 25. Panopticon EX Features Visual Data Analysis Real-time streaming from Sybase ESP Historic Time Series data from Sybase RAP or IQ Drag-and-Drop Designer Rich palette of charting objects Simple configuration No coding required Multi-dimensional Analysis (in-memory OLAP) Delivered via Desktop (thick client) or Web (browser) SDK provides APIs for ability to customize, embed © 2012 SAP AG. All rights reserved. 25
  • 26. Panopticon EX for ESP Native integration with Sybase ESP, RAP, and IQ Panopticon EX Reduces Insight True real-time dashboards, Latency subscribing to ESP streaming output  It’s Not Just the Time it Takes to Get the Data Seamless drill-down into  It’s also the time it historical time series data in takes to understand the Sybase RAP data Rich Palette of Visualization Tools Designed to Make it Easier to Understand the Data © 2012 SAP AG. All rights reserved. 26
  • 27. Thank you Contact information: F name MI. L name Title Address Phone number