SlideShare une entreprise Scribd logo
1  sur  21
Télécharger pour lire hors ligne
Srinath Perera
VP Research, WSO2
srinath@wso2.com
The Rise of Streaming SQL and
Evolution of Streaming Applications
What is Streaming?
• A Stream is series of Events
• Query Data Streams
• Detect conditions fast (within the time of
receiving the data, - 10ms-1m).
e.g. receive an alert by querying a data streams coming from a
temperature sensor and detecting when the temperature has
reached the freezing point.
Almost all new data is Streaming
Almost all new data is
streams, even batch
data are at one point
potential streaming
data
One can choose to consume them as streaming data or batch
data based on value of responding to them fast
• Transaction data
• Log data
• Sensor data
• Health data
• Traffic Data
Stream Processing Market
Lack of proficient
developers are slowing it
Success depends on
Analytics
Positive trends
• Microservices and Observability
• Security analytics
• EDA and Messaging
Lot of analytics and machine learning
use cases will eventually shift to stream
processing
Stream Processing and IoT depends on each
Other
Market
200-500m
30% growth
Building a Streaming App
Code it Yourself
• Code it yourself
• Publish data to a message
topic
• Write a actor: Subscribe,
process, and put back to a
topic
Use a Streaming SQL based Stream
Processor
• Just write Streaming SQL ( will discuss
later)
Use a Stream Processors
• You just write actor and
stream processor
handles data flow, scale,
failures
History of Stream Processing
Started with active
databases, users want
to act when data met
a condition
TelegraphCQ
(based
PostgreSQL)
People thought about
this outside of
databases as well
Stream
Processing
Complex
Event
Processing
History of Stream Processing
Stream Processing
• Create a graph of actors
and run them using many
machines
• e.g. Aurora, PIPES,
STREAM, Borealis
( academic)
Complex Event Processing
Processing
• Provide a query language
and focused on effect
matching on 1-2 nodes.
• SASE, Esper, Cayuga, and
Siddhi (powers WSO2 SP),
Apama, IBM Infosphere
Niche Applications: Stock Markets, Monitoring and
Alerts, Surveillance
Stream Processing enters Big Data
Yahoo S4 (2010)
Twitter Storm (2011)
Both were donated to Apache
Described as “like
Hadoop, but realtime”
Wide adoption and
visibility
Spark
Streaming,
Samza, Flink
Rise of Streaming SQL
Apache based SP
engines used Code as
API
Big Data Switched to SQL from
MapReduce
Merged to support SQL over many
nodes
Streaming SQL
Apache Storm
Apache Flink
WSO2 CEP->WSO2 SP
Apache Kafka (KSQL)
Apache Samza and Calcite
CEPStream
Processing
What is Streaming SQL?
Time bID T
07:23:30 B1 210
07:23:37 B1 234
…
…
A Stream is a table never ending table, think of table
where new data (events) kept adding
Select bid, t*7/5 + 32 as tF
from BoilerStream Where t >
350
Streaming SQL
is SQL written
in such a never
ending table
Unlike SQL that returns data
when query us done,
Streaming SQL outputs data
as new events are added
You get a trigger whenever
data matches
Why Streaming SQL?
core operations covers
90% of use cases
without code, rest
handled via extensions
Easy to learn for the many people
who know SQL.
It's expressive, short, sweet and fast!!
Manipulate streaming data
declaratively without having to write
code.
A query engine can
better optimize the
executions with a
streaming SQL
model.
Common Solutions with SP
Detect a condition and trigger an alert
that bring user back to dashboard
Condition can
be
• a simple limit
• A complex
trend over time
• correlations
across streams
• a machine
learning model
Detect a condition and
update a dashboard
Train a ML
model apply over
steaming data,
and switch
models as they
drift
Detect a condition
and trigger an action
Calculate short
term values, store them
long term in a database,
and show single view
}
Stream Processor are Stateful
Stream Processors works off memory,
that is the secret of their performance
in 50K plus throughput
To avoid this,
Stream processors
must have HA
Stream Queries never ends
When a stream
processor failed,
which it eventually
must, the streaming
App will loose state
Most stream queries are stateful
(e.g. patterns, windows, joins)
}
Most Stream Processors are Obese
Most Stream Processors need 5+
nodes to setup a HA environment
Then minimal HA
size matters.
Their use cases are large, so are
there deployments. 5 plus nodes
are not a problem for large use
deployments
However, given a
Stream Processors can
do 50,000 events per
second, most use cases
need a one node.
Most famous Stream Processors
come from large internet
companies
}
Stream Processing need ML
Use Streaming
machine learning that
learns on the fly
Train the models offline
and apply online.
When model drift from
data, retrain and swap
the model.
As stream processing is the real
time extension of batch
processing.
Most batch ML use cases will
apply in realtime as well.
}
SP need Advanced Query Authoring Environments
We need integrated
development environments that
let developers write, simulate,
debug, trace, and verify and do it
Lack of programmers who
are comfortable with stream
processing is holding it back
Stream processing
queries are like regular
expressions, which are
• Based on simple rules
• very powerful
• tough on new
programmers
}
}
Stream Processors are
So Far
Two branches: Stream
Processing and CEP
Obese
Rise of
Streaming SQL
Introduction to Stream
Processing
Apache Storm and
inclusion to Big
Data
Stateful and Need HA
Need ML
Need Authoring Tools
WSO2 SP
When to use WSO2 SP?
When you want to detect complex
patterns over time
When you want to fuse data in motion
and data at rest in same application
When you are not sure about the
final load ( scale with Kafa with
same queries)
When you want to do ML
within your queries
When your load is less than
100,000 events/sec ( WSO2 SP
support with just two nodes)
When you want your
end users to tweak your
queries
Next Steps
Checkout WSO2 Stream
Processor Learn about Streaming
Applications with
13 Stream Processing Patterns
for building Streaming
Applications
Webinar: Distributed
Stream Processing with
WSO2 SP
Learn about Streaming
SQL with Streaming SQL
101
Webinar: WSO2 Stream
Processor
Questions?
I write at
https://medium.com/@srinathperera

