SlideShare a Scribd company logo
Apache Flink:
Real-World Use Cases for Streaming
Analytics
Slim Baltagi
@SlimBaltagi
Brazil - Sao Paulo Apache Flink Meetup
March 17th, 2016
Agenda
I. What is Apache Flink Stack?
II. Movement from Batch Analytics to
Streaming Analytics
III. Key Differentiators of Apache Flink for
Streaming Analytics
IV. Real-World Use Cases with Flink for
Streaming Analytics
V. Who is using Flink?
VI. Where do you go from here?
2
I. What is Apache Flink stack?
Gelly
Table
HadoopM/R
SAMOA
DataSet (Java/Scala/Python)
Batch Processing
DataStream (Java/Scala)
Stream Processing
FlinkML
Local
Single JVM
Embedded
Docker
Cluster
Standalone
YARN,
Mesos (WIP)
Cloud
Google’s GCE
Amazon’s EC2
IBM Docker Cloud, …
ApacheBeam
ApacheBeam
MRQL
Table
Cascading
Runtime : Distributed
Streaming Dataflow
Zeppelin
DEPLOYSYSTEMAPIs&LIBRARIESSTORAGE
Files
Local
HDFS
S3, Azure Storage
Tachyon
Databases
MongoDB
HBase
SQL
…
Streams
Flume
kafka
RabbitMQ
…
Batch Optimizer Stream Builder
Storm
FlinkCEP
Gelly-Stream
3
I. What is Apache Flink stack?
See First Apache Flink meetup in South America that I
gave as a webinar on February 24th 2016. It is titled:
Introduction to Apache Flink: What, How, Why, Who,
Where? https://www.youtube.com/watch?v=YAKdD1rHCxs (Part 1)
See similar talk on February 2nd 2016 that I previously
gave a at the New York City Apache Flink which. Now,
the world’s largest Flink meetup
• Slideshttp://www.slideshare.net/sbaltagi/apacheflinkwhathowwhywhowhe
rebyslimbaltagi-57825047
• Video recording
https://www.youtube.com/watch?v=G77m6Ou_kFA
 Flink Knowledge Base: all resources related to Flink
http://sparkbigdata.com/component/tags/tag/27-flink
4
Agenda
I. What is Apache Flink Stack?
II. Movement from Batch Analytics to
Streaming Analytics
III. Key Differentiators of Apache Flink for
Streaming Analytics
IV. Real-World Use Cases with Flink for
Streaming Analytics
V. Who is using Flink?
VI. Where do you go from here?
5
II. Movement from Batch Analytics to Streaming
Analytics
Batch Streaming
High-latency apps Low-latency apps
Static Files Event Streams
Process-after-store Sense-and-respond
Batch processors Stream processors
6
What is batch processing?
Many big data sources represent series of events that
are continuously produced. Example: tweets, web logs,
user transactions, system logs, sensor networks, …
Batch processing: These events are collected together
based on the number of records or a certain period of
time (a day for example) and stored somewhere to be
processed as a finite data set.
What’s the problem with ‘process-after-store’ model:
• Unnecessary latencies between data generation and
analysis & actions on the data.
• Implicit assumption that the data is complete after a
given period of time and can be used to make accurate
predictions for example.
7
What is stream processing?
 Most data is available as series of events (click
streams, mobile apps data, .. ) continuously
produced by a variety of applications and systems
in the enterprise.
 Data sources are not anymore typical enterprise
sources but new ones such as social media data,
sensor data …
 Data from disparate systems (internally and
externally) can be integrated in a central hub and:
 Made available as low-latency data streams
required for real-time stream processing.
 Loaded into your data warehouse for offline
