SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Tracking a Soccer
Game with Big Data
Srinath Perera
Director of Research, WSO2
Member, Apache Software Foundation
srinath@wso2.com
@srinath_perera
Outline

• Big Data and
CEP
• Tracking a
Soccer Game
• Making it real
• Conclusion

Photo by John Trainoron Flickr
http://www.flickr.com/photos/trainor/2902023575/, Licensed under CC
A day in your life
 Think about a day in your life?
-

What is the best road to take?
Would there be any bad weather?
How to invest my money?
How is my health?

 There are many decisions that you can
do better if only you can access the data
and process them.
http://www.flickr.com/photos/kcolwell/55
12461652/ CC licence
Real Time Analytics
 Most first usecases were of batch
processing, which take minutes if not
hours to run
 Many insights you rather have sooner
- Tomorrows weather
- Heart condition
- Traffic congestion
- Natural disaster
- Stockmarket Crash
Realizing Real-time Analytics
 Processing Data on the fly, while
storing a minimal amount of
information and responding fast
(from <1 ms to few seconds)
 Idea of Event streams
- A series of events in time
 Enabling technologies
- Stream Processing (Storm, S4)
- Complex Event processing
Internet of Things
 Currently physical world and
software worlds are detached
 Internet of things promises to
bridge this
- It is about sensors and
actuators everywhere
- In your fridge, in your blanket,
in your chair, in your carpet..
Yes even in your socks
- Google IO pressure mats
Vision of the Future
 Sensors everywhere
 Data collected from everywhere, analyzing,
optimizing, and helping (and hopefully not
taking over)
 Analytics and Internet of things .. Immersive
world
 Big data and real-time analytics will be
crucial. How far are we from realizing that?
What would take to
build such a world?
 Sensors and actuators (Motes?)
 Fast interoperable event systems
(MQTT?)
 Powerful query languages (CEP?)
 Powerful control systems and
decision systems
Data Processing Landscape
Complex Event Processing
Complex Event Processing Operators
 Filters or transformations (process a single event)
- from Ball[v>10] select .. insert into ..

 Windows + aggregation (track window of events: time, length)
- from Ball#window.time(30s) select avg(v) ..

 Joins (join two event streams to one)
- from Ball#window.time(30s) as b join Players

as p on p.v < b.v

 Patterns (state machine implementation)
- from Ball[v>10], Ball[v<10]*,Ball[v>10] select ..

 Event tables (map a database as an event stream)
- Define table HitV (v double) using .. db info ..
Sport (Soccer) Usecases?
 Dashboard on game status
 Alarms about critical events in the game
 Real-time game analysis and predictions about the next move
 Updates/ stats etc., on mobile phone with customized offers
 Study of game and players effectiveness
 Monitor players health and body functions
DEBS Challenge
• Soccer game, players and ball
has sensors (DESB Challenge
2013) sid, ts, x,y,z, v,a
• Use cases: Running analysis,
Ball Possession and Shots on
Goal, Heatmap of Activity
• WSO2 CEP (Siddhi) did 100K+
throughput
Usecase 1: Running Analysis
 Main idea: detect when speed thresholds have passed

define partition player by Players .id;
from s = Players [v <= 1 or v > 11] ,
t = Players [v > 1 and v <= 11]+ ,
e = Players [v <= 1 or v > 11]
select s.ts as tsStart , e.ts as tsStop ,s.id as playerId ,
‘‘trot" as intensity , t [0].v as
instantSpeed ,
(e.ts - s.ts )/1000000000 as unitPeriod
insert
into
RunningStats partition by player;
Usecase 2: Ball possession
 Ball possession (you possess the ball from time you hit it until
someone else hit it or ball leaves the ground)
Usecase 3: Heatmap of Activity
 Show where actions happened (via cells defined by a grid of
64X100 etc.), need updates once every second
 Can solved via cell change boundaries, but does not work if