Contenu connexe

Tendances

Tendances (20)

Azure Machine Learning
Azure Machine LearningAzure Machine Learning
Azure Machine Learning
 
Clickstream & Social Media Analysis using Apache Spark
Clickstream & Social Media Analysis using Apache SparkClickstream & Social Media Analysis using Apache Spark
Clickstream & Social Media Analysis using Apache Spark
 
Introduction to Azure machine learning
Introduction to Azure machine learningIntroduction to Azure machine learning
Introduction to Azure machine learning
 
The Machine Learning Workflow with Azure
The Machine Learning Workflow with AzureThe Machine Learning Workflow with Azure
The Machine Learning Workflow with Azure
 
Intro to Machine Learning with H2O and AWS
Intro to Machine Learning with H2O and AWSIntro to Machine Learning with H2O and AWS
Intro to Machine Learning with H2O and AWS
 
Big Data in Production: Lessons from Running in the Cloud
Big Data in Production: Lessons from Running in the CloudBig Data in Production: Lessons from Running in the Cloud
Big Data in Production: Lessons from Running in the Cloud
 
Fast Data Intelligence in the IoT - real-time data analytics with Spark
Fast Data Intelligence in the IoT - real-time data analytics with SparkFast Data Intelligence in the IoT - real-time data analytics with Spark
Fast Data Intelligence in the IoT - real-time data analytics with Spark
 
Afternoons with Azure - Azure Machine Learning
Afternoons with Azure - Azure Machine Learning Afternoons with Azure - Azure Machine Learning
Afternoons with Azure - Azure Machine Learning
 
Getting Started With Dato - August 2015
Getting Started With Dato - August 2015Getting Started With Dato - August 2015
Getting Started With Dato - August 2015
 
Building predictive models in Azure Machine Learning
Building predictive models in Azure Machine LearningBuilding predictive models in Azure Machine Learning
Building predictive models in Azure Machine Learning
 
Bi 2.0 hadoop everywhere
Bi 2.0   hadoop everywhereBi 2.0   hadoop everywhere
Bi 2.0 hadoop everywhere
 
Global Big Data Conference Hyderabad-2Aug2013- Finance/Manufacturing Use Cases
Global Big Data Conference Hyderabad-2Aug2013- Finance/Manufacturing Use CasesGlobal Big Data Conference Hyderabad-2Aug2013- Finance/Manufacturing Use Cases
Global Big Data Conference Hyderabad-2Aug2013- Finance/Manufacturing Use Cases
 
