SlideShare a Scribd company logo
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
● Complex Event Processing
What ?
Why ?
● WSO2 Complex Event Processor
Scalability
Edge Computing
● Usecases
● What’s new is WSO2 CEP 4.0 ?
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
● Amount of data you analyse are big
● You don’t need data for long time
● You don’t want to store all the data
● Time critical analysis
○ Finding opportunities before they’re gone
○ Identify threats beforehand
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
• Filters & Transformations
• Windows and Aggregations
• Joins
• Sequences and Patterns
• Event Tables
Stateless
• Filters & Transformations
Stateful Inmemory
• Windows and Aggregations
• Joins
• Sequences and Patterns
Stateful Persisted
• Event Tables
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
• Vertical Scaling
• Horizontal Scaling
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
E.g. Calculate Mean
E.g. Calculate Mean
E.g. Calculate Mean
How about scaling median ?
How about scaling median ?
If & only if we can partition !
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
Spark Streaming
• Supports distributed processing
• Runs micro batches
• Not supports pattern & sequence detection
Spark Streaming
• Supports distributed processing
• Runs micro batches
• Not supports pattern & sequence detection
Apache Storm
• Supports distributed processing
• Stream processing engine
Advantages
• Supports distributed processing
• Supports Partitioning
• Extendable
• Open Source
Disadvantages
• Need to write Java code
• Need to start from basic principles ( & data structures )
• Adoption for change is slow
• No support to govern artifacts
Advantages
• Supports distributed processing
• Supports Partitioning
• Extendable
• Open Source
Disadvantages
• No need to write Java code (Supports SQL like query
language)
• No need to start from basic principles (Supports high level
language)
• Adoption for change is fast
• Govern artifacts using Toolboxes
• etc ...
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
define stream StockStream
(symbol string, volume int, price double);
@name(‘Filter Query’)
from StockStream[price > 75]
select *
insert into HighPriceStockStream ;
@name(‘Window Query’)
from HighPriceStockStream#window.time(10 min)
select symbol, sum(volume) as sumVolume
insert into ResultStockStream ;
define stream StockStream
(symbol string, volume int, price double);
@name(‘Filter Query’)
from StockStream[price > 75]
select *
insert into HighPriceStockStream ;
@name(‘Window Query’)
partition with (symbol of HighPriceStockStream)
begin
from HighPriceStockStream#window.time(10 min)
select symbol, sum(volume) as sumVolume
insert into ResultStockStream ;
end;
define stream StockStream
(symbol string, volume int, price double);
@name(Filter Query’)
@dist(parallel= ‘3')
from StockStream[price > 75]
select *
insert into HightPriceStockStream ;
@name(‘Window Query’)
@dist(parallel= ‘2')
partition with (symbol of HighPriceStockStream)
begin
from HighPriceStockStream#window.time(10 min)
select symbol, sum(volume) as sumVolume
insert into ResultStockStream ;
end;
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu
Siddhi CEP
Siddhi CEP
• System Monitoring (Logs, Servers)
• Finance (Financial trading)
• Banking (Credit card fraud detection)
• Marketing (Location & time based advertising)
• Logistics (Taxi services, Vehicle parking)
• Healthcare
• E-commerce (Online retailers)
• Telecommunication (Mobile offers)
• System automation (Auto scaling)
• IoT (Smart home, Smart buildings)
• ...
• Distributed processing with Apache Storm
• Improved High Availability
• Improved Siddhi Query Language
• Toolbox Support
• Realtime Dashboard
• Websocket + MQTT Support
And lots of extensions
• Geo
• Timeseries
• NLP
• PMML & WSO2 ML
Try out CEP 4.0 Alpha : https://github.com/wso2/product-
cep/releases
Scalable Event Processing with WSO2CEP @  WSO2Con2015eu

More Related Content

PDF
Introducing the WSO2 Complex Event Processor
PDF
Spark Summit - Stratio Streaming
PDF
Lambda at Weather Scale - Cassandra Summit 2015
PPTX
Introduction to WSO2 Data Analytics Platform
PDF
Cassandra SF 2015 - Repeatable, Scalable, Reliable, Observable Cassandra
PDF
Proofpoint: Fraud Detection and Security on Social Media
PDF
Complex Event Processing in Practice at jDays 2012
PDF
Battery Ventures: Simulating and Visualizing Large Scale Cassandra Deployments
Introducing the WSO2 Complex Event Processor
Spark Summit - Stratio Streaming
Lambda at Weather Scale - Cassandra Summit 2015
Introduction to WSO2 Data Analytics Platform
Cassandra SF 2015 - Repeatable, Scalable, Reliable, Observable Cassandra
Proofpoint: Fraud Detection and Security on Social Media
Complex Event Processing in Practice at jDays 2012
Battery Ventures: Simulating and Visualizing Large Scale Cassandra Deployments

What's hot (20)

PDF
Big data serving: Processing and inference at scale in real time
PDF
WSO2 Stream Processor: Graphical Editor, HTTP & Message Trace Analytics and m...
PPTX
Always On: Building Highly Available Applications on Cassandra
PDF
codecentric AG: CQRS and Event Sourcing Applications with Cassandra
PPTX
from source to solution - building a system for event-oriented data
PDF
Siddhi - cloud-native stream processor
PDF
"Source Code Abstracts Classification Using CNN", Vadim Markovtsev, Lead Soft...
PDF
New Analytics Toolbox DevNexus 2015
PDF
Capital One: Using Cassandra In Building A Reporting Platform
PDF
Event driven architectures with Kinesis
PDF
netflix-real-time-data-strata-talk
PPTX
Introduction to WSO2 Analytics Platform: 2016 Q2 Update
PPTX
Building a system for machine and event-oriented data - Data Day Seattle 2015
PDF
Introducing Kafka Connect and Implementing Custom Connectors
PPTX
Building a system for machine and event-oriented data - Velocity, Santa Clara...
PDF
Intelligent integration with WSO2 ESB & WSO2 CEP
PDF
Macy's: Changing Engines in Mid-Flight
PDF
Cassandra as event sourced journal for big data analytics
PDF
British Gas Connected Homes: Data Engineering
PDF
Azure + DataStax Enterprise Powers Office 365 Per User Store
Big data serving: Processing and inference at scale in real time
WSO2 Stream Processor: Graphical Editor, HTTP & Message Trace Analytics and m...
Always On: Building Highly Available Applications on Cassandra
codecentric AG: CQRS and Event Sourcing Applications with Cassandra
from source to solution - building a system for event-oriented data
Siddhi - cloud-native stream processor
"Source Code Abstracts Classification Using CNN", Vadim Markovtsev, Lead Soft...
New Analytics Toolbox DevNexus 2015
Capital One: Using Cassandra In Building A Reporting Platform
Event driven architectures with Kinesis
netflix-real-time-data-strata-talk
Introduction to WSO2 Analytics Platform: 2016 Q2 Update
Building a system for machine and event-oriented data - Data Day Seattle 2015
Introducing Kafka Connect and Implementing Custom Connectors
Building a system for machine and event-oriented data - Velocity, Santa Clara...
Intelligent integration with WSO2 ESB & WSO2 CEP
Macy's: Changing Engines in Mid-Flight
Cassandra as event sourced journal for big data analytics
British Gas Connected Homes: Data Engineering
Azure + DataStax Enterprise Powers Office 365 Per User Store
Ad

Similar to Scalable Event Processing with WSO2CEP @ WSO2Con2015eu (20)

PDF
WSO2 Product Release Webinar: WSO2 Complex Event Processor 4.0
PPT
Scalable Realtime Analytics with declarative SQL like Complex Event Processin...
PDF
ACM DEBS 2015: Realtime Streaming Analytics Patterns
PDF
DEBS 2015 Tutorial : Patterns for Realtime Streaming Analytics
PDF
WSO2 Product Release Webinar - WSO2 Complex Event Processor
PPTX
Data to Insight in a Flash: Introduction to Real-Time Analytics with WSO2 Com...
PDF
Complex Event Processor 3.0.0 - An overview of upcoming features
PPTX
WSO2Con USA 2015: WSO2 Analytics Platform - The One Stop Shop for All Your Da...
PDF
WSO2 Complex Event Processor
PDF
WSO2 Complex Event Processor - Product Overview
PDF
WSO2Con ASIA 2016: WSO2 Analytics Platform: The One Stop Shop for All Your Da...
PDF
The Rise of Streaming SQL
PDF
[WSO2Con USA 2018] The Rise of Streaming SQL
PDF
Strtio Spark Streaming + Siddhi CEP Engine
PDF
WSO2 Analytics Platform: The one stop shop for all your data needs
PDF
WSO2 Analytics Platform - The one stop shop for all your data needs
PDF
WSO2 Product Release Webinar - Introducing the WSO2 Complex Event Processor
PDF
Discover Data That Matters- Deep dive into WSO2 Analytics
PDF
[WSO2Con EU 2018] The Rise of Streaming SQL
PDF
Data Ingestion in Big Data and IoT platforms
WSO2 Product Release Webinar: WSO2 Complex Event Processor 4.0
Scalable Realtime Analytics with declarative SQL like Complex Event Processin...
ACM DEBS 2015: Realtime Streaming Analytics Patterns
DEBS 2015 Tutorial : Patterns for Realtime Streaming Analytics
WSO2 Product Release Webinar - WSO2 Complex Event Processor
Data to Insight in a Flash: Introduction to Real-Time Analytics with WSO2 Com...
Complex Event Processor 3.0.0 - An overview of upcoming features
WSO2Con USA 2015: WSO2 Analytics Platform - The One Stop Shop for All Your Da...
WSO2 Complex Event Processor
WSO2 Complex Event Processor - Product Overview
WSO2Con ASIA 2016: WSO2 Analytics Platform: The One Stop Shop for All Your Da...
The Rise of Streaming SQL
[WSO2Con USA 2018] The Rise of Streaming SQL
Strtio Spark Streaming + Siddhi CEP Engine
WSO2 Analytics Platform: The one stop shop for all your data needs
WSO2 Analytics Platform - The one stop shop for all your data needs
WSO2 Product Release Webinar - Introducing the WSO2 Complex Event Processor
Discover Data That Matters- Deep dive into WSO2 Analytics
[WSO2Con EU 2018] The Rise of Streaming SQL
Data Ingestion in Big Data and IoT platforms
Ad

More from Sriskandarajah Suhothayan (7)

PDF
Patterns for Deploying Analytics in the Real World
PDF
Sensing the world with Data of Things
PDF
Sensing the world with data of things
PDF
An introduction to the WSO2 Analytics Platform
PDF
Make it fast for everyone - performance and middleware design
PDF
Gather those events : Instrumenting everything for analysis
PDF
Patterns for Deploying Analytics in the Real World
Sensing the world with Data of Things
Sensing the world with data of things
An introduction to the WSO2 Analytics Platform
Make it fast for everyone - performance and middleware design
Gather those events : Instrumenting everything for analysis

Recently uploaded (20)

PPT
Reliability_Chapter_ presentation 1221.5784
PDF
Fluorescence-microscope_Botany_detailed content
PDF
Foundation of Data Science unit number two notes
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
05. PRACTICAL GUIDE TO MICROSOFT EXCEL.pptx
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPTX
Global journeys: estimating international migration
PPTX
Major-Components-ofNKJNNKNKNKNKronment.pptx
PDF
Introduction to Business Data Analytics.
PDF
Mega Projects Data Mega Projects Data
PPTX
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
PPT
Quality review (1)_presentation of this 21
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Reliability_Chapter_ presentation 1221.5784
Fluorescence-microscope_Botany_detailed content
Foundation of Data Science unit number two notes
Clinical guidelines as a resource for EBP(1).pdf
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
05. PRACTICAL GUIDE TO MICROSOFT EXCEL.pptx
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Miokarditis (Inflamasi pada Otot Jantung)
IBA_Chapter_11_Slides_Final_Accessible.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
Global journeys: estimating international migration
Major-Components-ofNKJNNKNKNKNKronment.pptx
Introduction to Business Data Analytics.
Mega Projects Data Mega Projects Data
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
Quality review (1)_presentation of this 21
Business Acumen Training GuidePresentation.pptx
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
The THESIS FINAL-DEFENSE-PRESENTATION.pptx

Scalable Event Processing with WSO2CEP @ WSO2Con2015eu

  • 2. ● Complex Event Processing What ? Why ? ● WSO2 Complex Event Processor Scalability Edge Computing ● Usecases ● What’s new is WSO2 CEP 4.0 ?
  • 6. ● Amount of data you analyse are big ● You don’t need data for long time ● You don’t want to store all the data ● Time critical analysis ○ Finding opportunities before they’re gone ○ Identify threats beforehand
  • 9. • Filters & Transformations • Windows and Aggregations • Joins • Sequences and Patterns • Event Tables
  • 10. Stateless • Filters & Transformations Stateful Inmemory • Windows and Aggregations • Joins • Sequences and Patterns Stateful Persisted • Event Tables
  • 12. • Vertical Scaling • Horizontal Scaling
  • 17. How about scaling median ?
  • 18. How about scaling median ? If & only if we can partition !
  • 20. Spark Streaming • Supports distributed processing • Runs micro batches • Not supports pattern & sequence detection
  • 21. Spark Streaming • Supports distributed processing • Runs micro batches • Not supports pattern & sequence detection Apache Storm • Supports distributed processing • Stream processing engine
  • 22. Advantages • Supports distributed processing • Supports Partitioning • Extendable • Open Source Disadvantages • Need to write Java code • Need to start from basic principles ( & data structures ) • Adoption for change is slow • No support to govern artifacts
  • 23. Advantages • Supports distributed processing • Supports Partitioning • Extendable • Open Source Disadvantages • No need to write Java code (Supports SQL like query language) • No need to start from basic principles (Supports high level language) • Adoption for change is fast • Govern artifacts using Toolboxes • etc ...
  • 28. define stream StockStream (symbol string, volume int, price double); @name(‘Filter Query’) from StockStream[price > 75] select * insert into HighPriceStockStream ; @name(‘Window Query’) from HighPriceStockStream#window.time(10 min) select symbol, sum(volume) as sumVolume insert into ResultStockStream ;
  • 29. define stream StockStream (symbol string, volume int, price double); @name(‘Filter Query’) from StockStream[price > 75] select * insert into HighPriceStockStream ; @name(‘Window Query’) partition with (symbol of HighPriceStockStream) begin from HighPriceStockStream#window.time(10 min) select symbol, sum(volume) as sumVolume insert into ResultStockStream ; end;
  • 30. define stream StockStream (symbol string, volume int, price double); @name(Filter Query’) @dist(parallel= ‘3') from StockStream[price > 75] select * insert into HightPriceStockStream ; @name(‘Window Query’) @dist(parallel= ‘2') partition with (symbol of HighPriceStockStream) begin from HighPriceStockStream#window.time(10 min) select symbol, sum(volume) as sumVolume insert into ResultStockStream ; end;
  • 34. • System Monitoring (Logs, Servers) • Finance (Financial trading) • Banking (Credit card fraud detection) • Marketing (Location & time based advertising) • Logistics (Taxi services, Vehicle parking) • Healthcare • E-commerce (Online retailers) • Telecommunication (Mobile offers) • System automation (Auto scaling) • IoT (Smart home, Smart buildings) • ...
  • 35. • Distributed processing with Apache Storm • Improved High Availability • Improved Siddhi Query Language • Toolbox Support • Realtime Dashboard • Websocket + MQTT Support And lots of extensions • Geo • Timeseries • NLP • PMML & WSO2 ML Try out CEP 4.0 Alpha : https://github.com/wso2/product- cep/releases