one player stays more than 1 sec in the same cell. So need to
join with a timer.
Usecase 4: Detect kicks on the goal
 Main Idea: Detect kicks on the ball, calculate direction after
1m, and keep giving updates as long as it is in right direction
Results for DEBS Scenarios
Making it Real
CEP High Availability
Complex Event Processing
• SQL like language
• Supports powerful temporal
operators (e.g. windows,
event patterns)
• Focus on speed
• Harder to scale
• e.g. WSO2 CEP,
Streambase, Esper

Stream Processing
• Operators connected in a
network, but you have to
write the logic
• Distributed by design
• Focus on reliability (do not
loose messages), has
transactions
• e.g. Storm, S4
Scaling CEP: Pipeline
Scaling Operators: e.g. Distributed Join
Siddhi Storm Bolt (next Major Release)
 We have written a Siddhi bolt that would let users run
distributed Siddhi Queries using Storm
SiddhiBolt siddhiBolt1 = new SiddhiBolt( .. siddhi queries .. );
SiddhiBolt siddhiBolt2 = new SiddhiBolt( .. siddhi queries .. );
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("source", new PlayStream(), 1);
builder.setBolt("node1", siddhiBolt1, 1)
.shuffleGrouping("source", "PlayStream1");
..
builder.setBolt("LeafEacho", new EchoBolt(), 1)
.shuffleGrouping("node1", "LongAdvanceStream");
..
cluster.submitTopology("word-count", conf, builder.createTopology());
Conceptual Architecture
Data Collection
Agent agent = new Agent(agentConfiguration);
publisher = new AsyncDataPublisher(
"tcp://localhost:7612", .. );

• Can receive events via
SOAP, HTTP, JMS, ..
• WSO2 Events is blazing
fast (400K events TPS)

StreamDefinition definition =
new StreamDefinition(STREAM_NAME,
VERSION);
•
definition.addPayloadData("sid", STRING);
...
publisher.addStreamDefinition(definition);
...
Event event = new Event();
event.setPayloadData(eventData);
publisher.publish(STREAM_NAME, VERSION, event);

Default Agents and you
can write custom
agents.
Business Activity Monitor
Think CEP AND Hive, not OR
 Real power comes when you can join the batch and real-time
processing
 E.g. if velocity of the ball after a kick is different from season
average by 3 times of season’s standard deviation, trigger
event with player ID and speed
- Hard to detect velocity after the kick with Hive/ MapReduce,
but much easier with CEP
- Complicated to calculate season average with CEP, as we
end up with huge windows.
Other Applications
 System/ Device Management
 Fleet/ Logistic Management
 Fraud Detection
 Targeted/ Location Sensitive Marketing
 Smart Grid Control
 Geo Fencing
…
Conclusion
 We are heading for a deeply integrated world with real-time
detection and actions
- We have technology to do this now. E.g. (DEBS usecases)
- Power of CEP
- Use real-time and batch processing in tandem
 All the software we discussed are Open source under Apache
License. Visit http://wso2.com/.
 Like to integrate with us, help, or join? Come to booth 901,
get in touch via http://wso2.com/contact or
architecture@wso2.org

Weitere ähnliche Inhalte

Was ist angesagt?

The Weather of the Century Part 2: High Performance
The Weather of the Century Part 2: High PerformanceThe Weather of the Century Part 2: High Performance
The Weather of the Century Part 2: High Performance
MongoDB
 
Jeff Fischer - Python and IoT: From Chips and Bits to Data Science
Jeff Fischer - Python and IoT: From Chips and Bits to Data ScienceJeff Fischer - Python and IoT: From Chips and Bits to Data Science
Jeff Fischer - Python and IoT: From Chips and Bits to Data Science
PyData
 

Was ist angesagt? (19)

The Quantum Physics of Java
The Quantum Physics of JavaThe Quantum Physics of Java
The Quantum Physics of Java
 