Production ready big ml workflows from zero to hero daniel marcous @ waze
Production ready big ml workflows from zero to hero daniel marcous @ wazeProduction ready big ml workflows from zero to hero daniel marcous @ waze
Production ready big ml workflows from zero to hero daniel marcous @ waze
 
Big Data Science in Scala
Big Data Science in ScalaBig Data Science in Scala
Big Data Science in Scala
 
Building Real Time Targeting Capabilities - Ryan Zotti, Subbu Thiruppathy - C...
Building Real Time Targeting Capabilities - Ryan Zotti, Subbu Thiruppathy - C...Building Real Time Targeting Capabilities - Ryan Zotti, Subbu Thiruppathy - C...
Building Real Time Targeting Capabilities - Ryan Zotti, Subbu Thiruppathy - C...
 
Big Data Analytics for BI, BA and QA
Big Data Analytics for BI, BA and QABig Data Analytics for BI, BA and QA
Big Data Analytics for BI, BA and QA
 
Machines and the Magic of Fast Learning
Machines and the Magic of Fast LearningMachines and the Magic of Fast Learning
Machines and the Magic of Fast Learning
 
AI with Azure Machine Learning
AI with Azure Machine LearningAI with Azure Machine Learning
AI with Azure Machine Learning
 
Afternoons with Azure - Power BI and Azure Analysis Services
Afternoons with Azure - Power BI and Azure Analysis ServicesAfternoons with Azure - Power BI and Azure Analysis Services
Afternoons with Azure - Power BI and Azure Analysis Services
 
Primo Reporting: Using 3rd Party Software to Create Primo Reports & Analyze P...
Primo Reporting: Using 3rd Party Software to Create Primo Reports & Analyze P...Primo Reporting: Using 3rd Party Software to Create Primo Reports & Analyze P...
Primo Reporting: Using 3rd Party Software to Create Primo Reports & Analyze P...
 

Similaire à The Rise of Streaming SQL and Evolution of Streaming Applications

Introduction to Stream Processing
Introduction to Stream ProcessingIntroduction to Stream Processing
Introduction to Stream Processing
Guido Schmutz
 

Similaire à The Rise of Streaming SQL and Evolution of Streaming Applications (20)

Streaming Data and Stream Processing with Apache Kafka
Streaming Data and Stream Processing with Apache KafkaStreaming Data and Stream Processing with Apache Kafka
Streaming Data and Stream Processing with Apache Kafka
 
Emerging Prevalence of Data Streaming in Analytics and it's Business Signific...
Emerging Prevalence of Data Streaming in Analytics and it's Business Signific...Emerging Prevalence of Data Streaming in Analytics and it's Business Signific...
Emerging Prevalence of Data Streaming in Analytics and it's Business Signific...
 
[WSO2Con USA 2018] The Rise of Streaming SQL
[WSO2Con USA 2018] The Rise of Streaming SQL[WSO2Con USA 2018] The Rise of Streaming SQL
[WSO2Con USA 2018] The Rise of Streaming SQL
 
The Rise of Streaming SQL
The Rise of Streaming SQLThe Rise of Streaming SQL
The Rise of Streaming SQL
 
[WSO2Con EU 2018] The Rise of Streaming SQL
[WSO2Con EU 2018] The Rise of Streaming SQL[WSO2Con EU 2018] The Rise of Streaming SQL
[WSO2Con EU 2018] The Rise of Streaming SQL
 
Streaming Data Ingest and Processing with Apache Kafka
Streaming Data Ingest and Processing with Apache KafkaStreaming Data Ingest and Processing with Apache Kafka
Streaming Data Ingest and Processing with Apache Kafka
 
xGem Data Stream Processing
xGem Data Stream ProcessingxGem Data Stream Processing
xGem Data Stream Processing
 
Santander Stream Processing with Apache Flink
Santander Stream Processing with Apache FlinkSantander Stream Processing with Apache Flink
Santander Stream Processing with Apache Flink
 
Cloud lunch and learn real-time streaming in azure
Cloud lunch and learn real-time streaming in azureCloud lunch and learn real-time streaming in azure
Cloud lunch and learn real-time streaming in azure
 
Confluent kafka meetupseattle jan2017
Confluent kafka meetupseattle jan2017Confluent kafka meetupseattle jan2017
Confluent kafka meetupseattle jan2017
 