analysis.
8
Factors behind the movement from Batch
Analytics to Streaming Analytics
There is a movement in Big Data processing from Batch
Analytics to Streaming Analytics driven by many factors:
• Data streams: Sensors networks, mobile apps data, ..
• Technology: Rapidly growing open source streaming
analytics tools, vendors innovating in this space, more
mobile devices than human beings, cloud services for
real-time stream processing…
• Business: Organizations are more and more embracing
streaming analytics for faster time to insight and
competitive advantages.
• Customers: Costumers are becoming more and more
demanding for instant responses in the way they are
used to in social networks: twitter, facebook, linkedin… 9
Agenda
I. What is Apache Flink Stack?
II. Batch vs. Streaming Analytics
III. Key Differentiators of Apache Flink for
Streaming Analytics
IV. Real-World Use Cases with Flink for
Streaming Analytics
V. Who is using Flink?
VI. Where do you go from here?
10
III. Key Differentiators of Apache Flink for
Streaming Analytics
The 8 Requirements of Real-Time Stream Processing,
Stonebraker et al. 2005
• Original paper http://cs.brown.edu/~ugur/8rulesSigRec.pdf
• A short summaryhttp://blog.acolyer.org/2014/12/03/the-8-requirements-of-
real-time-stream-processing/
Apache Flink fulfills all these requirements and more!
• http://data-artisans.com/real-time-stream-processing-the-next-step-for-apache-flink/
• http://data-artisans.com/flink-0-10-a-significant-step-forward-in-open-source-stream-
processing/
• http://data-artisans.com/flink-1-0-0/
• https://cloud.google.com/dataflow/blog/dataflow-beam-and-spark-comparison
• https://docs.google.com/document/d/1ExmtVpeVVT3TIhO1JoBpC5JKXm-
778DAD7eqw5GANwE/edit
• http://www.slideshare.net/robertmetzger1/january-2016-flink-community-update-roadmap-
2016/9
11
III. Key Differentiators of Apache Flink for
Streaming Analytics
True Low latency streaming engine: fast results in milliseconds
High throughput: handle large data amounts (millions of events per second)
• http://data-artisans.com/extending-the-yahoo-streaming-benchmark/
Exactly once guarantees: Correct results, also in failure cases
• http://data-artisans.com/high-throughput-low-latency-and-exactly-once-stream-
processing-with-apache-flink/
Programmability: Higher level, Intuitive and easy to use APIs
Backpressure refers to the situation where a system is receiving data at a
higher rate than it can process during a temporary load spike.
• http://data-artisans.com/how-flink-handles-backpressure/
Event time and out of order stream processing
• http://data-artisans.com/how-apache-flink-enables-new-streaming-applications-
part-1/
Stateful stream processing and versioning state
• http://data-artisans.com/how-apache-flink-enables-new-streaming-applications/ 12
Agenda
I. What is Apache Flink Stack?
II. Batch vs. Streaming Analytics
III. Key Differentiators of Apache Flink for
Streaming Analytics
IV. Real-World Use Cases with Flink for
Streaming Analytics
V. Who is using Flink?
VI. Where do you go from here?
13
IV. Real-World Use Cases with Flink for Streaming
Analytics
Stonebraker et al. make the case in 2005 that stream
processing is going to become increasingly important.
Not just for the usual finance, fraud, and command-and-
control use cases, but also….… “as the “sea change”
caused by cheap micro-sensor technology takes hold, we expect
to see everything of material significance on the planet get
“sensor-tagged” and report its state or location in real time. This
sensorization of the real world will lead to a “green field” of novel
monitoring and control applications with high-volume and low-
latency processing requirements.”
Reference:http://blog.acolyer.org/2014/12/03/the-8-requirements-of-real-time-
stream-processing/
14
Shift from Reactive approach to proactive
approach
Capturing new data and providing the ability to
process streams of this data is allowing
organizations to shift
• From: taking a REACTIVE, post transaction
approach
• To: more of a PROACTIVE, pre decision approach
to interactions with their customers, suppliers and
employees.
Again, no matter the vertical, this transition is
happening.
15
…to real-time
personalization
From static
branding
…to repair before
break
From break then
fix
…to designer
medicine
From mass
treatment
…to automated
algorithms
From educated
investing
…to 1x1 targeting
From mass
branding
A shift in Advertising
A shift in Financial Services
A shift in Healthcare
A shift in Retail
A shift in Manufacturing
Big Data Analytics
Frameworks enable
shifting the business
from…
Reactive
Proactive
Shift from Reactive approach to proactive approach
16
Real-Time Monitoring of Customer Activity
Events
17
Generic Streaming Analytics Architectural pattern.Event
Producers
EventCollector
EventBroker
EventProcessor
Indexer
Visualizer/Search
• Kafka
• RabitMQ
• JMS
• Flink
• Spark
• Storm
• Samza
• ElasticSearch
• Solr
• Cassandra
• NoSQL DB
• Kibana
• Custom
GUI
• Flume
• SpringXD
• Logstash
• Nifi
• Fluentd
• Apps
• Devices
• Sensors
18
IV. Real-World Use Cases with Flink for Streaming
Analytics
Below is list several use cases, taken from real
industrial situations:
Financial Services
– Real-time fraud detection.
– Real-time mobile notifications.
Healthcare
– Smart hospitals - collect data and readings from hospital
devices (vitals, IVs, MRI, etc.) and analyze and alert in real
time.
– Biometrics - collect and analyze data from patient devices
that collect vitals while outside of care facilities.
Ad Tech
– Real-time user targeting based on segment and preferences.
Oil & Gas
• Real-time monitoring of pumps/rigs. 19
IV. Real-World Use Cases with Flink for
Streaming Analytics
Retail
• Build an intelligent supply chain by placing sensors or RFID
tags on items to alert if items aren’t in the right place, or
proactively order more if supply is low.
• Smart logistics with real-time end-to-end tracking of delivery
trucks.
Telecommunications
• Real-time antenna optimization based on user location data.
• Real-time charging and billing based on customer usage,
ability to populate up-to-date usage dashboards for users.
• Mobile offers.
• Optimized advertising for video/audio content based on what
users are consuming.
20
Agenda
I. What is Apache Flink Stack?
II. Batch vs. Streaming Analytics
III. Key Differentiators of Apache Flink for
Streaming Analytics
IV. Real-World Use Cases with Flink for
Streaming Analytics
V. Who is using Flink?
VI. Where do you go from here?
21
V. Who is using Flink?
ho is using Apache Flink?How companies are using Flink as presented at Flink
Forward 2015. Kostas Tzoumas and Stephan Ewen.
http://www.slideshare.net/stephanewen1/flink-use-cases-bay-area-meetup-
october-2015
Powered by Flink page:
 https://cwiki.apache.org/confluence/display/FLINK/Powered+by+Flink