Clickhouse Capacity Planning for OLAP Workloads, Mik Kocikowski of CloudFlare
Clickhouse Capacity Planning for OLAP Workloads, Mik Kocikowski of CloudFlareClickhouse Capacity Planning for OLAP Workloads, Mik Kocikowski of CloudFlare
Clickhouse Capacity Planning for OLAP Workloads, Mik Kocikowski of CloudFlare
 
[232]mist 고성능 iot 스트림 처리 시스템
[232]mist 고성능 iot 스트림 처리 시스템[232]mist 고성능 iot 스트림 처리 시스템
[232]mist 고성능 iot 스트림 처리 시스템
 
Spanner (may 19)
Spanner (may 19)Spanner (may 19)
Spanner (may 19)
 
Giovanni Lanzani – SQL & NoSQL databases for data driven applications - NoSQL...
Giovanni Lanzani – SQL & NoSQL databases for data driven applications - NoSQL...Giovanni Lanzani – SQL & NoSQL databases for data driven applications - NoSQL...
Giovanni Lanzani – SQL & NoSQL databases for data driven applications - NoSQL...
 
Azure Stream Analytics Project : On-demand real-time analytics
Azure Stream Analytics Project : On-demand real-time analyticsAzure Stream Analytics Project : On-demand real-time analytics
Azure Stream Analytics Project : On-demand real-time analytics
 
Ac cuda c_4
Ac cuda c_4Ac cuda c_4
Ac cuda c_4
 
2013 2-5
2013 2-52013 2-5
2013 2-5
 
Exploring Parallel Merging In GPU Based Systems Using CUDA C.
Exploring Parallel Merging In GPU Based Systems Using CUDA C.Exploring Parallel Merging In GPU Based Systems Using CUDA C.
Exploring Parallel Merging In GPU Based Systems Using CUDA C.
 
Alternative cryptocurrencies
Alternative cryptocurrencies Alternative cryptocurrencies
Alternative cryptocurrencies
 
Weather of the Century: Design and Performance
Weather of the Century: Design and PerformanceWeather of the Century: Design and Performance
Weather of the Century: Design and Performance
 
Big Data in Real-Time: How ClickHouse powers Admiral's visitor relationships ...
Big Data in Real-Time: How ClickHouse powers Admiral's visitor relationships ...Big Data in Real-Time: How ClickHouse powers Admiral's visitor relationships ...
Big Data in Real-Time: How ClickHouse powers Admiral's visitor relationships ...
 
ДЕНИС КЛЕПIКОВ «Long Term storage for Prometheus» Lviv DevOps Conference 2019
ДЕНИС КЛЕПIКОВ «Long Term storage for Prometheus» Lviv DevOps Conference 2019ДЕНИС КЛЕПIКОВ «Long Term storage for Prometheus» Lviv DevOps Conference 2019
ДЕНИС КЛЕПIКОВ «Long Term storage for Prometheus» Lviv DevOps Conference 2019
 
The Weather of the Century Part 2: High Performance
The Weather of the Century Part 2: High PerformanceThe Weather of the Century Part 2: High Performance
The Weather of the Century Part 2: High Performance
 
ClickHouse Features for Advanced Users, by Aleksei Milovidov
ClickHouse Features for Advanced Users, by Aleksei MilovidovClickHouse Features for Advanced Users, by Aleksei Milovidov
ClickHouse Features for Advanced Users, by Aleksei Milovidov
 
Jeff Fischer - Python and IoT: From Chips and Bits to Data Science
Jeff Fischer - Python and IoT: From Chips and Bits to Data ScienceJeff Fischer - Python and IoT: From Chips and Bits to Data Science
Jeff Fischer - Python and IoT: From Chips and Bits to Data Science
 
A Fast Intro to Fast Query with ClickHouse, by Robert Hodges
A Fast Intro to Fast Query with ClickHouse, by Robert HodgesA Fast Intro to Fast Query with ClickHouse, by Robert Hodges
A Fast Intro to Fast Query with ClickHouse, by Robert Hodges
 