Etl is Dead; Long Live Streams
Etl is Dead; Long Live StreamsEtl is Dead; Long Live Streams
Etl is Dead; Long Live Streams
 
Sparkflows - Build E2E Data Analytics Use Cases in less than 30 mins
Sparkflows - Build E2E Data Analytics Use Cases in less than 30 minsSparkflows - Build E2E Data Analytics Use Cases in less than 30 mins
Sparkflows - Build E2E Data Analytics Use Cases in less than 30 mins
 
WSO2 Stream Processor: Graphical Editor, HTTP & Message Trace Analytics and m...
WSO2 Stream Processor: Graphical Editor, HTTP & Message Trace Analytics and m...WSO2 Stream Processor: Graphical Editor, HTTP & Message Trace Analytics and m...
WSO2 Stream Processor: Graphical Editor, HTTP & Message Trace Analytics and m...
 
Introduction to Stream Processing
Introduction to Stream ProcessingIntroduction to Stream Processing
Introduction to Stream Processing
 
What to Expect for Big Data and Apache Spark in 2017
What to Expect for Big Data and Apache Spark in 2017 What to Expect for Big Data and Apache Spark in 2017
What to Expect for Big Data and Apache Spark in 2017
 
Time's Up! Getting Value from Big Data Now
Time's Up! Getting Value from Big Data NowTime's Up! Getting Value from Big Data Now
Time's Up! Getting Value from Big Data Now
 
BDA307 Real-time Streaming Applications on AWS, Patterns and Use Cases
BDA307 Real-time Streaming Applications on AWS, Patterns and Use CasesBDA307 Real-time Streaming Applications on AWS, Patterns and Use Cases
BDA307 Real-time Streaming Applications on AWS, Patterns and Use Cases
 
Big Data Day LA 2016/ Big Data Track - Building scalable enterprise data flow...
Big Data Day LA 2016/ Big Data Track - Building scalable enterprise data flow...Big Data Day LA 2016/ Big Data Track - Building scalable enterprise data flow...
Big Data Day LA 2016/ Big Data Track - Building scalable enterprise data flow...
 
Advanced Stream Processing with Flink and Pulsar - Pulsar Summit NA 2021 Keynote
Advanced Stream Processing with Flink and Pulsar - Pulsar Summit NA 2021 KeynoteAdvanced Stream Processing with Flink and Pulsar - Pulsar Summit NA 2021 Keynote
Advanced Stream Processing with Flink and Pulsar - Pulsar Summit NA 2021 Keynote
 
10 Big Data Technologies you Didn't Know About
10 Big Data Technologies you Didn't Know About 10 Big Data Technologies you Didn't Know About
10 Big Data Technologies you Didn't Know About
 

Plus de Srinath Perera

Plus de Srinath Perera (20)

Book: Software Architecture and Decision-Making
Book: Software Architecture and Decision-MakingBook: Software Architecture and Decision-Making
Book: Software Architecture and Decision-Making
 
Data science Applications in the Enterprise
Data science Applications in the EnterpriseData science Applications in the Enterprise
Data science Applications in the Enterprise
 
An Introduction to APIs
An Introduction to APIs An Introduction to APIs
An Introduction to APIs
 
An Introduction to Blockchain for Finance Professionals
An Introduction to Blockchain for Finance ProfessionalsAn Introduction to Blockchain for Finance Professionals
An Introduction to Blockchain for Finance Professionals
 
AI in the Real World: Challenges, and Risks and how to handle them?
AI in the Real World: Challenges, and Risks and how to handle them?AI in the Real World: Challenges, and Risks and how to handle them?
AI in the Real World: Challenges, and Risks and how to handle them?
 
Healthcare + AI: Use cases & Challenges
Healthcare + AI: Use cases & ChallengesHealthcare + AI: Use cases & Challenges
Healthcare + AI: Use cases & Challenges
 
How would AI shape Future Integrations?
How would AI shape Future Integrations?How would AI shape Future Integrations?
How would AI shape Future Integrations?
 
The Role of Blockchain in Future Integrations
The Role of Blockchain in Future IntegrationsThe Role of Blockchain in Future Integrations
The Role of Blockchain in Future Integrations
 
Future of Serverless
Future of ServerlessFuture of Serverless
Future of Serverless
 
Blockchain: Where are we? Where are we going?
Blockchain: Where are we? Where are we going? Blockchain: Where are we? Where are we going?
Blockchain: Where are we? Where are we going?
 