22
V. Who is using Flink? is using Apache
Flink? has its hack week and the winner was
a Flink based streaming project! December 18, 2015
• Extending the Yahoo! Streaming Benchmark and Winning
Twitter Hack-Week with Apache Flink. Posted on February
2, 2016 by Jamie Grier http://data-artisans.com/extending-the-
yahoo-streaming-benchmark/
 did some benchmarks to
compare performance of their use case implemented
on Apache Storm against Spark Streaming and Flink.
Results posted on December 18, 2015
• http://yahooeng.tumblr.com/post/135321837876/benchmarking-
streaming-computation-engines-at
• http://data-artisans.com/extending-the-yahoo-streaming-benchmark/
• https://github.com/dataArtisans/yahoo-streaming-benchmark 23
Agenda
I. What is Apache Flink Stack?
II. Batch vs. Streaming Analytics
III. Key Differentiators of Apache Flink for
Streaming Analytics
IV. Real-World Use Cases with Flink for
Streaming Analytics
V. Who is using Flink?
VI. Where do you go from here?
24
VI. Where do you go from here?
 A few resources for you:
• Flink at the Apache Software Foundation: flink.apache.org/
• Free ebook from MapR: Streaming Architecture: New
Designs Using Apache Kafka and MapR Streams
https://www.mapr.com/streaming-architecture-using-apache-kafka-mapr-
streams
• Free Apache Flink training from data Artisans
http://dataartisans.github.io/flink-training/ Still version 0.10.1 and not
latest 1.0
• Flink Knowledge Base: One-Stop for everything related to
Apache Flink http://sparkbigdata.com/component/tags/tag/27-flink
• Apache Flink in Action is probably the First book on
Apache Flink! It will be published by Manning. I am co-
authoring this book! Please stay tuned for the MEAP: Manning
Early Access Program!
25
VI. Where do you go from here?
 A few takeaways :
• Organizations are more and more embracing streaming
analytics for:
• Use cases requiring lower latency: monitoring,
altering, …
• Faster time to insight
• Competitive advantages
• By leveraging streaming analytics, new startups
are challenging established companies. Example:
Pay-As-You-Go insurance or Usage-Based Auto
Insurance
• Speed is said to have become the new currency of
business.
26
Thanks!
To all of you for attending!
Let’s keep in touch!
• sbaltagi@gmail.com
• @SlimBaltagi
• https://www.linkedin.com/in/slimbaltagi
Any questions?
27

More Related Content

PPTX
Flink vs. Spark
PDF
Real-Life Use Cases & Architectures for Event Streaming with Apache Kafka
PPTX
Best practices and lessons learnt from Running Apache NiFi at Renault
PDF
Apache Flink internals
PPTX
Apache Flink and what it is used for
PDF
A Thorough Comparison of Delta Lake, Iceberg and Hudi
PDF
ACID ORC, Iceberg, and Delta Lake—An Overview of Table Formats for Large Scal...
PPTX
Real-Time Data Flows with Apache NiFi
Flink vs. Spark
Real-Life Use Cases & Architectures for Event Streaming with Apache Kafka
Best practices and lessons learnt from Running Apache NiFi at Renault
Apache Flink internals
Apache Flink and what it is used for
A Thorough Comparison of Delta Lake, Iceberg and Hudi
ACID ORC, Iceberg, and Delta Lake—An Overview of Table Formats for Large Scal...
Real-Time Data Flows with Apache NiFi