Hadoop Summit 2012 | Bayesian Counters AKA In Memory Data Mining for Large Da...
Hadoop Summit 2012 | Bayesian Counters AKA In Memory Data Mining for Large Da...Hadoop Summit 2012 | Bayesian Counters AKA In Memory Data Mining for Large Da...
Hadoop Summit 2012 | Bayesian Counters AKA In Memory Data Mining for Large Da...
 
1.game
1.game1.game
1.game
 

Andere mochten auch

Introduction to stratos live
Introduction to stratos liveIntroduction to stratos live
Introduction to stratos live
WSO2
 
Product Release Webinar- WSO2 Developer Studio 3.5
Product Release Webinar- WSO2 Developer Studio 3.5Product Release Webinar- WSO2 Developer Studio 3.5
Product Release Webinar- WSO2 Developer Studio 3.5
WSO2
 
Delivering Best Apps with Efficiency
Delivering Best Apps with EfficiencyDelivering Best Apps with Efficiency
Delivering Best Apps with Efficiency
WSO2
 
Streamline your SOA Portfolio
Streamline your SOA Portfolio Streamline your SOA Portfolio
Streamline your SOA Portfolio
WSO2
 
In the Spotlight WSO2 App Factory
In the Spotlight   WSO2 App FactoryIn the Spotlight   WSO2 App Factory
In the Spotlight WSO2 App Factory
WSO2
 
2013 02-apache conna-api-manager-asanka
2013 02-apache conna-api-manager-asanka2013 02-apache conna-api-manager-asanka
2013 02-apache conna-api-manager-asanka
WSO2
 

Andere mochten auch (8)

Introduction to stratos live
Introduction to stratos liveIntroduction to stratos live
Introduction to stratos live
 
Product Release Webinar- WSO2 Developer Studio 3.5
Product Release Webinar- WSO2 Developer Studio 3.5Product Release Webinar- WSO2 Developer Studio 3.5
Product Release Webinar- WSO2 Developer Studio 3.5
 
Delivering Best Apps with Efficiency
Delivering Best Apps with EfficiencyDelivering Best Apps with Efficiency
Delivering Best Apps with Efficiency
 
Streamline your SOA Portfolio
Streamline your SOA Portfolio Streamline your SOA Portfolio
Streamline your SOA Portfolio
 
In the Spotlight WSO2 App Factory
In the Spotlight   WSO2 App FactoryIn the Spotlight   WSO2 App Factory
In the Spotlight WSO2 App Factory
 
2013 02-apache conna-api-manager-asanka
2013 02-apache conna-api-manager-asanka2013 02-apache conna-api-manager-asanka
2013 02-apache conna-api-manager-asanka
 
How Privacy in the Cloud Affects End-Users
How Privacy in the Cloud Affects End-UsersHow Privacy in the Cloud Affects End-Users
How Privacy in the Cloud Affects End-Users
 
2016 Year End Webinar - Are You Ready for Digital Transformation?
2016 Year End Webinar - Are You Ready for Digital Transformation?2016 Year End Webinar - Are You Ready for Digital Transformation?
2016 Year End Webinar - Are You Ready for Digital Transformation?
 

Ähnlich wie Tracking a soccer game with Big Data

Presentation Brucon - Anubisnetworks and PTCoresec
Presentation Brucon - Anubisnetworks and PTCoresecPresentation Brucon - Anubisnetworks and PTCoresec
Presentation Brucon - Anubisnetworks and PTCoresec
Tiago Henriques
 

Ähnlich wie Tracking a soccer game with Big Data (20)

