SlideShare a Scribd company logo
1 of 30
Download to read offline
Senior Director - Solutions Architecture
WSO2
Streaming SQL in the Real World
Vidura Gamini Abhaya
Streaming SQL
We use SQL to query data at rest…why not use SQL to query data
in motion?
“Streaming SQL” refers to languages that enable users to
write SQL-like queries for streaming data without having to
write code.
Easy to understand, expressive, short, fast, core operations can
cover 90% of the problems and easy to optimize
● Some data are naturally continuously produced
● Need for real-time insights
● Volume of data is too large to store
● Data in motion is very natural
Why is stream processing popular?
● Real-time analytics
● Streaming data integration
● Adaptive intelligence
frameworks
● Notification management
Uses of Streaming SQL
Real-time Analytics
Streaming Data
Integration
Notification
Management
Adaptive
Intelligent
Frameworks
Streaming SQL in the
Real World
Stream Processor Architecture
Retail
Retail
Customers,
supermarkets and
restaurants place
orders regularly using
their laptops, phones,
tablets, etc.
These orders are continuously
recorded in a database, and with
time, it will be possible to identify
trends and relationships between
the products ordered by each
consumer.
Streaming SQL
Retail
Customers,
supermarkets and
restaurants place
orders regularly using
their laptops, phones,
tablets, etc.
These orders are continuously
recorded in a database, and with
time it will be possible to identify
trends and relationships between
the products ordered by each
consumer.
With time, it will be possible to predict
what the consumer orders, and you will
be able to prompt/remind the
consumer on items they may have
forgotten to order
Have you
forgotten the milk?
Streaming SQL
Transportation
Transportation
Mobile app on rider’s
phone send in
details about trips
they want to make
(Time of day, start
and end of journey)
Trip history is kept in a
database and retrieved
whenever required
Mobile app on driver’s phone send
in details about trips they would
like to accept
Streaming SQL
Compare locations of driver and
rider and historical data whether
the combination has a match in the
recent past.
Transportation
Mobile app on rider’s
phone send in
details about trips
they want to make
(Time of day, start
and end of journey)
Trip history is kept in a
database and retrieved
whenever required
Mobile app on driver’s phone send
in details about trips they would
like to accept
Streaming SQL
Potential fraud
scenario identified
Driver denied of
designated trip
X
Healthcare
Healthcare
Sensors on patient
sends readings to
the Stream
Processor at regular
interval
History of blood glucose levels
and sensor readings are stored
in the database for historical
referencing
Hospital staff takes blood samples
and the lab staff enters the
analysis result into the system
Streaming SQL
Blood glucose levels and sensor
readings are compared together
with previous readings
Healthcare
Sensors on patient
sends readings to
the Stream
Processor at regular
interval
History of blood glucose levels
and sensor readings are stored
in the database for historical
referencing
Hospital staff takes blood samples
and the lab staff enters the
analysis result into the system
Streaming SQL
!
Abnormal Blood Glucose
Patterns Detected
Patient is at risk, alerting
medical staff!
Aviation
Aviation
Streaming SQL
Aviation
Streaming SQL
!
All cleaning staff hasn’t
left the aircraft !
Finance
Finance
Streaming SQL
$
$
$
User initiates
payments on any
device, using an
e-banking app
User and payment
information
Historical data on
previous payments
made
Finance
Streaming SQL
User initiates
payments on any
device, using an
e-banking app
User and payment
information
Historical data on
previous payments
made
Payment is > $100 and total
of past 5 payments is >
$500
Engage 2nd and 3rd factor
authentication
Engage 2nd
and 3rd factor
authentication
Digital Advertising
Digital Advertising
Streaming SQL
Users navigate to a
website that has
online ad space
System needs to
decide whether to
bid for an ad in that
space
Decision needs to be
done within <20ms
User information,
website, time of day
Historical data
about user and
buying patterns
External system
decides on the
amount to bid for,
based on time of
day, website, etc.
Digital Advertising
Streaming SQL
Users navigate to a
website that has
online ad. space
System needs to
decide whether to
bid for an ad in that
space
Decision made in
0.5ms with WSO2 SP
User information,
website, time of day
Historical data
about user and
buying patterns
External system
decides on the
amount to bid for,
based on time of
day, website, etc.
Decision made to bid
for an ad, type of ad
and price
✓
Advantages of
Streaming SQL usage
● To make better decisions
○ Operational and business monitoring
● Effectively communicate information
○ Visualization – Alerting mechanisms
● Offer new value propositions
○ Insight driven products and services
● Business user friendly
○ SQL like language
○ Business templates
Business Perspective
● Non-intrusive integration
○ Pull data from heterogeneous data sources and analyze
○ Push results to existing flows with no interruptions
● Intrusive integration
○ Receive input from multiple flows, systems and sources of data
○ Push results to existing flows and systems
● Ability to combine data in motion with data at rest
Solution Perspective
● Interoperability in receiving data to analyze
○ Multiple protocols and formats
○ Pre-process before analyzing
● Interoperability in communicating results
○ Multiple protocols and formats
● Interoperability in data analysis
○ Integration with existing metadata and models
○ Extend with new analysis capabilities
Product Perspective
In conclusion...
● Streaming Data is everywhere
● Stream processing has many uses
● Streaming SQL makes it easily accessible
● Deployments can be complex
THANK YOU
wso2.com