Few thoughts about Future of Blockchain
Few thoughts about Future of BlockchainFew thoughts about Future of Blockchain
Few thoughts about Future of Blockchain
 
A Visual Canvas for Judging New Technologies
A Visual Canvas for Judging New TechnologiesA Visual Canvas for Judging New Technologies
A Visual Canvas for Judging New Technologies
 
Privacy in Bigdata Era
Privacy in Bigdata  EraPrivacy in Bigdata  Era
Privacy in Bigdata Era
 
Blockchain, Impact, Challenges, and Risks
Blockchain, Impact, Challenges, and RisksBlockchain, Impact, Challenges, and Risks
Blockchain, Impact, Challenges, and Risks
 
Today's Technology and Emerging Technology Landscape
Today's Technology and Emerging Technology LandscapeToday's Technology and Emerging Technology Landscape
Today's Technology and Emerging Technology Landscape
 
An Emerging Technologies Timeline
An Emerging Technologies TimelineAn Emerging Technologies Timeline
An Emerging Technologies Timeline
 
Analytics and AI: The Good, the Bad and the Ugly
Analytics and AI: The Good, the Bad and the UglyAnalytics and AI: The Good, the Bad and the Ugly
Analytics and AI: The Good, the Bad and the Ugly
 
Transforming a Business Through Analytics
Transforming a Business Through AnalyticsTransforming a Business Through Analytics
Transforming a Business Through Analytics
 
Doing Online Research
Doing Online ResearchDoing Online Research
Doing Online Research
 
How IOT & Big Data will shape up Future Economies?
How IOT & Big Data will shape up Future Economies?How IOT & Big Data will shape up Future Economies?
How IOT & Big Data will shape up Future Economies?
 

Dernier

如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
wsppdmt
 
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling ManjurJual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
ptikerjasaptiker
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
gajnagarg
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
ahmedjiabur940
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
nirzagarg
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
gajnagarg
 
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
vexqp
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
ranjankumarbehera14
 
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
nirzagarg
 
PLE-statistics document for primary schs
PLE-statistics document for primary schsPLE-statistics document for primary schs
PLE-statistics document for primary schs
cnajjemba
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
vexqp
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
nirzagarg
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
gajnagarg
 

Dernier (20)

The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptxThe-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
 
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling ManjurJual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
Data Analyst Tasks to do the internship.pdf
Data Analyst Tasks to do the internship.pdfData Analyst Tasks to do the internship.pdf
Data Analyst Tasks to do the internship.pdf
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
 
PLE-statistics document for primary schs
PLE-statistics document for primary schsPLE-statistics document for primary schs
PLE-statistics document for primary schs
 
Capstone in Interprofessional Informatic // IMPACT OF COVID 19 ON EDUCATION
Capstone in Interprofessional Informatic  // IMPACT OF COVID 19 ON EDUCATIONCapstone in Interprofessional Informatic  // IMPACT OF COVID 19 ON EDUCATION
Capstone in Interprofessional Informatic // IMPACT OF COVID 19 ON EDUCATION
 
Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 