Structure Data 2014: TRACKING A SOCCER GAME WITH BIG DATA, Chris Haddad
Structure Data 2014: TRACKING A SOCCER GAME WITH BIG DATA, Chris HaddadStructure Data 2014: TRACKING A SOCCER GAME WITH BIG DATA, Chris Haddad
Structure Data 2014: TRACKING A SOCCER GAME WITH BIG DATA, Chris Haddad
 
Tracking a soccer game with BigData
Tracking a soccer game with BigDataTracking a soccer game with BigData
Tracking a soccer game with BigData
 
Intelligent Monitoring
Intelligent MonitoringIntelligent Monitoring
Intelligent Monitoring
 
Introduction to WSO2 Data Analytics Platform
Introduction to  WSO2 Data Analytics PlatformIntroduction to  WSO2 Data Analytics Platform
Introduction to WSO2 Data Analytics Platform
 
Inflight to Insights: Real-time Insights with Event Hubs, Stream Analytics an...
Inflight to Insights: Real-time Insights with Event Hubs, Stream Analytics an...Inflight to Insights: Real-time Insights with Event Hubs, Stream Analytics an...
Inflight to Insights: Real-time Insights with Event Hubs, Stream Analytics an...
 
MongoDB Solution for Internet of Things and Big Data
MongoDB Solution for Internet of Things and Big DataMongoDB Solution for Internet of Things and Big Data
MongoDB Solution for Internet of Things and Big Data
 
Lab pratico per la progettazione di soluzioni MongoDB in ambito Internet of T...
Lab pratico per la progettazione di soluzioni MongoDB in ambito Internet of T...Lab pratico per la progettazione di soluzioni MongoDB in ambito Internet of T...
Lab pratico per la progettazione di soluzioni MongoDB in ambito Internet of T...
 
View, Act, and React: Shaping Business Activity with Analytics, BigData Queri...
View, Act, and React: Shaping Business Activity with Analytics, BigData Queri...View, Act, and React: Shaping Business Activity with Analytics, BigData Queri...
View, Act, and React: Shaping Business Activity with Analytics, BigData Queri...
 
Akka with Scala
Akka with ScalaAkka with Scala
Akka with Scala
 
So you think you can stream.pptx
So you think you can stream.pptxSo you think you can stream.pptx
So you think you can stream.pptx
 
Application Monitoring using Open Source: VictoriaMetrics - ClickHouse
Application Monitoring using Open Source: VictoriaMetrics - ClickHouseApplication Monitoring using Open Source: VictoriaMetrics - ClickHouse
Application Monitoring using Open Source: VictoriaMetrics - ClickHouse
 
Application Monitoring using Open Source - VictoriaMetrics & Altinity ClickHo...
Application Monitoring using Open Source - VictoriaMetrics & Altinity ClickHo...Application Monitoring using Open Source - VictoriaMetrics & Altinity ClickHo...
Application Monitoring using Open Source - VictoriaMetrics & Altinity ClickHo...
 
Dealing with the need for Infrastructural Support in Ambient Intelligence
Dealing with the need for Infrastructural Support in Ambient IntelligenceDealing with the need for Infrastructural Support in Ambient Intelligence
Dealing with the need for Infrastructural Support in Ambient Intelligence
 
Complex Event Processing: What?, Why?, How?
Complex Event Processing: What?, Why?, How?Complex Event Processing: What?, Why?, How?
Complex Event Processing: What?, Why?, How?
 
Presentation Brucon - Anubisnetworks and PTCoresec
Presentation Brucon - Anubisnetworks and PTCoresecPresentation Brucon - Anubisnetworks and PTCoresec
Presentation Brucon - Anubisnetworks and PTCoresec
 
Game Analytics & Machine Learning
Game Analytics & Machine LearningGame Analytics & Machine Learning
Game Analytics & Machine Learning
 
Azure Stream Analytics : Analyse Data in Motion
Azure Stream Analytics  : Analyse Data in MotionAzure Stream Analytics  : Analyse Data in Motion
Azure Stream Analytics : Analyse Data in Motion
 