More Related Content

More from WSO2

CIO Summit Berlin 2022.pptx.pdf
CIO Summit Berlin 2022.pptx.pdfCIO Summit Berlin 2022.pptx.pdf
CIO Summit Berlin 2022.pptx.pdfWSO2
 
Delivering New Digital Experiences Fast - Introducing Choreo
Delivering New Digital Experiences Fast - Introducing ChoreoDelivering New Digital Experiences Fast - Introducing Choreo
Delivering New Digital Experiences Fast - Introducing ChoreoWSO2
 
Fueling the Digital Experience Economy with Connected Products
Fueling the Digital Experience Economy with Connected ProductsFueling the Digital Experience Economy with Connected Products
Fueling the Digital Experience Economy with Connected ProductsWSO2
 
A Reference Methodology for Agile Digital Businesses
 A Reference Methodology for Agile Digital Businesses A Reference Methodology for Agile Digital Businesses
A Reference Methodology for Agile Digital BusinessesWSO2
 
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)WSO2
 
Lessons from the pandemic - From a single use case to true transformation
 Lessons from the pandemic - From a single use case to true transformation Lessons from the pandemic - From a single use case to true transformation
Lessons from the pandemic - From a single use case to true transformationWSO2
 
Adding Liveliness to Banking Experiences
Adding Liveliness to Banking ExperiencesAdding Liveliness to Banking Experiences
Adding Liveliness to Banking ExperiencesWSO2
 
Building a Future-ready Bank
Building a Future-ready BankBuilding a Future-ready Bank
Building a Future-ready BankWSO2
 
WSO2 API Manager Community Call - November 2021
WSO2 API Manager Community Call - November 2021WSO2 API Manager Community Call - November 2021
WSO2 API Manager Community Call - November 2021WSO2
 
[API World ] - Managing Asynchronous APIs
[API World ] - Managing Asynchronous APIs[API World ] - Managing Asynchronous APIs
[API World ] - Managing Asynchronous APIsWSO2
 
[API World 2021 ] - Understanding Cloud Native Deployment
[API World 2021 ] - Understanding Cloud Native Deployment[API World 2021 ] - Understanding Cloud Native Deployment
[API World 2021 ] - Understanding Cloud Native DeploymentWSO2
 
[API Word 2021] - Quantum Duality of “API as a Business and a Technology”
[API Word 2021] - Quantum Duality of “API as a Business and a Technology”[API Word 2021] - Quantum Duality of “API as a Business and a Technology”
[API Word 2021] - Quantum Duality of “API as a Business and a Technology”WSO2
 
API Revisions - WSO2 API Manager Community Call (10/27/2021)
API Revisions - WSO2 API Manager Community Call (10/27/2021)API Revisions - WSO2 API Manager Community Call (10/27/2021)
API Revisions - WSO2 API Manager Community Call (10/27/2021)WSO2
 