What's hot (20)

PPTX
Exactly-Once Financial Data Processing at Scale with Flink and Pinot
PDF
Dynamically Scaling Data Streams across Multiple Kafka Clusters with Zero Fli...
PDF
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...
PPTX
Apache Flink Training: System Overview
PPTX
Evening out the uneven: dealing with skew in Flink
PPTX
Where is my bottleneck? Performance troubleshooting in Flink
PDF
Parquet performance tuning: the missing guide
PDF
Considerations for Data Access in the Lakehouse
PDF
Apache Kafka in the Airline, Aviation and Travel Industry
PPTX
Squirreling Away $640 Billion: How Stripe Leverages Flink for Change Data Cap...
PDF
Grafana introduction
PDF
Introduction to Apache NiFi 1.11.4
PPTX
Kafka 101
PDF
Data ingestion and distribution with apache NiFi
PDF
Nifi workshop
PDF
Streaming Event Time Partitioning with Apache Flink and Apache Iceberg - Juli...
PDF
Amazon S3 Best Practice and Tuning for Hadoop/Spark in the Cloud
PDF
The Parquet Format and Performance Optimization Opportunities
PDF
How Uber scaled its Real Time Infrastructure to Trillion events per day
PPTX
Introduction to spark
Exactly-Once Financial Data Processing at Scale with Flink and Pinot
Dynamically Scaling Data Streams across Multiple Kafka Clusters with Zero Fli...
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...
Apache Flink Training: System Overview
Evening out the uneven: dealing with skew in Flink
Where is my bottleneck? Performance troubleshooting in Flink
Parquet performance tuning: the missing guide
Considerations for Data Access in the Lakehouse
Apache Kafka in the Airline, Aviation and Travel Industry
Squirreling Away $640 Billion: How Stripe Leverages Flink for Change Data Cap...
Grafana introduction
Introduction to Apache NiFi 1.11.4
Kafka 101
Data ingestion and distribution with apache NiFi
Nifi workshop
Streaming Event Time Partitioning with Apache Flink and Apache Iceberg - Juli...
Amazon S3 Best Practice and Tuning for Hadoop/Spark in the Cloud
The Parquet Format and Performance Optimization Opportunities
How Uber scaled its Real Time Infrastructure to Trillion events per day
Introduction to spark
Ad

Viewers also liked (19)

PPT
Real-time Streaming Analytics: Business Value, Use Cases and Architectural Co...
PDF
Introduction to Apache Flink
PPTX
Introduction to Storm
PDF
Apache Storm
PPTX
Streaming in the Wild with Apache Flink
PPTX
Overview of Apache Flink: Next-Gen Big Data Analytics Framework
PPTX
Hadoop or Spark: is it an either-or proposition? By Slim Baltagi
PDF
Aljoscha Krettek - Portable stateful big data processing in Apache Beam
PDF
Building a Modern Data Architecture with Enterprise Hadoop
PPTX
Fundamentals of Stream Processing with Apache Beam, Tyler Akidau, Frances Perry
PPTX
Apache Beam: A unified model for batch and stream processing data
PPTX
Analysis-of-Major-Trends-in-big-data-analytics-slim-baltagi-hadoop-summit
PPTX
Kafka Streams for Java enthusiasts
PPTX
Apache-Flink-What-How-Why-Who-Where-by-Slim-Baltagi
PDF
Building Streaming Data Applications Using Apache Kafka
PDF
Flink Case Study: Amadeus
PPTX
Flink Case Study: OKKAM
PPTX
Flink Case Study: Capital One
PPTX
Making Great User Experiences, Pittsburgh Scrum MeetUp, Oct 17, 2017
Real-time Streaming Analytics: Business Value, Use Cases and Architectural Co...
Introduction to Apache Flink
Introduction to Storm
Apache Storm
Streaming in the Wild with Apache Flink
Overview of Apache Flink: Next-Gen Big Data Analytics Framework
Hadoop or Spark: is it an either-or proposition? By Slim Baltagi
Aljoscha Krettek - Portable stateful big data processing in Apache Beam
Building a Modern Data Architecture with Enterprise Hadoop
Fundamentals of Stream Processing with Apache Beam, Tyler Akidau, Frances Perry
Apache Beam: A unified model for batch and stream processing data
Analysis-of-Major-Trends-in-big-data-analytics-slim-baltagi-hadoop-summit
Kafka Streams for Java enthusiasts
Apache-Flink-What-How-Why-Who-Where-by-Slim-Baltagi
Building Streaming Data Applications Using Apache Kafka
Flink Case Study: Amadeus
Flink Case Study: OKKAM
Flink Case Study: Capital One
Making Great User Experiences, Pittsburgh Scrum MeetUp, Oct 17, 2017
Ad