The Rise of Streaming SQL and Evolution of Streaming Applications

  • 1. Srinath Perera VP Research, WSO2 srinath@wso2.com The Rise of Streaming SQL and Evolution of Streaming Applications
  • 2. What is Streaming? • A Stream is series of Events • Query Data Streams • Detect conditions fast (within the time of receiving the data, - 10ms-1m). e.g. receive an alert by querying a data streams coming from a temperature sensor and detecting when the temperature has reached the freezing point.
  • 3. Almost all new data is Streaming Almost all new data is streams, even batch data are at one point potential streaming data One can choose to consume them as streaming data or batch data based on value of responding to them fast • Transaction data • Log data • Sensor data • Health data • Traffic Data
  • 4. Stream Processing Market Lack of proficient developers are slowing it Success depends on Analytics Positive trends • Microservices and Observability • Security analytics • EDA and Messaging Lot of analytics and machine learning use cases will eventually shift to stream processing Stream Processing and IoT depends on each Other Market 200-500m 30% growth
  • 5. Building a Streaming App Code it Yourself • Code it yourself • Publish data to a message topic • Write a actor: Subscribe, process, and put back to a topic Use a Streaming SQL based Stream Processor • Just write Streaming SQL ( will discuss later) Use a Stream Processors • You just write actor and stream processor handles data flow, scale, failures
  • 6. History of Stream Processing Started with active databases, users want to act when data met a condition TelegraphCQ (based PostgreSQL) People thought about this outside of databases as well Stream Processing Complex Event Processing
  • 7. History of Stream Processing Stream Processing • Create a graph of actors and run them using many machines • e.g. Aurora, PIPES, STREAM, Borealis ( academic) Complex Event Processing Processing • Provide a query language and focused on effect matching on 1-2 nodes. • SASE, Esper, Cayuga, and Siddhi (powers WSO2 SP), Apama, IBM Infosphere Niche Applications: Stock Markets, Monitoring and Alerts, Surveillance
  • 8. Stream Processing enters Big Data Yahoo S4 (2010) Twitter Storm (2011) Both were donated to Apache Described as “like Hadoop, but realtime” Wide adoption and visibility Spark Streaming, Samza, Flink
  • 9. Rise of Streaming SQL Apache based SP engines used Code as API Big Data Switched to SQL from MapReduce Merged to support SQL over many nodes Streaming SQL Apache Storm Apache Flink WSO2 CEP->WSO2 SP Apache Kafka (KSQL) Apache Samza and Calcite CEPStream Processing
  • 10. What is Streaming SQL? Time bID T 07:23:30 B1 210 07:23:37 B1 234 … … A Stream is a table never ending table, think of table where new data (events) kept adding Select bid, t*7/5 + 32 as tF from BoilerStream Where t > 350 Streaming SQL is SQL written in such a never ending table Unlike SQL that returns data when query us done, Streaming SQL outputs data as new events are added You get a trigger whenever data matches
  • 11. Why Streaming SQL? core operations covers 90% of use cases without code, rest handled via extensions Easy to learn for the many people who know SQL. It's expressive, short, sweet and fast!! Manipulate streaming data declaratively without having to write code. A query engine can better optimize the executions with a streaming SQL model.
  • 12. Common Solutions with SP Detect a condition and trigger an alert that bring user back to dashboard Condition can be • a simple limit • A complex trend over time • correlations across streams • a machine learning model Detect a condition and update a dashboard Train a ML model apply over steaming data, and switch models as they drift Detect a condition and trigger an action Calculate short term values, store them long term in a database, and show single view }
  • 13. Stream Processor are Stateful Stream Processors works off memory, that is the secret of their performance in 50K plus throughput To avoid this, Stream processors must have HA Stream Queries never ends When a stream processor failed, which it eventually must, the streaming App will loose state Most stream queries are stateful (e.g. patterns, windows, joins) }
  • 14. Most Stream Processors are Obese Most Stream Processors need 5+ nodes to setup a HA environment Then minimal HA size matters. Their use cases are large, so are there deployments. 5 plus nodes are not a problem for large use deployments However, given a Stream Processors can do 50,000 events per second, most use cases need a one node. Most famous Stream Processors come from large internet companies }
  • 15. Stream Processing need ML Use Streaming machine learning that learns on the fly Train the models offline and apply online. When model drift from data, retrain and swap the model. As stream processing is the real time extension of batch processing. Most batch ML use cases will apply in realtime as well. }
  • 16. SP need Advanced Query Authoring Environments We need integrated development environments that let developers write, simulate, debug, trace, and verify and do it Lack of programmers who are comfortable with stream processing is holding it back Stream processing queries are like regular expressions, which are • Based on simple rules • very powerful • tough on new programmers } }
  • 17. Stream Processors are So Far Two branches: Stream Processing and CEP Obese Rise of Streaming SQL Introduction to Stream Processing Apache Storm and inclusion to Big Data Stateful and Need HA Need ML Need Authoring Tools
  • 19. When to use WSO2 SP? When you want to detect complex patterns over time When you want to fuse data in motion and data at rest in same application When you are not sure about the final load ( scale with Kafa with same queries) When you want to do ML within your queries When your load is less than 100,000 events/sec ( WSO2 SP support with just two nodes) When you want your end users to tweak your queries
  • 20. Next Steps Checkout WSO2 Stream Processor Learn about Streaming Applications with 13 Stream Processing Patterns for building Streaming Applications Webinar: Distributed Stream Processing with WSO2 SP Learn about Streaming SQL with Streaming SQL 101 Webinar: WSO2 Stream Processor