[2021 Somos Summit] - Rethinking Identity Access Management and The Rise of t...
[2021 Somos Summit] - Rethinking Identity Access Management and The Rise of t...[2021 Somos Summit] - Rethinking Identity Access Management and The Rise of t...
[2021 Somos Summit] - Rethinking Identity Access Management and The Rise of t...WSO2
 
[ICT Spring 2021] - Managed Crowd: The Future of Business as We Know It!
[ICT Spring 2021] - Managed Crowd: The Future of Business as We Know It![ICT Spring 2021] - Managed Crowd: The Future of Business as We Know It!
[ICT Spring 2021] - Managed Crowd: The Future of Business as We Know It!WSO2
 
[EIC 2021] Securing the Digital Double - The Path to a Trusted Digital Ecosystem
[EIC 2021] Securing the Digital Double - The Path to a Trusted Digital Ecosystem[EIC 2021] Securing the Digital Double - The Path to a Trusted Digital Ecosystem
[EIC 2021] Securing the Digital Double - The Path to a Trusted Digital EcosystemWSO2
 
[EIC 2021] The Rise of the Developer in IAM
[EIC 2021] The Rise of the Developer in IAM[EIC 2021] The Rise of the Developer in IAM
[EIC 2021] The Rise of the Developer in IAMWSO2
 
CSV and JSON Transformation in WSO2 Micro Integrator 4.0 - WSO2 APIM Communit...
CSV and JSON Transformation in WSO2 Micro Integrator 4.0 - WSO2 APIM Communit...CSV and JSON Transformation in WSO2 Micro Integrator 4.0 - WSO2 APIM Communit...
CSV and JSON Transformation in WSO2 Micro Integrator 4.0 - WSO2 APIM Communit...WSO2
 
[apidays Live Australia] How does leveraging de-centralised architecture impr...
[apidays Live Australia] How does leveraging de-centralised architecture impr...[apidays Live Australia] How does leveraging de-centralised architecture impr...
[apidays Live Australia] How does leveraging de-centralised architecture impr...WSO2
 
[apidays Live Australia] How do you enhance customer experience through event...
[apidays Live Australia] How do you enhance customer experience through event...[apidays Live Australia] How do you enhance customer experience through event...
[apidays Live Australia] How do you enhance customer experience through event...WSO2
 

More from WSO2 (20)

CIO Summit Berlin 2022.pptx.pdf
CIO Summit Berlin 2022.pptx.pdfCIO Summit Berlin 2022.pptx.pdf
CIO Summit Berlin 2022.pptx.pdf
 
Delivering New Digital Experiences Fast - Introducing Choreo
Delivering New Digital Experiences Fast - Introducing ChoreoDelivering New Digital Experiences Fast - Introducing Choreo
Delivering New Digital Experiences Fast - Introducing Choreo
 
Fueling the Digital Experience Economy with Connected Products
Fueling the Digital Experience Economy with Connected ProductsFueling the Digital Experience Economy with Connected Products
Fueling the Digital Experience Economy with Connected Products
 
A Reference Methodology for Agile Digital Businesses
 A Reference Methodology for Agile Digital Businesses A Reference Methodology for Agile Digital Businesses
A Reference Methodology for Agile Digital Businesses
 
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
 
Lessons from the pandemic - From a single use case to true transformation
 Lessons from the pandemic - From a single use case to true transformation Lessons from the pandemic - From a single use case to true transformation
Lessons from the pandemic - From a single use case to true transformation
 
Adding Liveliness to Banking Experiences
Adding Liveliness to Banking ExperiencesAdding Liveliness to Banking Experiences
Adding Liveliness to Banking Experiences
 
Building a Future-ready Bank
Building a Future-ready BankBuilding a Future-ready Bank
Building a Future-ready Bank
 
WSO2 API Manager Community Call - November 2021
WSO2 API Manager Community Call - November 2021WSO2 API Manager Community Call - November 2021
WSO2 API Manager Community Call - November 2021
 
