SlideShare a Scribd company logo
Stream Processing as Game Changer for Big Data and Internet of Things by Kai Wahner
Kai Wähner
Technology Evangelist
kontakt@kai-waehner.de
LinkedIn
@KaiWaehner
www.kai-waehner.de
Big Data Spain @ Madrid (November 2016)
Comparison of Streaming Analytics Frameworks
© Copyright 2000-2016 TIBCO Software Inc.
Key Take-Aways
• Streaming Analytics processes Data while it is in Motion!
• Automation and Proactive Human Interaction are BOTH needed!
• Streaming Analytics is Complementary to Hadoop and Machine Learning!
© Copyright 2000-2016 TIBCO Software Inc.
Agenda
• Real World Use Cases
• Introduction to Streaming Analytics
• Market Overview
• Relation to other Big Data Components
• Live Demo
© Copyright 2000-2016 TIBCO Software Inc.
Agenda
• Real World Use Cases
• Introduction to Streaming Analytics
• Market Overview
• Relation to other Big Data Components
• Live Demo
© Copyright 2000-2016 TIBCO Software Inc.
Analyze and Act on Critical Business Moments
© Copyright 2000-2016 TIBCO Software Inc.
Success Story
Predictive
Fault Management
© Copyright 2000-2013 TIBCO Software Inc.
“An outage on one well can cost $10M per
hour. We have 20-100 outages per year.“
- Drilling operations VP, major oil company
Data Monitoring
• Motor temperature
• Motor vibration
• Current
• Intake pressure
• Intake
temperature
Ø Flow
Electrical power cable
Pump
Intake
Protector
ESP motor
Pump monitoring unit
Electric Submersible
Pumps (ESP)
Predictive Analytics - Fault Management
Voltage
Temperature
Vibration
Device
history
Temporal analytic: “If vibration spike is followed by temp spike then
voltage spike [within 4 hours] then flag high severity alert.”
Predictive Analytics - Fault Management
© Copyright 2000-2016 TIBCO Software Inc.
Live Surveillance of Equipment
Continuous, live geospatial display of pump health
and predictive signal breeches
Alerts based on
predictive signals
Compare live readings and signals
to historical average and means
Continuous, live visualization of
stats per 100’s of wells
© Copyright 2000-2016 TIBCO Software Inc.
Success Story
Crowd Management
© Copyright 2000-2013 TIBCO Software Inc.
“Turn the customer into a fan and increase
revenue significantly.“
© Copyright 2000-2016 TIBCO Software Inc.
World’s Smartest Building
© Copyright 2000-2015 TIBCO Software Inc.
© Copyright 2000-2016 TIBCO Software Inc.
All Customers are different… Treat them that way…
14
Capture – Engage – Expand - Monetize
Patterns – Real time
MOREPERSONAL
MORE CONTEXT
social
CRM
POS
mobileweb
e-mails
© Copyright 2000-2016 TIBCO Software Inc.
Success Story
Smart Manufacturing
© Copyright 2000-2013 TIBCO Software Inc.
““For every 1% increase in shipped
product, we make $11MM in profit. The
demand is there, we just need to fulfill it.“
- Head of Quality, Solar Panel Manufacturer
Scenario: Predictive Scrapping of Parts in an Assembly Line
Goal: Scrap parts as early as possible automatically to reduce costs in a manufacturing process.
Question: When to scrap a part in Station 1 instead of doing re-work or sending it to Station 2?
Station 1 Station 2
Cost Before
9€
7€ 13€
Total Cost
29€
(or more)
Scrap? Scrap?
Machine Learning Applied to Sensor Events in Real Time
© Copyright 2000-2016 TIBCO Software Inc.
Example: Predictive Analytics for Manufacturing (“scrap parts as early as possible”)
© Copyright 2000-2016 TIBCO Software Inc.
Great success stories, but …
… how to realize these use cases?
© Copyright 2000-2016 TIBCO Software Inc.
Agenda
• Real World Use Cases
• Introduction to Streaming Analytics
• Market Overview
• Relation to other Big Data Components
• Live Demo
© Copyright 2000-2016 TIBCO Software Inc.
Traditional Data Processing: ”Request – Response”
Store
Analyze
Act
© Copyright 2000-2016 TIBCO Software Inc.
Traditional Data Processing: ”Request – Response”
• Data is collected from a variety of
sources, and placed in a persistent
store.
– Relational database.
– NoSQL store.
– Hadoop environment.
• Analytical processes are executed
against the stored data to detect
opportunities or threats.
• Actions are identified, delivered,
and executed across various
business channels.
Store
Analyze
Act
© Copyright 2000-2016 TIBCO Software Inc.
Traditional Data Processing: Challenges
Store
Analyze
Act
• Introduces too much “decision
latency” into the business.
• Responses are delivered “after-the-
fact”.
• Maximum value of the identified
situation is lost.
– Cross-sell / up-sell opportunities are
lost, impending equipment failure is
missed, business processes are slow
to respond and lack timely context.
• Decisions are made on old and stale
data.
© Copyright 2000-2016 TIBCO Software Inc.
Event Value Decreases Over TimeValue
Time
© Copyright 2000-2016 TIBCO Software Inc.
Event Value Decreases Over TimeValue
Time
• Events are often most
valuable “close to” the
point of collection.
• As time passes, events tend
to lose their value.
• The ability to proactively
identify “threats” or
“opportunities” will typically
decrease.
• Real-time capability is
needed to maximize event
value.
© Copyright 2000-2016 TIBCO Software Inc.
The New Era: Streaming Analytics
Act &
Monitor
Analyze
Store
© Copyright 2000-2016 TIBCO Software Inc.
The New Era: Streaming Analytics
• Events are analyzed and processed in
real-time as they arrive.
• Decisions are timely, contextual, and
based on fresh data.
• Decision latency is eliminated, resulting
in:
ü Superior Customer Experience
ü Operational Excellence
ü Instant Awareness and Timely Decisions
Act &
Monitor
Analyze
Store
© Copyright 2000-2016 TIBCO Software Inc.
Streaming Analytics: What Is A “Stream”?
Clickstream
Sensors
Social Data
Logs
• Consists of pieces of data
typically generated due to a
change of state.
• One or more identifiers
• Timestamp & payload
• Immutable
• Typically unbounded; there is no
end to the data.
• Batch dataset: “bounded”.
• Can be raw or derived.
© Copyright 2000-2016 TIBCO Software Inc.
Streaming Analytics Processing Pipeline
APIs
Adapters /
Channels
Integration
Messaging
Stream Ingest
Transformation
Aggregation
Enrichment
Filtering
Stream
Preprocessing
Process
Management
Analytics
(Real Time)
Applications
& APIs
Analytics /
DW Reporting
Stream
Outcomes
• Contextual Rules
• Windowing
• Patterns
• Deep ML
• Analytics
• …
Stream Analytics &
Processing
Index / SearchNormalization
© Copyright 2000-2016 TIBCO Software Inc.
Streaming Analytics Processing Pipeline
Separation of concerns
to easily adjust one part in response to
changing business requirements
without the need for rewriting other parts!
© Copyright 2000-2016 TIBCO Software Inc.
Streaming Analytics: Ingest
APIs
Adapters /
Channels
Integration
Messaging
Stream Ingest
• Stream data may come from a number sources,
either at the edge, in the data center, or via the
cloud.
• Need to handle a variety of data formats and protocols, all at global
scale.
• Pay attention to “event time” vs. “processing time”
!!
• Event Time: Time the event was created.
• Processing Time: Time the event was received or processed.
• Event time is typically more relevant, and will lead
to more predictable results.
• Eliminate time skew associated with clock synchronization, system
outages, processing latency, network issues, etc.
© Copyright 2000-2016 TIBCO Software Inc.
Streaming Analytics: Preprocessing
Transformation
Aggregation
Enrichment
Filtering
Stream
Preprocessing
Normalization • Stream data often needs to be manipulated before it is
processed by downstream components.
• Normalization
• Transformation
• May filter unwanted events close to the source to
eliminate “noise”.
• Events may also be enriched with additional context to
provide additional data for further processing.
• Customer details, equipment details, location information, etc.
• Data may be stored in a high-speed cache or other store for rapid
access.
© Copyright 2000-2016 TIBCO Software Inc.
Streaming Analytics: Processing
Batch
• Transform
• Deep ML
• Analytics
• Data Lake
• …
Stream Analytics &
Processing
Real-Time
• RT Analytics
• Contextual
Rules
• Windowing
• Patterns
• …
• Streams may be immediately pushed to a data lake.
• May be raw or preprocessed.
• Used for subsequent analysis as part of an immutable data layer.
• Typically processed in batch in this part of the architecture.
• In parallel, streams may be processed in real-time
against a number of constructs.
• Real-time analytics.
• Graph analysis / Geo Analysis
• Rules.
• Results from the real-time processing may be fed into
the batch component.
• The results of batch processing may also be pushed into the real-
time layer.
© Copyright 2000-2016 TIBCO Software Inc.
Streaming Analytics Processing Pipeline
APIs
Adapters /
Channels
Integration
Messaging
Stream Ingest
Transformation
Aggregation
Enrichment
Filtering
Stream
Preprocessing
Process
Management
Analytics
(Real Time)
Applications
& APIs
Analytics /
DW Reporting
Stream
Outcomes
• Contextual Rules
• Windowing
• Patterns
• Deep ML
• Analytics
• …
Stream Analytics &
Processing
Index / SearchNormalization
© Copyright 2000-2016 TIBCO Software Inc.
Dataflow Streaming Pipeline – Extract, Transform, Load in Real Time
https://www.linkedin.com/pulse/data-pipeline-hadoop-part-1-2-birender-saini
© Copyright 2000-2016 TIBCO Software Inc.
Streaming Analytics Processing Pipeline
APIs
Adapters /
Channels
Integration
Messaging
Stream Ingest
Transformation
Aggregation
Enrichment
Filtering
Stream
Preprocessing
Process
Management
Analytics
(Real Time)
Applications
& APIs
Analytics /
DW Reporting
Stream
Outcomes
• Contextual Rules
• Windowing
• Patterns
• Deep ML
• Analytics
• …
Stream Analytics &
Processing
Index / SearchNormalization
© Copyright 2000-2016 TIBCO Software Inc.
Streaming Analytics: “Windows”
https://www.oreilly.com/ideas/the-world-beyond-batch-streaming-101
© Copyright 2000-2016 TIBCO Software Inc.
Automation and Augmented Intelligence for Humans
Actions by Operations
Human	decisions	in	real	time	informed	
by	up	to	date	information
38
Automated	action	based	on	models	of	history	
combined	with	live	context	and	business	rules
Machine-to-Machine Automation
Big Data Reference Architecture
Augmented	Intelligence
Operations
SENSOR DATA
TRANSACTIONS
MESSAGE BUS
MACHINE DATA
SOCIAL DATA
Streaming	AnalyticsAction
Aggregate
Rules
Stream	Processing
Analytics
Correlate
Continuous	query	
processing
Alerts
Manual	action,	
escalation
Data	Discovery
Python
R
Data	
Scientists
Cleansed
Data
History
Visual	Analytics
Spark
Integration
ERP MDM DB WMS
SOA	/	Microservices
BIG	DATA
Data	Warehouse,	Hadoop
Internal	Data
Integration	Bus
API
Event	Server
H2O.ai
Live	UI
© Copyright 2000-2016 TIBCO Software Inc.
Agenda
• Real World Use Cases
• Introduction to Streaming Analytics
• Market Overview
• Relation to other Big Data Components
• Live Demo
© Copyright 2000-2016 TIBCO Software Inc.
Streaming Analytics Market Growing Significantly
“Everything Flows:
The value of stream processing
and streaming integration”
(September 2016)
http://hortonworks.com/info/value-streaming-integration/
© Copyright 2000-2016 TIBCO Software Inc.
Alternatives for Stream Processing
Time
to
Market
Streaming
Frameworks
Streaming
Products
Slow Fast
Streaming
Concepts
IncludesIncludes
© Copyright 2000-2016 TIBCO Software Inc.
Alternatives for Stream Processing
Concepts (Continuous Queries, Sliding Windows)
Patterns (Counting, Sequencing, Tracking, Trends)
Build everything by yourself! L
Time
to
Market
Streaming
Frameworks
Streaming
Products
Slow Fast
Streaming
Concepts
© Copyright 2000-2016 TIBCO Software Inc.
Usually not an option ...
… as there are a lot of
Frameworks and
Products available!
© Copyright 2000-2016 TIBCO Software Inc.
Alternatives for Stream Processing
Library (Java, .NET, Python)
Query Language (often similar to SQL)
Scalability (horizontal and vertical, fail over)
Connectivity (technologies, markets, products)
Operators (Filter, Sort, Aggregate)
Time
to
Market
Streaming
Frameworks
Streaming
Products
Slow Fast
Streaming
Concepts
Different frameworks
(ingest, preprocess, analytics)
combined!
© Copyright 2000-2016 TIBCO Software Inc.
Streaming Analytics Processing Pipeline
APIs
Adapters /
Channels
Integration
Messaging
Stream Ingest
Transformation
Aggregation
Enrichment
Filtering
Stream
Preprocessing
Process
Management
Analytics
(Real Time)
Applications
& APIs
Analytics /
DW Reporting
Stream
Outcomes
• Contextual Rules
• Windowing
• Patterns
• Deep ML
• Analytics
• …
Stream Analytics &
Processing
Index / SearchNormalization
© Copyright 2000-2016 TIBCO Software Inc.
Example for an Open Source Streaming Pipeline
http://hortonworks.com/hadoop-tutorial/realtime-event-processing-nifi-kafka-storm
“Realtime Event Processing in Hadoop with Apache NiFi, Kafka and Storm”
Dataflow Streaming Pipeline (Ingest, Preprocess)
Augmented	Intelligence
Operations
SENSOR DATA
TRANSACTIONS
MESSAGE BUS
MACHINE DATA
SOCIAL DATA
Streaming	AnalyticsAction
Aggregate
Rules
Stream	Processing
Analytics
Correlate
Continuous	query	
processing
Alerts
Manual	action,	
escalation
Data	Discovery
Python
R
Data	
Scientists
Cleansed
Data
History
Visual	Analytics
Spark
Integration
ERP MDM DB WMS
SOA	/	Microservices
BIG	DATA
Data	Warehouse,	Hadoop
Internal	Data
Integration	Bus
API
Event	Server
H2O.ai
Live	UI
© Copyright 2000-2016 TIBCO Software Inc.
Open Source Dataflow Streaming Pipelines
Streaming Analytics
Augmented	Intelligence
Operations
SENSOR DATA
TRANSACTIONS
MESSAGE BUS
MACHINE DATA
SOCIAL DATA
Streaming	AnalyticsAction
Aggregate
Rules
Stream	Processing
Analytics
Correlate
Continuous	query	
processing
Alerts
Manual	action,	
escalation
Data	Discovery
Python
R
Data	
Scientists
Cleansed
Data
History
Visual	Analytics
Spark
Integration
ERP MDM DB WMS
SOA	/	Microservices
BIG	DATA
Data	Warehouse,	Hadoop
Internal	Data
Integration	Bus
API
Event	Server
H2O.ai
Live	UI
© Copyright 2000-2016 TIBCO Software Inc.
Frameworks and Products (no complete list!)
OPEN SOURCE CLOSED SOURCE
PRODUCT
FRAMEWORK
Azure Microsoft
Stream Analytics
Google Cloud
Dataflow
© Copyright 2000-2016 TIBCO Software Inc.
Frameworks and Products (no complete list!)
OPEN SOURCE CLOSED SOURCE
PRODUCT
FRAMEWORK
Azure Microsoft
Stream Analytics
Google Cloud
Dataflow
© Copyright 2000-2016 TIBCO Software Inc.
Apache Storm
Spout Bolt
© Copyright 2000-2016 TIBCO Software Inc.
Apache Storm – Hello World
http://wpcertification.blogspot.ch/2014/02/helloworld-apache-storm-word-counter.html
© Copyright 2000-2016 TIBCO Software Inc.
AWS Kinesis – Integration with other AWS Components
https://aws.amazon.com/kinesis/
AWS S3 RedShift DynamoDB
© Copyright 2000-2016 TIBCO Software Inc.
AWS Kinesis – Hello World
© Copyright 2000-2016 TIBCO Software Inc.
AWS Kinesis – Public Cloud Trade-Off
… is easy to setup and scale.
But you do not have full control! L
• Any data that is older than 24 hours is automatically deleted
• Every Kinesis application consists of just one procedure, so you can’t use Kinesis
to perform complex stream processing unless you connect multiple applications
• Kinesis can only support a maximum size of 50KB for each data item
http://diamondstream.com/amazon-kinesis-big-real-time-data-processing-solution/
(blog post from 2014, might be outdated, but shows that you do not have full control over a cloud service)
© Copyright 2000-2016 TIBCO Software Inc.
Apache Spark
General Data-processing Framework
à However, focus is especially on Analytics (these days)
x
© Copyright 2000-2016 TIBCO Software Inc.
Apache Spark – Focus on Analytics
http://aptuz.com/blog/is-apache-spark-going-to-replace-hadoop/
http://fortune.com/2015/09/09/cloudera-spark-mapreduce/
http://www.ebaytechblog.com/2014/05/28/using-spark-to-ignite-data-analytics/
http://www.forbes.com/sites/paulmiller/2015/06/15/ibm-backs-apache-spark-for-big-data-analytics/
“[IBM’s initiatives] include:
• deepening the integration between Apache
Spark and existing IBM products like the
Watson Health Cloud;
• open sourcing IBM’s existing SystemML
machine learning technology;
© Copyright 2000-2016 TIBCO Software Inc.
Spark Streaming
Spark Streaming
• is no real streaming solution
• uses micro-batches
• cannot process data in real-time (i.e. no ultra-low latency)
• allows easy combination with other Spark components (SQL, Machine Learning, etc.)
© Copyright 2000-2016 TIBCO Software Inc.
Apache Spark – Hello World
Spark Streaming API
Spark Core API
© Copyright 2000-2016 TIBCO Software Inc.
Apache Spark – as a Cloud Service
© Copyright 2000-2016 TIBCO Software Inc.
Apache Flink
Spark Streaming
• „Newcomer“
• Looks very similar to Spark
• But „Streaming First“ concept
© Copyright 2000-2016 TIBCO Software Inc.
Apache Beam
Generic API with unified programming model for stream processing frameworks
http://www.slideshare.net/DataTorrent/apache-beam-incubating-67428372
© Copyright 2000-2016 TIBCO Software Inc.
Frameworks and Products (no complete list!)
OPEN SOURCE CLOSED SOURCE
PRODUCT
FRAMEWORK
Azure Microsoft
Stream Analytics
Google Cloud
Dataflow
Alternatives for Stream Processing
Library (Java, .NET, Python)
Query Language (often similar to SQL)
Scalability (horizontal and vertical, fail over)
Connectivity (technologies, markets, products)
Operators (Filter, Sort, Aggregate)
Time
to
Market
Streaming
Frameworks
Streaming
Products
Slow Fast
Streaming
Concepts
Single Tool (Complete Processing Pipeline)
Visual IDE (Dev, Test, Debug)
Simulation (Feed Testing, Test Generation)
Live UI (monitoring, proactive interaction)
Maturity (24/7 support, consulting)
Integration (out-of-the-box: ESB, MDM, Analytics, etc.)
© Copyright 2000-2016 TIBCO Software Inc.
Streaming Analytics Processing Pipeline
APIs
Adapters /
Channels
Integration
Messaging
Stream Ingest
Transformation
Aggregation
Enrichment
Filtering
Stream
Preprocessing
Process
Management
Analytics
(Real Time)
Applications
& APIs
Analytics /
DW Reporting
Stream
Outcomes
• Contextual Rules
• Windowing
• Patterns
• Deep ML
• Analytics
• …
Stream Analytics &
Processing
Index / SearchNormalization
Dataflow Streaming Pipeline + Streaming Analytics
Augmented	Intelligence
Operations
SENSOR DATA
TRANSACTIONS
MESSAGE BUS
MACHINE DATA
SOCIAL DATA
Streaming	AnalyticsAction
Aggregate
Rules
Stream	Processing
Analytics
Correlate
Continuous	query	
processing
Alerts
Manual	action,	
escalation
Data	Discovery
Python
R
Data	
Scientists
Cleansed
Data
History
Visual	Analytics
Spark
Integration
ERP MDM DB WMS
SOA	/	Microservices
BIG	DATA
Data	Warehouse,	Hadoop
Internal	Data
Integration	Bus
API
Event	Server
H2O.ai
Live	UI
© Copyright 2000-2016 TIBCO Software Inc.
IBM Streams
© Copyright 2000-2016 TIBCO Software Inc.
TIBCO StreamBase
• Performance: Latency, Throughput, Scalability
• Multi-threaded and clustered server from version 1
• High throughput: Millions of messages, 100,000s of quotes, 10,000s of orders
• Low-latency: microsecond latency for algo trading, pre-trade risk, market data
• Take Advantage of High Performance Hardware
• Multicore (12, 24, 32 core) large memory (10s of gigabytes)
• 64-bit Linux, Windows, Solaris deployment
• Hardware acceleration (GPU, Solace, Tervela)
• Enterprise Deployment
• High availability and fault tolerance
• Distributed state management for large data sets
• Management and monitoring tools
• Security and entitlements Integration
• Continuous deployment and QA Process Support
StreamSQL	compiler	
and	static	optimizer
In	process,	in	thread	
adapter	architecture
Visual	parallelism	
and	scaling
In-Memory	Data	Grid	
integration	for	
distributed	shared	state
Data	parallelism	
and	dispatch
StreamBase	Server	
Innovations
© Copyright 2000-2016 TIBCO Software Inc.
TIBCO StreamBase - Visual Programming
Aggregate
Capture	card	activations	per	
location
Sales	too	high
à Fraud
Log	to	any	
database
No	Fraud
Sales	too	high?
Visual Debugger
Feed Simulation
Unit Testing
StreamBase Development StudioTIBCO StreamBase - Visual Programming
Live UI for Augmented Intelligence
Augmented	Intelligence
Operations
SENSOR DATA
TRANSACTIONS
MESSAGE BUS
MACHINE DATA
SOCIAL DATA
Streaming	AnalyticsAction
Aggregate
Rules
Stream	Processing
Analytics
Correlate
Continuous	query	
processing
Alerts
Manual	action,	
escalation
Data	Discovery
Python
R
Data	
Scientists
Cleansed
Data
History
Visual	Analytics
Spark
Integration
ERP MDM DB WMS
SOA	/	Microservices
BIG	DATA
Data	Warehouse,	Hadoop
Internal	Data
Integration	Bus
API
Event	Server
H2O.ai
Live	UI
© Copyright 2000-2016 TIBCO Software Inc.
Live User Interface
Live UI
Continuous Query Processor Alerts
CEP
MQTT
JMS
In-Memory	Data	Grid
Integration
Social	Media	Data
Market	Data
Sensor	Data
Historical	
Data
In-Memory	Data	Grid
Enterprise	
dataMarket Data
IoT
Mobile
Social
Browser / App
Command & Control
ACTION
Continuous	Query
© Copyright 2000-2016 TIBCO Software Inc.
Live UI in Desktop / Web Browser / Mobile App
Dynamic aggregation
Live visualization
Ad-hoc continuous query
Alerts
Action
© Copyright 2000-2016 TIBCO Software Inc.
Live UI - Products
Characteristics to Check
• Alternative clients (rich client, browser,
mobile app)
• Maturity for enterprise use cases
• Performance and scalability
• “Big data native” deployment (YARN, Mesos)
• Monitoring and proactive actions
• Streaming engine under the hood (not just
visualization layer)
• New Ad-hoc queries by the business user
(without the help of IT department)
• Various visual components
• Extendibility (graphical designer vs. coding)
… or build your own solution using Websockets, Angular JS, etc.
© Copyright 2000-2016 TIBCO Software Inc.
Spoilt for Choice
Does it make sense to
combine frameworks
and products?
© Copyright 2000-2016 TIBCO Software Inc.
Customer Example: Apache Storm + TIBCO Live Datamart
External
Data
Snapshot
Results
Continuous Query Processor
Query
TIBCO Live Datamart
Continuous
Alerting
Active Tables Active Tables
Continuous
Updates
Clients
Message
Bus
Public
Data
Customer
Data
StreamBase
Bolt
StreamBase
Spout
Operational
Data
StreamBase Bolt and Spout connect
Apache Storm to StreamBase to provide
real-time analytics on operational data
© Copyright 2000-2016 TIBCO Software Inc.
Agenda
• Real World Use Cases
• Introduction to Streaming Analytics
• Market Overview
• Relation to other Big Data Components
• Live Demo
© Copyright 2000-2016 TIBCO Software Inc.
Closed Loop: Understand – Anticipate – Act
© Copyright 2000-2016 TIBCO Software Inc.
Closed Loop: Understand – Anticipate – Act
Insights Actions
MONITOR
PREDICT
ACT
DECIDE
MODEL
ORGANIZE
ANALYZE
WRANGLE
Data Discovery via Visual Analytics, Big Data and Machine Learning
Augmented	Intelligence
Operations
SENSOR DATA
TRANSACTIONS
MESSAGE BUS
MACHINE DATA
SOCIAL DATA
Streaming	AnalyticsAction
Aggregate
Rules
Stream	Processing
Analytics
Correlate
Continuous	query	
processing
Alerts
Manual	action,	
escalation
Data	Discovery
Python
R
Data	
Scientists
Cleansed
Data
History
Visual	Analytics
Spark
Integration
ERP MDM DB WMS
SOA	/	Microservices
BIG	DATA
Data	Warehouse,	Hadoop
Internal	Data
Integration	Bus
API
Event	Server
H2O.ai
Live	UI
Find Insights and Patterns in Historical Data
Visual Analytics + Machine Learning
Apply Insights and Analytic Models to Proactive Actions
Streaming
AnalyticsH20.ai
Open Source
R
TERR
Spark ML
MATLAB
SAS
PMML
© Copyright 2000-2013 TIBCO Software Inc.
80% of betting happens
AFTER the game begins
TODAY
Case Study: Streaming Analytics for Betting
• Situation: Today, 80% of Betting is Done After the
Game Starts
• It’s not your father’s bookie anymore!
• Problem: How to Analyze Big Betting Data?
• Thousands of concurrent games, constantly adjusting odds, dozens of
betting networks – firms must correlate millions of events a day to
find the best betting opportunities in real-time
• Solution: TIBCO for Fast Data Architecture
• TXOdds uses TIBCO to correlate, aggregate, and analyze large
volumes of streaming betting data in real-time and publish innovative
predictive betting analytics to their customers
• Result: TXOdds First to Market with Innovative Zero
Latency Betting Analytics
• Innovative real-time analytics help players who can process electronic
data in real-time the edge
“With StreamBase, in two
months we had our first
betting analytics feed live,
and we continually deploy
new ideas and evolve our
old ones.”
- Alex Kozlenkov, VP of technology,
TXOdds
© Copyright 2000-2016 TIBCO Software Inc.
Big Data Architecture for Streaming Betting Analytics
Event Processing
MONITOR
REAL-TIME ANALYTICS
AGGREGATE
HISTORICAL COMPARISON
Predictive
odds analytics
Zero Latency
Betting Analytics
GLOBAL, DISTRIBUTED INFRASTRUCTURE
Historical odds
deviations
B
U
S
BETTING LINES
SCORES
NEWS
HADOOP
Context:
Historical Betting
Data, Odds,
Outcomes
B
U
S
CACHE CACHE CACHE
Real-Time Analytics
CORRELATE
Live Datamart
SOCIAL
Real-Time Social Media Analytics
Twitter
(#TomBradyBrokenLeg)
Twitter (#Boston)
Brady’s
Stats
Actionable
Insights
Twitter (#NFL)
Something relevant happening?
Every second counts!
Change Odds (automated or manually triggered):
Stop live-betting for the current running game?
• Who will win the game?
• How many interceptions will the Quarterback throw?
• Will the Patriots win the Super Bowl?
• …
© Copyright 2000-2016 TIBCO Software Inc.
Real-Time Social Media Analytics
© Copyright 2000-2016 TIBCO Software Inc.
Agenda
• Real World Use Cases
• Introduction to Streaming Analytics
• Market Overview
• Relation to other Big Data Components
• Live Demo
Scenario: Predictive Scrapping of Parts in an Assembly Line
Goal: Scrap parts as early as possible automatically to reduce costs in a manufacturing process.
Question: When to scrap a part in Station 1 instead of doing re-work or sending it to Station 2?
Station 1 Station 2
Cost Before
9€
7€ 13€
Total Cost
29€
(or more)
Scrap? Scrap?
Big Data Architecture for Predictive Maintenance
Operational	Analytics
Operations
Live	UI
CSV Batch
JSON Real Time
XML Real Time
Streaming	AnalyticsAction
Aggregate
Rules
Analytics
Correlate
Live	Datamart
Continuous	query	
processing
Alerts
Manual	action,	
escalation
HISTORICAL	ANALYSIS Data	
Scientists
Flume
HDFS
Spotfire
R	/	TERR
HDFS
Hadoop (Cloudera)
StreamBase
TIBCO Fast Data Platform
H2O
Oracle	RDBMS
Avro Parquet … PMML
Internal	Data
Find Patterns à TIBCO Spotfire with H2O Integration
© Copyright 2000-2016 TIBCO Software Inc.
Example: Predictive Analytics for Manufacturing (“scrap parts as early as possible”)
© Copyright 2000-2016 TIBCO Software Inc.
Apply Patterns à TIBCO StreamBase Connector for H2O.ai
Monitor Patterns à TIBCO Live Datamart
Augmented Intelligence (“Monitor the manufacturing process and change rules in real time!”)
Live Dartmart Desktop Client
Monitor Patterns à TIBCO Live Datamart
Augmented Intelligence (“Monitor the manufacturing process and change rules in real time!”)
Live Dartmart Web API
TIBCO Spotfire + StreamBase + Live Datamart + H2O.ai
Live DemoLive Demo
© Copyright 2000-2016 TIBCO Software Inc.
Key Take-Aways
• Streaming Analytics processes Data while it is in Motion!
• Automation and Proactive Human Interaction are BOTH needed!
• Streaming Analytics is Complementary to Hadoop and Machine Learning!
Questions? Please contact me!
Kai Wähner
Technology Evangelist
kontakt@kai-waehner.de
@KaiWaehner
www.kai-waehner.de
LinkedIn

More Related Content

PDF
Migration and Coexistence between Relational and NoSQL Databases by Manuel H...
PDF
Shortening the Feedback Loop: How Spotify’s Big Data Ecosystem has evolved to...
PDF
The Enterprise and Connected Data, Trends in the Apache Hadoop Ecosystem by A...
PDF
Solving the Industry 4.0 challenges on the logistics domain using Apache Meso...
PDF
Advanced data science algorithms applied to scalable stream processing by Dav...
PDF
The Rise of Engineering-Driven Analytics by Loren Shure
PDF
Lambda architecture for real time big data
PDF
Next generation Polyglot Architectures using Neo4j by Stefan Kolmar
Migration and Coexistence between Relational and NoSQL Databases by Manuel H...
Shortening the Feedback Loop: How Spotify’s Big Data Ecosystem has evolved to...
The Enterprise and Connected Data, Trends in the Apache Hadoop Ecosystem by A...
Solving the Industry 4.0 challenges on the logistics domain using Apache Meso...
Advanced data science algorithms applied to scalable stream processing by Dav...
The Rise of Engineering-Driven Analytics by Loren Shure
Lambda architecture for real time big data
Next generation Polyglot Architectures using Neo4j by Stefan Kolmar

What's hot (20)

PDF
Finding the needle in the haystack: how Nestle is leveraging big data to defe...
PPTX
Druid Overview by Rachel Pedreschi
PPTX
Solving Performance Problems on Hadoop
PDF
Apache Flink for IoT: How Event-Time Processing Enables Easy and Accurate Ana...
PDF
Data Mesh in Practice: How Europe’s Leading Online Platform for Fashion Goes ...
PDF
VP of WW Partners by Alan Chhabra
PDF
Big Data Architecture
PDF
The Hidden Value of Hadoop Migration
PPTX
Intuit Analytics Cloud 101
PPTX
Data Apps with the Lambda Architecture - with Real Work Examples on Merging B...
PDF
Best Practices For Building and Operating A Managed Data Lake - StampedeCon 2016
PDF
Architect’s Open-Source Guide for a Data Mesh Architecture
PDF
End to End Supply Chain Control Tower
PPTX
Inside open metadata—the deep dive
PPTX
Securing and governing a multi-tenant data lake within the financial industry
PPTX
Not Just a necessary evil, it’s good for business: implementing PCI DSS contr...
PPTX
The modern analytics architecture
PPTX
Zero Downtime App Deployment using Hadoop
PPTX
Optimizing industrial operations using the big data ecosystem
PDF
Building Custom Big Data Integrations
Finding the needle in the haystack: how Nestle is leveraging big data to defe...
Druid Overview by Rachel Pedreschi
Solving Performance Problems on Hadoop
Apache Flink for IoT: How Event-Time Processing Enables Easy and Accurate Ana...
Data Mesh in Practice: How Europe’s Leading Online Platform for Fashion Goes ...
VP of WW Partners by Alan Chhabra
Big Data Architecture
The Hidden Value of Hadoop Migration
Intuit Analytics Cloud 101
Data Apps with the Lambda Architecture - with Real Work Examples on Merging B...
Best Practices For Building and Operating A Managed Data Lake - StampedeCon 2016
Architect’s Open-Source Guide for a Data Mesh Architecture
End to End Supply Chain Control Tower
Inside open metadata—the deep dive
Securing and governing a multi-tenant data lake within the financial industry
Not Just a necessary evil, it’s good for business: implementing PCI DSS contr...
The modern analytics architecture
Zero Downtime App Deployment using Hadoop
Optimizing industrial operations using the big data ecosystem
Building Custom Big Data Integrations
Ad

Viewers also liked (10)

PDF
TENSORFLOW: ARCHITECTURE AND USE CASE - NASA SPACE APPS CHALLENGE by Gema Par...
PDF
Inferring the effect of an event using CausalImpact by Kay H. Brodersen
PDF
HOW TO APPLY BIG DATA ANALYTICS AND MACHINE LEARNING TO REAL TIME PROCESSING ...
PDF
Apache Hive 2.0 SQL, Speed, Scale by Alan Gates
PDF
Managing Data Science by David Martínez Rego
PDF
Growing Data Scientists by Amparo Alonso Betanzos
PDF
RUNNING A PETASCALE DATA SYSTEM: GOOD, BAD, AND UGLY CHOICES by Alexey Kharlamov
PDF
Turning an idea into a Data-Driven Production System: An Energy Load Forecas...
PDF
Multiplatform Spark solution for Graph datasources by Javier Dominguez
PDF
Open data : from Insight to Visualisation with Google BigQuery and Carto.com ...
TENSORFLOW: ARCHITECTURE AND USE CASE - NASA SPACE APPS CHALLENGE by Gema Par...
Inferring the effect of an event using CausalImpact by Kay H. Brodersen
HOW TO APPLY BIG DATA ANALYTICS AND MACHINE LEARNING TO REAL TIME PROCESSING ...
Apache Hive 2.0 SQL, Speed, Scale by Alan Gates
Managing Data Science by David Martínez Rego
Growing Data Scientists by Amparo Alonso Betanzos
RUNNING A PETASCALE DATA SYSTEM: GOOD, BAD, AND UGLY CHOICES by Alexey Kharlamov
Turning an idea into a Data-Driven Production System: An Energy Load Forecas...
Multiplatform Spark solution for Graph datasources by Javier Dominguez
Open data : from Insight to Visualisation with Google BigQuery and Carto.com ...
Ad

Similar to Stream Processing as Game Changer for Big Data and Internet of Things by Kai Wahner (20)

PDF
TIBCO Innovation Workshop Series: Reducing Decision Latency with Streaming An...
PDF
Streaming Analytics - Comparison of Open Source Frameworks and Products
PPTX
Shikha fdp 62_14july2017
PDF
Findability Day 2016 - Big data analytics and machine learning
PPTX
7 Predictive Analytics, Spark , Streaming use cases
PDF
Future-proof-Architecture-for-Streaming-Data-Analytics-WhitePaper
PDF
Introduction to Streaming Analytics
PDF
IMCSummit 2015 - Day 2 Developer Track - The Internet of Analytics – Discover...
PPTX
WebAction In-Memory Computing Summit 2015
PDF
Real-time Analytics & Streaming by AccentFuture
PDF
How to Leverage Machine Learning (R, Hadoop, Spark, H2O) for Real Time Proces...
PDF
R, Spark, Tensorflow, H20.ai Applied to Streaming Analytics
PDF
Introduction to Stream Processing
PDF
Stream Meets Batch for Smarter Analytics- Impetus White Paper
PDF
How to Leverage Machine Learning (R, Hadoop, Spark, H2O) for Real Time Proces...
PDF
Streaming Analytics for IoT-Oriented Applications
PDF
Kafka and Stream Processing, Taking Analytics Real-time, Mike Spicer
PDF
Introduction to Stream Processing
PDF
Future-Proof Your Streaming Analytics Architecture- StreamAnalytix Webinar
PDF
Top industry use cases for streaming analytics
TIBCO Innovation Workshop Series: Reducing Decision Latency with Streaming An...
Streaming Analytics - Comparison of Open Source Frameworks and Products
Shikha fdp 62_14july2017
Findability Day 2016 - Big data analytics and machine learning
7 Predictive Analytics, Spark , Streaming use cases
Future-proof-Architecture-for-Streaming-Data-Analytics-WhitePaper
Introduction to Streaming Analytics
IMCSummit 2015 - Day 2 Developer Track - The Internet of Analytics – Discover...
WebAction In-Memory Computing Summit 2015
Real-time Analytics & Streaming by AccentFuture
How to Leverage Machine Learning (R, Hadoop, Spark, H2O) for Real Time Proces...
R, Spark, Tensorflow, H20.ai Applied to Streaming Analytics
Introduction to Stream Processing
Stream Meets Batch for Smarter Analytics- Impetus White Paper
How to Leverage Machine Learning (R, Hadoop, Spark, H2O) for Real Time Proces...
Streaming Analytics for IoT-Oriented Applications
Kafka and Stream Processing, Taking Analytics Real-time, Mike Spicer
Introduction to Stream Processing
Future-Proof Your Streaming Analytics Architecture- StreamAnalytix Webinar
Top industry use cases for streaming analytics

More from Big Data Spain (20)

PDF
Big Data, Big Quality? by Irene Gonzálvez at Big Data Spain 2017
PDF
Scaling a backend for a big data and blockchain environment by Rafael Ríos at...
PDF
AI: The next frontier by Amparo Alonso at Big Data Spain 2017
PDF
Disaster Recovery for Big Data by Carlos Izquierdo at Big Data Spain 2017
PDF
Presentation: Boost Hadoop and Spark with in-memory technologies by Akmal Cha...
PDF
Data science for lazy people, Automated Machine Learning by Diego Hueltes at ...
PDF
Training Deep Learning Models on Multiple GPUs in the Cloud by Enrique Otero ...
PDF
Unbalanced data: Same algorithms different techniques by Eric Martín at Big D...
PDF
State of the art time-series analysis with deep learning by Javier Ordóñez at...
PDF
Trading at market speed with the latest Kafka features by Iñigo González at B...
PDF
Unified Stream Processing at Scale with Apache Samza by Jake Maes at Big Data...
PDF
The Analytic Platform behind IBM’s Watson Data Platform by Luciano Resende a...
PDF
Artificial Intelligence and Data-centric businesses by Óscar Méndez at Big Da...
PDF
Why big data didn’t end causal inference by Totte Harinen at Big Data Spain 2017
PDF
Meme Index. Analyzing fads and sensations on the Internet by Miguel Romero at...
PDF
Vehicle Big Data that Drives Smart City Advancement by Mike Branch at Big Dat...
PDF
End of the Myth: Ultra-Scalable Transactional Management by Ricardo Jiménez-P...
PDF
Attacking Machine Learning used in AntiVirus with Reinforcement by Rubén Mart...
PDF
More people, less banking: Blockchain by Salvador Casquero at Big Data Spain ...
PDF
Make the elephant fly, once again by Sourygna Luangsay at Big Data Spain 2017
Big Data, Big Quality? by Irene Gonzálvez at Big Data Spain 2017
Scaling a backend for a big data and blockchain environment by Rafael Ríos at...
AI: The next frontier by Amparo Alonso at Big Data Spain 2017
Disaster Recovery for Big Data by Carlos Izquierdo at Big Data Spain 2017
Presentation: Boost Hadoop and Spark with in-memory technologies by Akmal Cha...
Data science for lazy people, Automated Machine Learning by Diego Hueltes at ...
Training Deep Learning Models on Multiple GPUs in the Cloud by Enrique Otero ...
Unbalanced data: Same algorithms different techniques by Eric Martín at Big D...
State of the art time-series analysis with deep learning by Javier Ordóñez at...
Trading at market speed with the latest Kafka features by Iñigo González at B...
Unified Stream Processing at Scale with Apache Samza by Jake Maes at Big Data...
The Analytic Platform behind IBM’s Watson Data Platform by Luciano Resende a...
Artificial Intelligence and Data-centric businesses by Óscar Méndez at Big Da...
Why big data didn’t end causal inference by Totte Harinen at Big Data Spain 2017
Meme Index. Analyzing fads and sensations on the Internet by Miguel Romero at...
Vehicle Big Data that Drives Smart City Advancement by Mike Branch at Big Dat...
End of the Myth: Ultra-Scalable Transactional Management by Ricardo Jiménez-P...
Attacking Machine Learning used in AntiVirus with Reinforcement by Rubén Mart...
More people, less banking: Blockchain by Salvador Casquero at Big Data Spain ...
Make the elephant fly, once again by Sourygna Luangsay at Big Data Spain 2017

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Getting Started with Data Integration: FME Form 101
PDF
Approach and Philosophy of On baking technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
1. Introduction to Computer Programming.pptx
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Empathic Computing: Creating Shared Understanding
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Machine Learning_overview_presentation.pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Machine learning based COVID-19 study performance prediction
Getting Started with Data Integration: FME Form 101
Approach and Philosophy of On baking technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Reach Out and Touch Someone: Haptics and Empathic Computing
Univ-Connecticut-ChatGPT-Presentaion.pdf
1. Introduction to Computer Programming.pptx
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Empathic Computing: Creating Shared Understanding
TLE Review Electricity (Electricity).pptx
Heart disease approach using modified random forest and particle swarm optimi...
cloud_computing_Infrastucture_as_cloud_p
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Tartificialntelligence_presentation.pptx
Network Security Unit 5.pdf for BCA BBA.
Machine Learning_overview_presentation.pptx
A comparative analysis of optical character recognition models for extracting...
A comparative study of natural language inference in Swahili using monolingua...
Building Integrated photovoltaic BIPV_UPV.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

Stream Processing as Game Changer for Big Data and Internet of Things by Kai Wahner

  • 2. Kai Wähner Technology Evangelist [email protected] LinkedIn @KaiWaehner www.kai-waehner.de Big Data Spain @ Madrid (November 2016) Comparison of Streaming Analytics Frameworks
  • 3. © Copyright 2000-2016 TIBCO Software Inc. Key Take-Aways • Streaming Analytics processes Data while it is in Motion! • Automation and Proactive Human Interaction are BOTH needed! • Streaming Analytics is Complementary to Hadoop and Machine Learning!
  • 4. © Copyright 2000-2016 TIBCO Software Inc. Agenda • Real World Use Cases • Introduction to Streaming Analytics • Market Overview • Relation to other Big Data Components • Live Demo
  • 5. © Copyright 2000-2016 TIBCO Software Inc. Agenda • Real World Use Cases • Introduction to Streaming Analytics • Market Overview • Relation to other Big Data Components • Live Demo
  • 6. © Copyright 2000-2016 TIBCO Software Inc. Analyze and Act on Critical Business Moments
  • 7. © Copyright 2000-2016 TIBCO Software Inc. Success Story Predictive Fault Management
  • 8. © Copyright 2000-2013 TIBCO Software Inc. “An outage on one well can cost $10M per hour. We have 20-100 outages per year.“ - Drilling operations VP, major oil company
  • 9. Data Monitoring • Motor temperature • Motor vibration • Current • Intake pressure • Intake temperature Ø Flow Electrical power cable Pump Intake Protector ESP motor Pump monitoring unit Electric Submersible Pumps (ESP) Predictive Analytics - Fault Management
  • 10. Voltage Temperature Vibration Device history Temporal analytic: “If vibration spike is followed by temp spike then voltage spike [within 4 hours] then flag high severity alert.” Predictive Analytics - Fault Management
  • 11. © Copyright 2000-2016 TIBCO Software Inc. Live Surveillance of Equipment Continuous, live geospatial display of pump health and predictive signal breeches Alerts based on predictive signals Compare live readings and signals to historical average and means Continuous, live visualization of stats per 100’s of wells
  • 12. © Copyright 2000-2016 TIBCO Software Inc. Success Story Crowd Management
  • 13. © Copyright 2000-2013 TIBCO Software Inc. “Turn the customer into a fan and increase revenue significantly.“
  • 14. © Copyright 2000-2016 TIBCO Software Inc. World’s Smartest Building © Copyright 2000-2015 TIBCO Software Inc.
  • 15. © Copyright 2000-2016 TIBCO Software Inc. All Customers are different… Treat them that way… 14 Capture – Engage – Expand - Monetize Patterns – Real time MOREPERSONAL MORE CONTEXT social CRM POS mobileweb e-mails
  • 16. © Copyright 2000-2016 TIBCO Software Inc. Success Story Smart Manufacturing
  • 17. © Copyright 2000-2013 TIBCO Software Inc. ““For every 1% increase in shipped product, we make $11MM in profit. The demand is there, we just need to fulfill it.“ - Head of Quality, Solar Panel Manufacturer
  • 18. Scenario: Predictive Scrapping of Parts in an Assembly Line Goal: Scrap parts as early as possible automatically to reduce costs in a manufacturing process. Question: When to scrap a part in Station 1 instead of doing re-work or sending it to Station 2? Station 1 Station 2 Cost Before 9€ 7€ 13€ Total Cost 29€ (or more) Scrap? Scrap?
  • 19. Machine Learning Applied to Sensor Events in Real Time © Copyright 2000-2016 TIBCO Software Inc. Example: Predictive Analytics for Manufacturing (“scrap parts as early as possible”)
  • 20. © Copyright 2000-2016 TIBCO Software Inc. Great success stories, but … … how to realize these use cases?
  • 21. © Copyright 2000-2016 TIBCO Software Inc. Agenda • Real World Use Cases • Introduction to Streaming Analytics • Market Overview • Relation to other Big Data Components • Live Demo
  • 22. © Copyright 2000-2016 TIBCO Software Inc. Traditional Data Processing: ”Request – Response” Store Analyze Act
  • 23. © Copyright 2000-2016 TIBCO Software Inc. Traditional Data Processing: ”Request – Response” • Data is collected from a variety of sources, and placed in a persistent store. – Relational database. – NoSQL store. – Hadoop environment. • Analytical processes are executed against the stored data to detect opportunities or threats. • Actions are identified, delivered, and executed across various business channels. Store Analyze Act
  • 24. © Copyright 2000-2016 TIBCO Software Inc. Traditional Data Processing: Challenges Store Analyze Act • Introduces too much “decision latency” into the business. • Responses are delivered “after-the- fact”. • Maximum value of the identified situation is lost. – Cross-sell / up-sell opportunities are lost, impending equipment failure is missed, business processes are slow to respond and lack timely context. • Decisions are made on old and stale data.
  • 25. © Copyright 2000-2016 TIBCO Software Inc. Event Value Decreases Over TimeValue Time
  • 26. © Copyright 2000-2016 TIBCO Software Inc. Event Value Decreases Over TimeValue Time • Events are often most valuable “close to” the point of collection. • As time passes, events tend to lose their value. • The ability to proactively identify “threats” or “opportunities” will typically decrease. • Real-time capability is needed to maximize event value.
  • 27. © Copyright 2000-2016 TIBCO Software Inc. The New Era: Streaming Analytics Act & Monitor Analyze Store
  • 28. © Copyright 2000-2016 TIBCO Software Inc. The New Era: Streaming Analytics • Events are analyzed and processed in real-time as they arrive. • Decisions are timely, contextual, and based on fresh data. • Decision latency is eliminated, resulting in: ü Superior Customer Experience ü Operational Excellence ü Instant Awareness and Timely Decisions Act & Monitor Analyze Store
  • 29. © Copyright 2000-2016 TIBCO Software Inc. Streaming Analytics: What Is A “Stream”? Clickstream Sensors Social Data Logs • Consists of pieces of data typically generated due to a change of state. • One or more identifiers • Timestamp & payload • Immutable • Typically unbounded; there is no end to the data. • Batch dataset: “bounded”. • Can be raw or derived.
  • 30. © Copyright 2000-2016 TIBCO Software Inc. Streaming Analytics Processing Pipeline APIs Adapters / Channels Integration Messaging Stream Ingest Transformation Aggregation Enrichment Filtering Stream Preprocessing Process Management Analytics (Real Time) Applications & APIs Analytics / DW Reporting Stream Outcomes • Contextual Rules • Windowing • Patterns • Deep ML • Analytics • … Stream Analytics & Processing Index / SearchNormalization
  • 31. © Copyright 2000-2016 TIBCO Software Inc. Streaming Analytics Processing Pipeline Separation of concerns to easily adjust one part in response to changing business requirements without the need for rewriting other parts!
  • 32. © Copyright 2000-2016 TIBCO Software Inc. Streaming Analytics: Ingest APIs Adapters / Channels Integration Messaging Stream Ingest • Stream data may come from a number sources, either at the edge, in the data center, or via the cloud. • Need to handle a variety of data formats and protocols, all at global scale. • Pay attention to “event time” vs. “processing time” !! • Event Time: Time the event was created. • Processing Time: Time the event was received or processed. • Event time is typically more relevant, and will lead to more predictable results. • Eliminate time skew associated with clock synchronization, system outages, processing latency, network issues, etc.
  • 33. © Copyright 2000-2016 TIBCO Software Inc. Streaming Analytics: Preprocessing Transformation Aggregation Enrichment Filtering Stream Preprocessing Normalization • Stream data often needs to be manipulated before it is processed by downstream components. • Normalization • Transformation • May filter unwanted events close to the source to eliminate “noise”. • Events may also be enriched with additional context to provide additional data for further processing. • Customer details, equipment details, location information, etc. • Data may be stored in a high-speed cache or other store for rapid access.
  • 34. © Copyright 2000-2016 TIBCO Software Inc. Streaming Analytics: Processing Batch • Transform • Deep ML • Analytics • Data Lake • … Stream Analytics & Processing Real-Time • RT Analytics • Contextual Rules • Windowing • Patterns • … • Streams may be immediately pushed to a data lake. • May be raw or preprocessed. • Used for subsequent analysis as part of an immutable data layer. • Typically processed in batch in this part of the architecture. • In parallel, streams may be processed in real-time against a number of constructs. • Real-time analytics. • Graph analysis / Geo Analysis • Rules. • Results from the real-time processing may be fed into the batch component. • The results of batch processing may also be pushed into the real- time layer.
  • 35. © Copyright 2000-2016 TIBCO Software Inc. Streaming Analytics Processing Pipeline APIs Adapters / Channels Integration Messaging Stream Ingest Transformation Aggregation Enrichment Filtering Stream Preprocessing Process Management Analytics (Real Time) Applications & APIs Analytics / DW Reporting Stream Outcomes • Contextual Rules • Windowing • Patterns • Deep ML • Analytics • … Stream Analytics & Processing Index / SearchNormalization
  • 36. © Copyright 2000-2016 TIBCO Software Inc. Dataflow Streaming Pipeline – Extract, Transform, Load in Real Time https://www.linkedin.com/pulse/data-pipeline-hadoop-part-1-2-birender-saini
  • 37. © Copyright 2000-2016 TIBCO Software Inc. Streaming Analytics Processing Pipeline APIs Adapters / Channels Integration Messaging Stream Ingest Transformation Aggregation Enrichment Filtering Stream Preprocessing Process Management Analytics (Real Time) Applications & APIs Analytics / DW Reporting Stream Outcomes • Contextual Rules • Windowing • Patterns • Deep ML • Analytics • … Stream Analytics & Processing Index / SearchNormalization
  • 38. © Copyright 2000-2016 TIBCO Software Inc. Streaming Analytics: “Windows” https://www.oreilly.com/ideas/the-world-beyond-batch-streaming-101
  • 39. © Copyright 2000-2016 TIBCO Software Inc. Automation and Augmented Intelligence for Humans Actions by Operations Human decisions in real time informed by up to date information 38 Automated action based on models of history combined with live context and business rules Machine-to-Machine Automation
  • 40. Big Data Reference Architecture Augmented Intelligence Operations SENSOR DATA TRANSACTIONS MESSAGE BUS MACHINE DATA SOCIAL DATA Streaming AnalyticsAction Aggregate Rules Stream Processing Analytics Correlate Continuous query processing Alerts Manual action, escalation Data Discovery Python R Data Scientists Cleansed Data History Visual Analytics Spark Integration ERP MDM DB WMS SOA / Microservices BIG DATA Data Warehouse, Hadoop Internal Data Integration Bus API Event Server H2O.ai Live UI
  • 41. © Copyright 2000-2016 TIBCO Software Inc. Agenda • Real World Use Cases • Introduction to Streaming Analytics • Market Overview • Relation to other Big Data Components • Live Demo
  • 42. © Copyright 2000-2016 TIBCO Software Inc. Streaming Analytics Market Growing Significantly “Everything Flows: The value of stream processing and streaming integration” (September 2016) http://hortonworks.com/info/value-streaming-integration/
  • 43. © Copyright 2000-2016 TIBCO Software Inc. Alternatives for Stream Processing Time to Market Streaming Frameworks Streaming Products Slow Fast Streaming Concepts IncludesIncludes
  • 44. © Copyright 2000-2016 TIBCO Software Inc. Alternatives for Stream Processing Concepts (Continuous Queries, Sliding Windows) Patterns (Counting, Sequencing, Tracking, Trends) Build everything by yourself! L Time to Market Streaming Frameworks Streaming Products Slow Fast Streaming Concepts
  • 45. © Copyright 2000-2016 TIBCO Software Inc. Usually not an option ... … as there are a lot of Frameworks and Products available!
  • 46. © Copyright 2000-2016 TIBCO Software Inc. Alternatives for Stream Processing Library (Java, .NET, Python) Query Language (often similar to SQL) Scalability (horizontal and vertical, fail over) Connectivity (technologies, markets, products) Operators (Filter, Sort, Aggregate) Time to Market Streaming Frameworks Streaming Products Slow Fast Streaming Concepts Different frameworks (ingest, preprocess, analytics) combined!
  • 47. © Copyright 2000-2016 TIBCO Software Inc. Streaming Analytics Processing Pipeline APIs Adapters / Channels Integration Messaging Stream Ingest Transformation Aggregation Enrichment Filtering Stream Preprocessing Process Management Analytics (Real Time) Applications & APIs Analytics / DW Reporting Stream Outcomes • Contextual Rules • Windowing • Patterns • Deep ML • Analytics • … Stream Analytics & Processing Index / SearchNormalization
  • 48. © Copyright 2000-2016 TIBCO Software Inc. Example for an Open Source Streaming Pipeline http://hortonworks.com/hadoop-tutorial/realtime-event-processing-nifi-kafka-storm “Realtime Event Processing in Hadoop with Apache NiFi, Kafka and Storm”
  • 49. Dataflow Streaming Pipeline (Ingest, Preprocess) Augmented Intelligence Operations SENSOR DATA TRANSACTIONS MESSAGE BUS MACHINE DATA SOCIAL DATA Streaming AnalyticsAction Aggregate Rules Stream Processing Analytics Correlate Continuous query processing Alerts Manual action, escalation Data Discovery Python R Data Scientists Cleansed Data History Visual Analytics Spark Integration ERP MDM DB WMS SOA / Microservices BIG DATA Data Warehouse, Hadoop Internal Data Integration Bus API Event Server H2O.ai Live UI
  • 50. © Copyright 2000-2016 TIBCO Software Inc. Open Source Dataflow Streaming Pipelines
  • 51. Streaming Analytics Augmented Intelligence Operations SENSOR DATA TRANSACTIONS MESSAGE BUS MACHINE DATA SOCIAL DATA Streaming AnalyticsAction Aggregate Rules Stream Processing Analytics Correlate Continuous query processing Alerts Manual action, escalation Data Discovery Python R Data Scientists Cleansed Data History Visual Analytics Spark Integration ERP MDM DB WMS SOA / Microservices BIG DATA Data Warehouse, Hadoop Internal Data Integration Bus API Event Server H2O.ai Live UI
  • 52. © Copyright 2000-2016 TIBCO Software Inc. Frameworks and Products (no complete list!) OPEN SOURCE CLOSED SOURCE PRODUCT FRAMEWORK Azure Microsoft Stream Analytics Google Cloud Dataflow
  • 53. © Copyright 2000-2016 TIBCO Software Inc. Frameworks and Products (no complete list!) OPEN SOURCE CLOSED SOURCE PRODUCT FRAMEWORK Azure Microsoft Stream Analytics Google Cloud Dataflow
  • 54. © Copyright 2000-2016 TIBCO Software Inc. Apache Storm Spout Bolt
  • 55. © Copyright 2000-2016 TIBCO Software Inc. Apache Storm – Hello World http://wpcertification.blogspot.ch/2014/02/helloworld-apache-storm-word-counter.html
  • 56. © Copyright 2000-2016 TIBCO Software Inc. AWS Kinesis – Integration with other AWS Components https://aws.amazon.com/kinesis/ AWS S3 RedShift DynamoDB
  • 57. © Copyright 2000-2016 TIBCO Software Inc. AWS Kinesis – Hello World
  • 58. © Copyright 2000-2016 TIBCO Software Inc. AWS Kinesis – Public Cloud Trade-Off … is easy to setup and scale. But you do not have full control! L • Any data that is older than 24 hours is automatically deleted • Every Kinesis application consists of just one procedure, so you can’t use Kinesis to perform complex stream processing unless you connect multiple applications • Kinesis can only support a maximum size of 50KB for each data item http://diamondstream.com/amazon-kinesis-big-real-time-data-processing-solution/ (blog post from 2014, might be outdated, but shows that you do not have full control over a cloud service)
  • 59. © Copyright 2000-2016 TIBCO Software Inc. Apache Spark General Data-processing Framework à However, focus is especially on Analytics (these days) x
  • 60. © Copyright 2000-2016 TIBCO Software Inc. Apache Spark – Focus on Analytics http://aptuz.com/blog/is-apache-spark-going-to-replace-hadoop/ http://fortune.com/2015/09/09/cloudera-spark-mapreduce/ http://www.ebaytechblog.com/2014/05/28/using-spark-to-ignite-data-analytics/ http://www.forbes.com/sites/paulmiller/2015/06/15/ibm-backs-apache-spark-for-big-data-analytics/ “[IBM’s initiatives] include: • deepening the integration between Apache Spark and existing IBM products like the Watson Health Cloud; • open sourcing IBM’s existing SystemML machine learning technology;
  • 61. © Copyright 2000-2016 TIBCO Software Inc. Spark Streaming Spark Streaming • is no real streaming solution • uses micro-batches • cannot process data in real-time (i.e. no ultra-low latency) • allows easy combination with other Spark components (SQL, Machine Learning, etc.)
  • 62. © Copyright 2000-2016 TIBCO Software Inc. Apache Spark – Hello World Spark Streaming API Spark Core API
  • 63. © Copyright 2000-2016 TIBCO Software Inc. Apache Spark – as a Cloud Service
  • 64. © Copyright 2000-2016 TIBCO Software Inc. Apache Flink Spark Streaming • „Newcomer“ • Looks very similar to Spark • But „Streaming First“ concept
  • 65. © Copyright 2000-2016 TIBCO Software Inc. Apache Beam Generic API with unified programming model for stream processing frameworks http://www.slideshare.net/DataTorrent/apache-beam-incubating-67428372
  • 66. © Copyright 2000-2016 TIBCO Software Inc. Frameworks and Products (no complete list!) OPEN SOURCE CLOSED SOURCE PRODUCT FRAMEWORK Azure Microsoft Stream Analytics Google Cloud Dataflow
  • 67. Alternatives for Stream Processing Library (Java, .NET, Python) Query Language (often similar to SQL) Scalability (horizontal and vertical, fail over) Connectivity (technologies, markets, products) Operators (Filter, Sort, Aggregate) Time to Market Streaming Frameworks Streaming Products Slow Fast Streaming Concepts Single Tool (Complete Processing Pipeline) Visual IDE (Dev, Test, Debug) Simulation (Feed Testing, Test Generation) Live UI (monitoring, proactive interaction) Maturity (24/7 support, consulting) Integration (out-of-the-box: ESB, MDM, Analytics, etc.)
  • 68. © Copyright 2000-2016 TIBCO Software Inc. Streaming Analytics Processing Pipeline APIs Adapters / Channels Integration Messaging Stream Ingest Transformation Aggregation Enrichment Filtering Stream Preprocessing Process Management Analytics (Real Time) Applications & APIs Analytics / DW Reporting Stream Outcomes • Contextual Rules • Windowing • Patterns • Deep ML • Analytics • … Stream Analytics & Processing Index / SearchNormalization
  • 69. Dataflow Streaming Pipeline + Streaming Analytics Augmented Intelligence Operations SENSOR DATA TRANSACTIONS MESSAGE BUS MACHINE DATA SOCIAL DATA Streaming AnalyticsAction Aggregate Rules Stream Processing Analytics Correlate Continuous query processing Alerts Manual action, escalation Data Discovery Python R Data Scientists Cleansed Data History Visual Analytics Spark Integration ERP MDM DB WMS SOA / Microservices BIG DATA Data Warehouse, Hadoop Internal Data Integration Bus API Event Server H2O.ai Live UI
  • 70. © Copyright 2000-2016 TIBCO Software Inc. IBM Streams
  • 71. © Copyright 2000-2016 TIBCO Software Inc. TIBCO StreamBase • Performance: Latency, Throughput, Scalability • Multi-threaded and clustered server from version 1 • High throughput: Millions of messages, 100,000s of quotes, 10,000s of orders • Low-latency: microsecond latency for algo trading, pre-trade risk, market data • Take Advantage of High Performance Hardware • Multicore (12, 24, 32 core) large memory (10s of gigabytes) • 64-bit Linux, Windows, Solaris deployment • Hardware acceleration (GPU, Solace, Tervela) • Enterprise Deployment • High availability and fault tolerance • Distributed state management for large data sets • Management and monitoring tools • Security and entitlements Integration • Continuous deployment and QA Process Support StreamSQL compiler and static optimizer In process, in thread adapter architecture Visual parallelism and scaling In-Memory Data Grid integration for distributed shared state Data parallelism and dispatch StreamBase Server Innovations
  • 72. © Copyright 2000-2016 TIBCO Software Inc. TIBCO StreamBase - Visual Programming Aggregate Capture card activations per location Sales too high à Fraud Log to any database No Fraud Sales too high?
  • 73. Visual Debugger Feed Simulation Unit Testing StreamBase Development StudioTIBCO StreamBase - Visual Programming
  • 74. Live UI for Augmented Intelligence Augmented Intelligence Operations SENSOR DATA TRANSACTIONS MESSAGE BUS MACHINE DATA SOCIAL DATA Streaming AnalyticsAction Aggregate Rules Stream Processing Analytics Correlate Continuous query processing Alerts Manual action, escalation Data Discovery Python R Data Scientists Cleansed Data History Visual Analytics Spark Integration ERP MDM DB WMS SOA / Microservices BIG DATA Data Warehouse, Hadoop Internal Data Integration Bus API Event Server H2O.ai Live UI
  • 75. © Copyright 2000-2016 TIBCO Software Inc. Live User Interface Live UI Continuous Query Processor Alerts CEP MQTT JMS In-Memory Data Grid Integration Social Media Data Market Data Sensor Data Historical Data In-Memory Data Grid Enterprise dataMarket Data IoT Mobile Social Browser / App Command & Control ACTION Continuous Query
  • 76. © Copyright 2000-2016 TIBCO Software Inc. Live UI in Desktop / Web Browser / Mobile App Dynamic aggregation Live visualization Ad-hoc continuous query Alerts Action
  • 77. © Copyright 2000-2016 TIBCO Software Inc. Live UI - Products Characteristics to Check • Alternative clients (rich client, browser, mobile app) • Maturity for enterprise use cases • Performance and scalability • “Big data native” deployment (YARN, Mesos) • Monitoring and proactive actions • Streaming engine under the hood (not just visualization layer) • New Ad-hoc queries by the business user (without the help of IT department) • Various visual components • Extendibility (graphical designer vs. coding) … or build your own solution using Websockets, Angular JS, etc.
  • 78. © Copyright 2000-2016 TIBCO Software Inc. Spoilt for Choice Does it make sense to combine frameworks and products?
  • 79. © Copyright 2000-2016 TIBCO Software Inc. Customer Example: Apache Storm + TIBCO Live Datamart External Data Snapshot Results Continuous Query Processor Query TIBCO Live Datamart Continuous Alerting Active Tables Active Tables Continuous Updates Clients Message Bus Public Data Customer Data StreamBase Bolt StreamBase Spout Operational Data StreamBase Bolt and Spout connect Apache Storm to StreamBase to provide real-time analytics on operational data
  • 80. © Copyright 2000-2016 TIBCO Software Inc. Agenda • Real World Use Cases • Introduction to Streaming Analytics • Market Overview • Relation to other Big Data Components • Live Demo
  • 81. © Copyright 2000-2016 TIBCO Software Inc. Closed Loop: Understand – Anticipate – Act
  • 82. © Copyright 2000-2016 TIBCO Software Inc. Closed Loop: Understand – Anticipate – Act Insights Actions MONITOR PREDICT ACT DECIDE MODEL ORGANIZE ANALYZE WRANGLE
  • 83. Data Discovery via Visual Analytics, Big Data and Machine Learning Augmented Intelligence Operations SENSOR DATA TRANSACTIONS MESSAGE BUS MACHINE DATA SOCIAL DATA Streaming AnalyticsAction Aggregate Rules Stream Processing Analytics Correlate Continuous query processing Alerts Manual action, escalation Data Discovery Python R Data Scientists Cleansed Data History Visual Analytics Spark Integration ERP MDM DB WMS SOA / Microservices BIG DATA Data Warehouse, Hadoop Internal Data Integration Bus API Event Server H2O.ai Live UI
  • 84. Find Insights and Patterns in Historical Data Visual Analytics + Machine Learning
  • 85. Apply Insights and Analytic Models to Proactive Actions Streaming AnalyticsH20.ai Open Source R TERR Spark ML MATLAB SAS PMML
  • 86. © Copyright 2000-2013 TIBCO Software Inc. 80% of betting happens AFTER the game begins TODAY
  • 87. Case Study: Streaming Analytics for Betting • Situation: Today, 80% of Betting is Done After the Game Starts • It’s not your father’s bookie anymore! • Problem: How to Analyze Big Betting Data? • Thousands of concurrent games, constantly adjusting odds, dozens of betting networks – firms must correlate millions of events a day to find the best betting opportunities in real-time • Solution: TIBCO for Fast Data Architecture • TXOdds uses TIBCO to correlate, aggregate, and analyze large volumes of streaming betting data in real-time and publish innovative predictive betting analytics to their customers • Result: TXOdds First to Market with Innovative Zero Latency Betting Analytics • Innovative real-time analytics help players who can process electronic data in real-time the edge “With StreamBase, in two months we had our first betting analytics feed live, and we continually deploy new ideas and evolve our old ones.” - Alex Kozlenkov, VP of technology, TXOdds
  • 88. © Copyright 2000-2016 TIBCO Software Inc. Big Data Architecture for Streaming Betting Analytics Event Processing MONITOR REAL-TIME ANALYTICS AGGREGATE HISTORICAL COMPARISON Predictive odds analytics Zero Latency Betting Analytics GLOBAL, DISTRIBUTED INFRASTRUCTURE Historical odds deviations B U S BETTING LINES SCORES NEWS HADOOP Context: Historical Betting Data, Odds, Outcomes B U S CACHE CACHE CACHE Real-Time Analytics CORRELATE Live Datamart SOCIAL
  • 89. Real-Time Social Media Analytics Twitter (#TomBradyBrokenLeg) Twitter (#Boston) Brady’s Stats Actionable Insights Twitter (#NFL) Something relevant happening? Every second counts! Change Odds (automated or manually triggered): Stop live-betting for the current running game? • Who will win the game? • How many interceptions will the Quarterback throw? • Will the Patriots win the Super Bowl? • …
  • 90. © Copyright 2000-2016 TIBCO Software Inc. Real-Time Social Media Analytics
  • 91. © Copyright 2000-2016 TIBCO Software Inc. Agenda • Real World Use Cases • Introduction to Streaming Analytics • Market Overview • Relation to other Big Data Components • Live Demo
  • 92. Scenario: Predictive Scrapping of Parts in an Assembly Line Goal: Scrap parts as early as possible automatically to reduce costs in a manufacturing process. Question: When to scrap a part in Station 1 instead of doing re-work or sending it to Station 2? Station 1 Station 2 Cost Before 9€ 7€ 13€ Total Cost 29€ (or more) Scrap? Scrap?
  • 93. Big Data Architecture for Predictive Maintenance Operational Analytics Operations Live UI CSV Batch JSON Real Time XML Real Time Streaming AnalyticsAction Aggregate Rules Analytics Correlate Live Datamart Continuous query processing Alerts Manual action, escalation HISTORICAL ANALYSIS Data Scientists Flume HDFS Spotfire R / TERR HDFS Hadoop (Cloudera) StreamBase TIBCO Fast Data Platform H2O Oracle RDBMS Avro Parquet … PMML Internal Data
  • 94. Find Patterns à TIBCO Spotfire with H2O Integration © Copyright 2000-2016 TIBCO Software Inc. Example: Predictive Analytics for Manufacturing (“scrap parts as early as possible”)
  • 95. © Copyright 2000-2016 TIBCO Software Inc. Apply Patterns à TIBCO StreamBase Connector for H2O.ai
  • 96. Monitor Patterns à TIBCO Live Datamart Augmented Intelligence (“Monitor the manufacturing process and change rules in real time!”) Live Dartmart Desktop Client
  • 97. Monitor Patterns à TIBCO Live Datamart Augmented Intelligence (“Monitor the manufacturing process and change rules in real time!”) Live Dartmart Web API
  • 98. TIBCO Spotfire + StreamBase + Live Datamart + H2O.ai Live DemoLive Demo
  • 99. © Copyright 2000-2016 TIBCO Software Inc. Key Take-Aways • Streaming Analytics processes Data while it is in Motion! • Automation and Proactive Human Interaction are BOTH needed! • Streaming Analytics is Complementary to Hadoop and Machine Learning!
  • 100. Questions? Please contact me! Kai Wähner Technology Evangelist [email protected] @KaiWaehner www.kai-waehner.de LinkedIn