Kusto (Azure Data Explorer) Training for R&D - January 2019
Kusto (Azure Data Explorer) Training for R&D - January 2019 Kusto (Azure Data Explorer) Training for R&D - January 2019
Kusto (Azure Data Explorer) Training for R&D - January 2019
 
Accelerating analytics on the Sensor and IoT Data.
Accelerating analytics on the Sensor and IoT Data. Accelerating analytics on the Sensor and IoT Data.
Accelerating analytics on the Sensor and IoT Data.
 
Flink 0.10 @ Bay Area Meetup (October 2015)
Flink 0.10 @ Bay Area Meetup (October 2015)Flink 0.10 @ Bay Area Meetup (October 2015)
Flink 0.10 @ Bay Area Meetup (October 2015)
 

Mehr von WSO2

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Fueling the Digital Experience Economy with Connected Products
Fueling the Digital Experience Economy with Connected ProductsFueling the Digital Experience Economy with Connected Products
Fueling the Digital Experience Economy with Connected Products
WSO2
 
A Reference Methodology for Agile Digital Businesses
 A Reference Methodology for Agile Digital Businesses A Reference Methodology for Agile Digital Businesses
A Reference Methodology for Agile Digital Businesses
WSO2
 

Mehr von WSO2 (20)

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with Platformless
 
How to Create a Service in Choreo
How to Create a Service in ChoreoHow to Create a Service in Choreo
How to Create a Service in Choreo
 
Ballerina Tech Talk - May 2023
Ballerina Tech Talk - May 2023Ballerina Tech Talk - May 2023
Ballerina Tech Talk - May 2023
 
Platform Strategy to Deliver Digital Experiences on Azure
Platform Strategy to Deliver Digital Experiences on AzurePlatform Strategy to Deliver Digital Experiences on Azure
Platform Strategy to Deliver Digital Experiences on Azure
 
GartnerITSymSessionSlides.pdf
GartnerITSymSessionSlides.pdfGartnerITSymSessionSlides.pdf
GartnerITSymSessionSlides.pdf
 
[Webinar] How to Create an API in Minutes
[Webinar] How to Create an API in Minutes[Webinar] How to Create an API in Minutes
[Webinar] How to Create an API in Minutes
 
Modernizing the Student Journey with Ethos Identity
Modernizing the Student Journey with Ethos IdentityModernizing the Student Journey with Ethos Identity
Modernizing the Student Journey with Ethos Identity
 
Choreo - Build unique digital experiences on WSO2's platform, secured by Etho...
Choreo - Build unique digital experiences on WSO2's platform, secured by Etho...Choreo - Build unique digital experiences on WSO2's platform, secured by Etho...
Choreo - Build unique digital experiences on WSO2's platform, secured by Etho...
 
CIO Summit Berlin 2022.pptx.pdf
CIO Summit Berlin 2022.pptx.pdfCIO Summit Berlin 2022.pptx.pdf
CIO Summit Berlin 2022.pptx.pdf
 
Delivering New Digital Experiences Fast - Introducing Choreo
Delivering New Digital Experiences Fast - Introducing ChoreoDelivering New Digital Experiences Fast - Introducing Choreo
Delivering New Digital Experiences Fast - Introducing Choreo
 
Fueling the Digital Experience Economy with Connected Products
Fueling the Digital Experience Economy with Connected ProductsFueling the Digital Experience Economy with Connected Products
Fueling the Digital Experience Economy with Connected Products
 
A Reference Methodology for Agile Digital Businesses
 A Reference Methodology for Agile Digital Businesses A Reference Methodology for Agile Digital Businesses
A Reference Methodology for Agile Digital Businesses
 
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
 
Lessons from the pandemic - From a single use case to true transformation
 Lessons from the pandemic - From a single use case to true transformation Lessons from the pandemic - From a single use case to true transformation
Lessons from the pandemic - From a single use case to true transformation
 