[API World ] - Managing Asynchronous APIs
[API World ] - Managing Asynchronous APIs[API World ] - Managing Asynchronous APIs
[API World ] - Managing Asynchronous APIs
 
[API World 2021 ] - Understanding Cloud Native Deployment
[API World 2021 ] - Understanding Cloud Native Deployment[API World 2021 ] - Understanding Cloud Native Deployment
[API World 2021 ] - Understanding Cloud Native Deployment
 
[API Word 2021] - Quantum Duality of “API as a Business and a Technology”
[API Word 2021] - Quantum Duality of “API as a Business and a Technology”[API Word 2021] - Quantum Duality of “API as a Business and a Technology”
[API Word 2021] - Quantum Duality of “API as a Business and a Technology”
 
API Revisions - WSO2 API Manager Community Call (10/27/2021)
API Revisions - WSO2 API Manager Community Call (10/27/2021)API Revisions - WSO2 API Manager Community Call (10/27/2021)
API Revisions - WSO2 API Manager Community Call (10/27/2021)
 
[2021 Somos Summit] - Rethinking Identity Access Management and The Rise of t...
[2021 Somos Summit] - Rethinking Identity Access Management and The Rise of t...[2021 Somos Summit] - Rethinking Identity Access Management and The Rise of t...
[2021 Somos Summit] - Rethinking Identity Access Management and The Rise of t...
 
[ICT Spring 2021] - Managed Crowd: The Future of Business as We Know It!
[ICT Spring 2021] - Managed Crowd: The Future of Business as We Know It![ICT Spring 2021] - Managed Crowd: The Future of Business as We Know It!
[ICT Spring 2021] - Managed Crowd: The Future of Business as We Know It!
 
[EIC 2021] Securing the Digital Double - The Path to a Trusted Digital Ecosystem
[EIC 2021] Securing the Digital Double - The Path to a Trusted Digital Ecosystem[EIC 2021] Securing the Digital Double - The Path to a Trusted Digital Ecosystem
[EIC 2021] Securing the Digital Double - The Path to a Trusted Digital Ecosystem
 
[EIC 2021] The Rise of the Developer in IAM
[EIC 2021] The Rise of the Developer in IAM[EIC 2021] The Rise of the Developer in IAM
[EIC 2021] The Rise of the Developer in IAM
 
CSV and JSON Transformation in WSO2 Micro Integrator 4.0 - WSO2 APIM Communit...
CSV and JSON Transformation in WSO2 Micro Integrator 4.0 - WSO2 APIM Communit...CSV and JSON Transformation in WSO2 Micro Integrator 4.0 - WSO2 APIM Communit...
CSV and JSON Transformation in WSO2 Micro Integrator 4.0 - WSO2 APIM Communit...
 
[apidays Live Australia] How does leveraging de-centralised architecture impr...
[apidays Live Australia] How does leveraging de-centralised architecture impr...[apidays Live Australia] How does leveraging de-centralised architecture impr...
[apidays Live Australia] How does leveraging de-centralised architecture impr...
 
[apidays Live Australia] How do you enhance customer experience through event...
[apidays Live Australia] How do you enhance customer experience through event...[apidays Live Australia] How do you enhance customer experience through event...
[apidays Live Australia] How do you enhance customer experience through event...
 

Recently uploaded

#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 

Recently uploaded (20)

#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 