Similar to Apache Flink: Real-World Use Cases for Streaming Analytics (20)

PDF
Open Blueprint for Real-Time Analytics with In-Stream Processing
PDF
Open Blueprint for Real-Time Analytics in Retail: Strata Hadoop World 2017 S...
PPTX
Analysis of Major Trends in Big Data Analytics
PPTX
Analysis of Major Trends in Big Data Analytics
PPTX
Overview of Apache Fink: the 4 G of Big Data Analytics Frameworks
PPTX
Overview of Apache Flink: the 4G of Big Data Analytics Frameworks
PPTX
Overview of Apache Fink: The 4G of Big Data Analytics Frameworks
PDF
7_considerations_final
PDF
Streaming analytics
PDF
Processing Real-Time Data at Scale: A streaming platform as a central nervous...
PPTX
Make Streaming Analytics work for you: The Devil is in the Details
PDF
A Real-Time Version of the Truth
PPTX
Streaming in the Wild with Apache Flink
PDF
Open Blueprint for Real-Time Analytics with In-Stream Processing (ISP); 2017 ...
PDF
Apache Kafka as Data Hub for Crypto, NFT, Metaverse (Beyond the Buzz!)
PDF
Moving To MicroServices
PDF
Monitoring in 2017 - TIAD Camp Docker
PDF
Event Driven Architecture with a RESTful Microservices Architecture (Kyle Ben...
PDF
OSACon 2023_ Unlocking Financial Data with Real-Time Pipelines
PDF
Take Action: The New Reality of Data-Driven Business
Open Blueprint for Real-Time Analytics with In-Stream Processing
Open Blueprint for Real-Time Analytics in Retail: Strata Hadoop World 2017 S...
Analysis of Major Trends in Big Data Analytics
Analysis of Major Trends in Big Data Analytics
Overview of Apache Fink: the 4 G of Big Data Analytics Frameworks
Overview of Apache Flink: the 4G of Big Data Analytics Frameworks
Overview of Apache Fink: The 4G of Big Data Analytics Frameworks
7_considerations_final
Streaming analytics
Processing Real-Time Data at Scale: A streaming platform as a central nervous...
Make Streaming Analytics work for you: The Devil is in the Details
A Real-Time Version of the Truth
Streaming in the Wild with Apache Flink
Open Blueprint for Real-Time Analytics with In-Stream Processing (ISP); 2017 ...
Apache Kafka as Data Hub for Crypto, NFT, Metaverse (Beyond the Buzz!)
Moving To MicroServices
Monitoring in 2017 - TIAD Camp Docker
Event Driven Architecture with a RESTful Microservices Architecture (Kyle Ben...
OSACon 2023_ Unlocking Financial Data with Real-Time Pipelines
Take Action: The New Reality of Data-Driven Business

More from Slim Baltagi (13)

PDF
How to select a modern data warehouse and get the most out of it?
PDF
Modern-Data-Warehouses-In-The-Cloud-Use-Cases-Slim-Baltagi
PDF
Modern big data and machine learning in the era of cloud, docker and kubernetes
PPTX
Apache Kafka vs RabbitMQ: Fit For Purpose / Decision Tree
PPTX
Apache Fink 1.0: A New Era for Real-World Streaming Analytics
PPTX
Apache Flink community Update for March 2016 - Slim Baltagi
PPT
Step-by-Step Introduction to Apache Flink
PPTX
Unified Batch and Real-Time Stream Processing Using Apache Flink
PPTX
Why apache Flink is the 4G of Big Data Analytics Frameworks
PPT
Apache Flink Crash Course by Slim Baltagi and Srini Palthepu
PDF
Big Data at CME Group: Challenges and Opportunities
PDF
Transitioning Compute Models: Hadoop MapReduce to Spark
PDF
A Big Data Journey: Bringing Open Source to Finance
How to select a modern data warehouse and get the most out of it?
Modern-Data-Warehouses-In-The-Cloud-Use-Cases-Slim-Baltagi
Modern big data and machine learning in the era of cloud, docker and kubernetes
Apache Kafka vs RabbitMQ: Fit For Purpose / Decision Tree
Apache Fink 1.0: A New Era for Real-World Streaming Analytics
Apache Flink community Update for March 2016 - Slim Baltagi
Step-by-Step Introduction to Apache Flink
Unified Batch and Real-Time Stream Processing Using Apache Flink
Why apache Flink is the 4G of Big Data Analytics Frameworks
Apache Flink Crash Course by Slim Baltagi and Srini Palthepu
Big Data at CME Group: Challenges and Opportunities
Transitioning Compute Models: Hadoop MapReduce to Spark
A Big Data Journey: Bringing Open Source to Finance

Recently uploaded (20)

PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
1_Introduction to advance data techniques.pptx
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPT
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
PDF
Foundation of Data Science unit number two notes
PPT
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
PDF
Launch Your Data Science Career in Kochi – 2025
PPTX
Moving the Public Sector (Government) to a Digital Adoption
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
Acceptance and paychological effects of mandatory extra coach I classes.pptx
STUDY DESIGN details- Lt Col Maksud (21).pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Supervised vs unsupervised machine learning algorithms
1_Introduction to advance data techniques.pptx
oil_refinery_comprehensive_20250804084928 (1).pptx
Galatica Smart Energy Infrastructure Startup Pitch Deck
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Business Acumen Training GuidePresentation.pptx
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
Foundation of Data Science unit number two notes
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
Launch Your Data Science Career in Kochi – 2025
Moving the Public Sector (Government) to a Digital Adoption
Introduction-to-Cloud-ComputingFinal.pptx

Apache Flink: Real-World Use Cases for Streaming Analytics

  • 1. Apache Flink: Real-World Use Cases for Streaming Analytics Slim Baltagi @SlimBaltagi Brazil - Sao Paulo Apache Flink Meetup March 17th, 2016
  • 2. Agenda I. What is Apache Flink Stack? II. Movement from Batch Analytics to Streaming Analytics III. Key Differentiators of Apache Flink for Streaming Analytics IV. Real-World Use Cases with Flink for Streaming Analytics V. Who is using Flink? VI. Where do you go from here? 2
  • 3. I. What is Apache Flink stack? Gelly Table HadoopM/R SAMOA DataSet (Java/Scala/Python) Batch Processing DataStream (Java/Scala) Stream Processing FlinkML Local Single JVM Embedded Docker Cluster Standalone YARN, Mesos (WIP) Cloud Google’s GCE Amazon’s EC2 IBM Docker Cloud, … ApacheBeam ApacheBeam MRQL Table Cascading Runtime : Distributed Streaming Dataflow Zeppelin DEPLOYSYSTEMAPIs&LIBRARIESSTORAGE Files Local HDFS S3, Azure Storage Tachyon Databases MongoDB HBase SQL … Streams Flume kafka RabbitMQ … Batch Optimizer Stream Builder Storm FlinkCEP Gelly-Stream 3
  • 4. I. What is Apache Flink stack? See First Apache Flink meetup in South America that I gave as a webinar on February 24th 2016. It is titled: Introduction to Apache Flink: What, How, Why, Who, Where? https://www.youtube.com/watch?v=YAKdD1rHCxs (Part 1) See similar talk on February 2nd 2016 that I previously gave a at the New York City Apache Flink which. Now, the world’s largest Flink meetup • Slideshttp://www.slideshare.net/sbaltagi/apacheflinkwhathowwhywhowhe rebyslimbaltagi-57825047 • Video recording https://www.youtube.com/watch?v=G77m6Ou_kFA  Flink Knowledge Base: all resources related to Flink http://sparkbigdata.com/component/tags/tag/27-flink 4
  • 5. Agenda I. What is Apache Flink Stack? II. Movement from Batch Analytics to Streaming Analytics III. Key Differentiators of Apache Flink for Streaming Analytics IV. Real-World Use Cases with Flink for Streaming Analytics V. Who is using Flink? VI. Where do you go from here? 5
  • 6. II. Movement from Batch Analytics to Streaming Analytics Batch Streaming High-latency apps Low-latency apps Static Files Event Streams Process-after-store Sense-and-respond Batch processors Stream processors 6
  • 7. What is batch processing? Many big data sources represent series of events that are continuously produced. Example: tweets, web logs, user transactions, system logs, sensor networks, … Batch processing: These events are collected together based on the number of records or a certain period of time (a day for example) and stored somewhere to be processed as a finite data set. What’s the problem with ‘process-after-store’ model: • Unnecessary latencies between data generation and analysis & actions on the data. • Implicit assumption that the data is complete after a given period of time and can be used to make accurate predictions for example. 7
  • 8. What is stream processing?  Most data is available as series of events (click streams, mobile apps data, .. ) continuously produced by a variety of applications and systems in the enterprise.  Data sources are not anymore typical enterprise sources but new ones such as social media data, sensor data …  Data from disparate systems (internally and externally) can be integrated in a central hub and:  Made available as low-latency data streams required for real-time stream processing.  Loaded into your data warehouse for offline analysis. 8
  • 9. Factors behind the movement from Batch Analytics to Streaming Analytics There is a movement in Big Data processing from Batch Analytics to Streaming Analytics driven by many factors: • Data streams: Sensors networks, mobile apps data, .. • Technology: Rapidly growing open source streaming analytics tools, vendors innovating in this space, more mobile devices than human beings, cloud services for real-time stream processing… • Business: Organizations are more and more embracing streaming analytics for faster time to insight and competitive advantages. • Customers: Costumers are becoming more and more demanding for instant responses in the way they are used to in social networks: twitter, facebook, linkedin… 9
  • 10. Agenda I. What is Apache Flink Stack? II. Batch vs. Streaming Analytics III. Key Differentiators of Apache Flink for Streaming Analytics IV. Real-World Use Cases with Flink for Streaming Analytics V. Who is using Flink? VI. Where do you go from here? 10
  • 11. III. Key Differentiators of Apache Flink for Streaming Analytics The 8 Requirements of Real-Time Stream Processing, Stonebraker et al. 2005 • Original paper http://cs.brown.edu/~ugur/8rulesSigRec.pdf • A short summaryhttp://blog.acolyer.org/2014/12/03/the-8-requirements-of- real-time-stream-processing/ Apache Flink fulfills all these requirements and more! • http://data-artisans.com/real-time-stream-processing-the-next-step-for-apache-flink/ • http://data-artisans.com/flink-0-10-a-significant-step-forward-in-open-source-stream- processing/ • http://data-artisans.com/flink-1-0-0/ • https://cloud.google.com/dataflow/blog/dataflow-beam-and-spark-comparison • https://docs.google.com/document/d/1ExmtVpeVVT3TIhO1JoBpC5JKXm- 778DAD7eqw5GANwE/edit • http://www.slideshare.net/robertmetzger1/january-2016-flink-community-update-roadmap- 2016/9 11
  • 12. III. Key Differentiators of Apache Flink for Streaming Analytics True Low latency streaming engine: fast results in milliseconds High throughput: handle large data amounts (millions of events per second) • http://data-artisans.com/extending-the-yahoo-streaming-benchmark/ Exactly once guarantees: Correct results, also in failure cases • http://data-artisans.com/high-throughput-low-latency-and-exactly-once-stream- processing-with-apache-flink/ Programmability: Higher level, Intuitive and easy to use APIs Backpressure refers to the situation where a system is receiving data at a higher rate than it can process during a temporary load spike. • http://data-artisans.com/how-flink-handles-backpressure/ Event time and out of order stream processing • http://data-artisans.com/how-apache-flink-enables-new-streaming-applications- part-1/ Stateful stream processing and versioning state • http://data-artisans.com/how-apache-flink-enables-new-streaming-applications/ 12
  • 13. Agenda I. What is Apache Flink Stack? II. Batch vs. Streaming Analytics III. Key Differentiators of Apache Flink for Streaming Analytics IV. Real-World Use Cases with Flink for Streaming Analytics V. Who is using Flink? VI. Where do you go from here? 13
  • 14. IV. Real-World Use Cases with Flink for Streaming Analytics Stonebraker et al. make the case in 2005 that stream processing is going to become increasingly important. Not just for the usual finance, fraud, and command-and- control use cases, but also….… “as the “sea change” caused by cheap micro-sensor technology takes hold, we expect to see everything of material significance on the planet get “sensor-tagged” and report its state or location in real time. This sensorization of the real world will lead to a “green field” of novel monitoring and control applications with high-volume and low- latency processing requirements.” Reference:http://blog.acolyer.org/2014/12/03/the-8-requirements-of-real-time- stream-processing/ 14
  • 15. Shift from Reactive approach to proactive approach Capturing new data and providing the ability to process streams of this data is allowing organizations to shift • From: taking a REACTIVE, post transaction approach • To: more of a PROACTIVE, pre decision approach to interactions with their customers, suppliers and employees. Again, no matter the vertical, this transition is happening. 15
  • 16. …to real-time personalization From static branding …to repair before break From break then fix …to designer medicine From mass treatment …to automated algorithms From educated investing …to 1x1 targeting From mass branding A shift in Advertising A shift in Financial Services A shift in Healthcare A shift in Retail A shift in Manufacturing Big Data Analytics Frameworks enable shifting the business from… Reactive Proactive Shift from Reactive approach to proactive approach 16
  • 17. Real-Time Monitoring of Customer Activity Events 17
  • 18. Generic Streaming Analytics Architectural pattern.Event Producers EventCollector EventBroker EventProcessor Indexer Visualizer/Search • Kafka • RabitMQ • JMS • Flink • Spark • Storm • Samza • ElasticSearch • Solr • Cassandra • NoSQL DB • Kibana • Custom GUI • Flume • SpringXD • Logstash • Nifi • Fluentd • Apps • Devices • Sensors 18
  • 19. IV. Real-World Use Cases with Flink for Streaming Analytics Below is list several use cases, taken from real industrial situations: Financial Services – Real-time fraud detection. – Real-time mobile notifications. Healthcare – Smart hospitals - collect data and readings from hospital devices (vitals, IVs, MRI, etc.) and analyze and alert in real time. – Biometrics - collect and analyze data from patient devices that collect vitals while outside of care facilities. Ad Tech – Real-time user targeting based on segment and preferences. Oil & Gas • Real-time monitoring of pumps/rigs. 19
  • 20. IV. Real-World Use Cases with Flink for Streaming Analytics Retail • Build an intelligent supply chain by placing sensors or RFID tags on items to alert if items aren’t in the right place, or proactively order more if supply is low. • Smart logistics with real-time end-to-end tracking of delivery trucks. Telecommunications • Real-time antenna optimization based on user location data. • Real-time charging and billing based on customer usage, ability to populate up-to-date usage dashboards for users. • Mobile offers. • Optimized advertising for video/audio content based on what users are consuming. 20
  • 21. Agenda I. What is Apache Flink Stack? II. Batch vs. Streaming Analytics III. Key Differentiators of Apache Flink for Streaming Analytics IV. Real-World Use Cases with Flink for Streaming Analytics V. Who is using Flink? VI. Where do you go from here? 21
  • 22. V. Who is using Flink? ho is using Apache Flink?How companies are using Flink as presented at Flink Forward 2015. Kostas Tzoumas and Stephan Ewen. http://www.slideshare.net/stephanewen1/flink-use-cases-bay-area-meetup- october-2015 Powered by Flink page:  https://cwiki.apache.org/confluence/display/FLINK/Powered+by+Flink 22
  • 23. V. Who is using Flink? is using Apache Flink? has its hack week and the winner was a Flink based streaming project! December 18, 2015 • Extending the Yahoo! Streaming Benchmark and Winning Twitter Hack-Week with Apache Flink. Posted on February 2, 2016 by Jamie Grier http://data-artisans.com/extending-the- yahoo-streaming-benchmark/  did some benchmarks to compare performance of their use case implemented on Apache Storm against Spark Streaming and Flink. Results posted on December 18, 2015 • http://yahooeng.tumblr.com/post/135321837876/benchmarking- streaming-computation-engines-at • http://data-artisans.com/extending-the-yahoo-streaming-benchmark/ • https://github.com/dataArtisans/yahoo-streaming-benchmark 23
  • 24. Agenda I. What is Apache Flink Stack? II. Batch vs. Streaming Analytics III. Key Differentiators of Apache Flink for Streaming Analytics IV. Real-World Use Cases with Flink for Streaming Analytics V. Who is using Flink? VI. Where do you go from here? 24
  • 25. VI. Where do you go from here?  A few resources for you: • Flink at the Apache Software Foundation: flink.apache.org/ • Free ebook from MapR: Streaming Architecture: New Designs Using Apache Kafka and MapR Streams https://www.mapr.com/streaming-architecture-using-apache-kafka-mapr- streams • Free Apache Flink training from data Artisans http://dataartisans.github.io/flink-training/ Still version 0.10.1 and not latest 1.0 • Flink Knowledge Base: One-Stop for everything related to Apache Flink http://sparkbigdata.com/component/tags/tag/27-flink • Apache Flink in Action is probably the First book on Apache Flink! It will be published by Manning. I am co- authoring this book! Please stay tuned for the MEAP: Manning Early Access Program! 25
  • 26. VI. Where do you go from here?  A few takeaways : • Organizations are more and more embracing streaming analytics for: • Use cases requiring lower latency: monitoring, altering, … • Faster time to insight • Competitive advantages • By leveraging streaming analytics, new startups are challenging established companies. Example: Pay-As-You-Go insurance or Usage-Based Auto Insurance • Speed is said to have become the new currency of business. 26
  • 27. Thanks! To all of you for attending! Let’s keep in touch! • sbaltagi@gmail.com • @SlimBaltagi • https://www.linkedin.com/in/slimbaltagi Any questions? 27