Adding Liveliness to Banking Experiences
Adding Liveliness to Banking ExperiencesAdding Liveliness to Banking Experiences
Adding Liveliness to Banking Experiences
 
Building a Future-ready Bank
Building a Future-ready BankBuilding a Future-ready Bank
Building a Future-ready Bank
 
WSO2 API Manager Community Call - November 2021
WSO2 API Manager Community Call - November 2021WSO2 API Manager Community Call - November 2021
WSO2 API Manager Community Call - November 2021
 
[API World ] - Managing Asynchronous APIs
[API World ] - Managing Asynchronous APIs[API World ] - Managing Asynchronous APIs
[API World ] - Managing Asynchronous APIs
 
[API World 2021 ] - Understanding Cloud Native Deployment
[API World 2021 ] - Understanding Cloud Native Deployment[API World 2021 ] - Understanding Cloud Native Deployment
[API World 2021 ] - Understanding Cloud Native Deployment
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Kürzlich hochgeladen (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Tracking a soccer game with Big Data

  • 1. Tracking a Soccer Game with Big Data Srinath Perera Director of Research, WSO2 Member, Apache Software Foundation srinath@wso2.com @srinath_perera
  • 2. Outline • Big Data and CEP • Tracking a Soccer Game • Making it real • Conclusion Photo by John Trainoron Flickr http://www.flickr.com/photos/trainor/2902023575/, Licensed under CC
  • 3. A day in your life  Think about a day in your life? - What is the best road to take? Would there be any bad weather? How to invest my money? How is my health?  There are many decisions that you can do better if only you can access the data and process them. http://www.flickr.com/photos/kcolwell/55 12461652/ CC licence
  • 4. Real Time Analytics  Most first usecases were of batch processing, which take minutes if not hours to run  Many insights you rather have sooner - Tomorrows weather - Heart condition - Traffic congestion - Natural disaster - Stockmarket Crash
  • 5. Realizing Real-time Analytics  Processing Data on the fly, while storing a minimal amount of information and responding fast (from <1 ms to few seconds)  Idea of Event streams - A series of events in time  Enabling technologies - Stream Processing (Storm, S4) - Complex Event processing
  • 6. Internet of Things  Currently physical world and software worlds are detached  Internet of things promises to bridge this - It is about sensors and actuators everywhere - In your fridge, in your blanket, in your chair, in your carpet.. Yes even in your socks - Google IO pressure mats
  • 7. Vision of the Future  Sensors everywhere  Data collected from everywhere, analyzing, optimizing, and helping (and hopefully not taking over)  Analytics and Internet of things .. Immersive world  Big data and real-time analytics will be crucial. How far are we from realizing that?
  • 8. What would take to build such a world?  Sensors and actuators (Motes?)  Fast interoperable event systems (MQTT?)  Powerful query languages (CEP?)  Powerful control systems and decision systems
  • 11. Complex Event Processing Operators  Filters or transformations (process a single event) - from Ball[v>10] select .. insert into ..  Windows + aggregation (track window of events: time, length) - from Ball#window.time(30s) select avg(v) ..  Joins (join two event streams to one) - from Ball#window.time(30s) as b join Players as p on p.v < b.v  Patterns (state machine implementation) - from Ball[v>10], Ball[v<10]*,Ball[v>10] select ..  Event tables (map a database as an event stream) - Define table HitV (v double) using .. db info ..
  • 12. Sport (Soccer) Usecases?  Dashboard on game status  Alarms about critical events in the game  Real-time game analysis and predictions about the next move  Updates/ stats etc., on mobile phone with customized offers  Study of game and players effectiveness  Monitor players health and body functions
  • 13. DEBS Challenge • Soccer game, players and ball has sensors (DESB Challenge 2013) sid, ts, x,y,z, v,a • Use cases: Running analysis, Ball Possession and Shots on Goal, Heatmap of Activity • WSO2 CEP (Siddhi) did 100K+ throughput
  • 14. Usecase 1: Running Analysis  Main idea: detect when speed thresholds have passed define partition player by Players .id; from s = Players [v <= 1 or v > 11] , t = Players [v > 1 and v <= 11]+ , e = Players [v <= 1 or v > 11] select s.ts as tsStart , e.ts as tsStop ,s.id as playerId , ‘‘trot" as intensity , t [0].v as instantSpeed , (e.ts - s.ts )/1000000000 as unitPeriod insert into RunningStats partition by player;
  • 15. Usecase 2: Ball possession  Ball possession (you possess the ball from time you hit it until someone else hit it or ball leaves the ground)
  • 16. Usecase 3: Heatmap of Activity  Show where actions happened (via cells defined by a grid of 64X100 etc.), need updates once every second  Can solved via cell change boundaries, but does not work if one player stays more than 1 sec in the same cell. So need to join with a timer.
  • 17. Usecase 4: Detect kicks on the goal  Main Idea: Detect kicks on the ball, calculate direction after 1m, and keep giving updates as long as it is in right direction
  • 18. Results for DEBS Scenarios
  • 21. Complex Event Processing • SQL like language • Supports powerful temporal operators (e.g. windows, event patterns) • Focus on speed • Harder to scale • e.g. WSO2 CEP, Streambase, Esper Stream Processing • Operators connected in a network, but you have to write the logic • Distributed by design • Focus on reliability (do not loose messages), has transactions • e.g. Storm, S4
  • 23. Scaling Operators: e.g. Distributed Join
  • 24. Siddhi Storm Bolt (next Major Release)  We have written a Siddhi bolt that would let users run distributed Siddhi Queries using Storm SiddhiBolt siddhiBolt1 = new SiddhiBolt( .. siddhi queries .. ); SiddhiBolt siddhiBolt2 = new SiddhiBolt( .. siddhi queries .. ); TopologyBuilder builder = new TopologyBuilder(); builder.setSpout("source", new PlayStream(), 1); builder.setBolt("node1", siddhiBolt1, 1) .shuffleGrouping("source", "PlayStream1"); .. builder.setBolt("LeafEacho", new EchoBolt(), 1) .shuffleGrouping("node1", "LongAdvanceStream"); .. cluster.submitTopology("word-count", conf, builder.createTopology());
  • 26. Data Collection Agent agent = new Agent(agentConfiguration); publisher = new AsyncDataPublisher( "tcp://localhost:7612", .. ); • Can receive events via SOAP, HTTP, JMS, .. • WSO2 Events is blazing fast (400K events TPS) StreamDefinition definition = new StreamDefinition(STREAM_NAME, VERSION); • definition.addPayloadData("sid", STRING); ... publisher.addStreamDefinition(definition); ... Event event = new Event(); event.setPayloadData(eventData); publisher.publish(STREAM_NAME, VERSION, event); Default Agents and you can write custom agents.
  • 28. Think CEP AND Hive, not OR  Real power comes when you can join the batch and real-time processing  E.g. if velocity of the ball after a kick is different from season average by 3 times of season’s standard deviation, trigger event with player ID and speed - Hard to detect velocity after the kick with Hive/ MapReduce, but much easier with CEP - Complicated to calculate season average with CEP, as we end up with huge windows.
  • 29.
  • 30. Other Applications  System/ Device Management  Fleet/ Logistic Management  Fraud Detection  Targeted/ Location Sensitive Marketing  Smart Grid Control  Geo Fencing …
  • 31. Conclusion  We are heading for a deeply integrated world with real-time detection and actions - We have technology to do this now. E.g. (DEBS usecases) - Power of CEP - Use real-time and batch processing in tandem  All the software we discussed are Open source under Apache License. Visit http://wso2.com/.  Like to integrate with us, help, or join? Come to booth 901, get in touch via http://wso2.com/contact or architecture@wso2.org