[WSO2Con Asia 2018] Streaming SQL in the Real World

  • 1. Senior Director - Solutions Architecture WSO2 Streaming SQL in the Real World Vidura Gamini Abhaya
  • 2. Streaming SQL We use SQL to query data at rest…why not use SQL to query data in motion? “Streaming SQL” refers to languages that enable users to write SQL-like queries for streaming data without having to write code. Easy to understand, expressive, short, fast, core operations can cover 90% of the problems and easy to optimize
  • 3. ● Some data are naturally continuously produced ● Need for real-time insights ● Volume of data is too large to store ● Data in motion is very natural Why is stream processing popular?
  • 4. ● Real-time analytics ● Streaming data integration ● Adaptive intelligence frameworks ● Notification management Uses of Streaming SQL Real-time Analytics Streaming Data Integration Notification Management Adaptive Intelligent Frameworks
  • 5. Streaming SQL in the Real World
  • 8. Retail Customers, supermarkets and restaurants place orders regularly using their laptops, phones, tablets, etc. These orders are continuously recorded in a database, and with time, it will be possible to identify trends and relationships between the products ordered by each consumer. Streaming SQL
  • 9. Retail Customers, supermarkets and restaurants place orders regularly using their laptops, phones, tablets, etc. These orders are continuously recorded in a database, and with time it will be possible to identify trends and relationships between the products ordered by each consumer. With time, it will be possible to predict what the consumer orders, and you will be able to prompt/remind the consumer on items they may have forgotten to order Have you forgotten the milk? Streaming SQL
  • 11. Transportation Mobile app on rider’s phone send in details about trips they want to make (Time of day, start and end of journey) Trip history is kept in a database and retrieved whenever required Mobile app on driver’s phone send in details about trips they would like to accept Streaming SQL Compare locations of driver and rider and historical data whether the combination has a match in the recent past.
  • 12. Transportation Mobile app on rider’s phone send in details about trips they want to make (Time of day, start and end of journey) Trip history is kept in a database and retrieved whenever required Mobile app on driver’s phone send in details about trips they would like to accept Streaming SQL Potential fraud scenario identified Driver denied of designated trip X
  • 14. Healthcare Sensors on patient sends readings to the Stream Processor at regular interval History of blood glucose levels and sensor readings are stored in the database for historical referencing Hospital staff takes blood samples and the lab staff enters the analysis result into the system Streaming SQL Blood glucose levels and sensor readings are compared together with previous readings
  • 15. Healthcare Sensors on patient sends readings to the Stream Processor at regular interval History of blood glucose levels and sensor readings are stored in the database for historical referencing Hospital staff takes blood samples and the lab staff enters the analysis result into the system Streaming SQL ! Abnormal Blood Glucose Patterns Detected Patient is at risk, alerting medical staff!
  • 18. Aviation Streaming SQL ! All cleaning staff hasn’t left the aircraft !
  • 20. Finance Streaming SQL $ $ $ User initiates payments on any device, using an e-banking app User and payment information Historical data on previous payments made
  • 21. Finance Streaming SQL User initiates payments on any device, using an e-banking app User and payment information Historical data on previous payments made Payment is > $100 and total of past 5 payments is > $500 Engage 2nd and 3rd factor authentication Engage 2nd and 3rd factor authentication
  • 23. Digital Advertising Streaming SQL Users navigate to a website that has online ad space System needs to decide whether to bid for an ad in that space Decision needs to be done within <20ms User information, website, time of day Historical data about user and buying patterns External system decides on the amount to bid for, based on time of day, website, etc.
  • 24. Digital Advertising Streaming SQL Users navigate to a website that has online ad. space System needs to decide whether to bid for an ad in that space Decision made in 0.5ms with WSO2 SP User information, website, time of day Historical data about user and buying patterns External system decides on the amount to bid for, based on time of day, website, etc. Decision made to bid for an ad, type of ad and price ✓
  • 26. ● To make better decisions ○ Operational and business monitoring ● Effectively communicate information ○ Visualization – Alerting mechanisms ● Offer new value propositions ○ Insight driven products and services ● Business user friendly ○ SQL like language ○ Business templates Business Perspective
  • 27. ● Non-intrusive integration ○ Pull data from heterogeneous data sources and analyze ○ Push results to existing flows with no interruptions ● Intrusive integration ○ Receive input from multiple flows, systems and sources of data ○ Push results to existing flows and systems ● Ability to combine data in motion with data at rest Solution Perspective
  • 28. ● Interoperability in receiving data to analyze ○ Multiple protocols and formats ○ Pre-process before analyzing ● Interoperability in communicating results ○ Multiple protocols and formats ● Interoperability in data analysis ○ Integration with existing metadata and models ○ Extend with new analysis capabilities Product Perspective
  • 29. In conclusion... ● Streaming Data is everywhere ● Stream processing has many uses ● Streaming SQL makes it easily accessible ● Deployments can be complex