SlideShare una empresa de Scribd logo
1 de 37
Descargar para leer sin conexión
Streaming with Varnish
WHO AM I?
Rubén Romero
Director, Customer Success
AGENDA
Background
HTTP Streaming - where we are and where we are coming from
Varnish and Streaming
Two types of streaming and how they are different
Live Streaming
OTT Streaming
Media Streaming on HTTP - Why?
HTTP is the closest we have to a universal transport protocol. Content is cacheable
The web is full of Audio and Video media besides static objects such as images
High latency = A global audience with a content origin located far away
Far away means Slow. Users have no patience, they want the content NOW!
Solution: Break up media file into smaller objects and provide a manifest (playlist).
This allows for HTTP Caching to ensure efficient delivery infrastructure
September 5, 1995
First Live Stream Event
ESPN SportsZone internet-radio
streams a baseball game using
Progressive Networks technology
Mid 2000s
Vast majority of Internet traffic was
HTTP-based and content delivery
networks (CDNs) were increasingly being
used. Move Networks introduces HTTP-
based adaptive streaming.
2020?
Video rules the world and the
amount of existing media is
enormous.
Over 80% of content on the
Internet will be streamed media.
Mid 2010s
Facebook, YouTube, Netflix and Spotify
have mobile users as their primary
market segment. Most content on the
Internet is media (Audio/Video). Cloud
solutions and Hybrid CDN usage
dominate the content delivery space.
Streaming video accounts for over two-
thirds of all internet traffic, and this share is
expected to jump to 82% by 2020,
according to Cisco's June 2016 Visual
Networking Index report
Distribution Infrastructure
Media Server
Principles for HTTP streaming
Audio/Video
Input
Media
Encoder
Stream
Segmenter
Origin Web Server
Index
File
.ts
HTTP Client
Origin Web Server, e.g. Adobe Media Server, Is quite slow managing each request.
It would require a large number of servers to deliver to a wide, global audience
Distribution Infrastructure
Media Server
Principles for HTTP streaming
Audio/Video
Input
Media
Encoder
Stream
Segmenter
Origin Web Server
Index
File
.ts
HTTP Client
Origin Web Server, e.g. Adobe Media Server, Is quite slow managing each request.
It would require a large number of servers to deliver to a wide, global audience
This provides an excellent
opportunity for HTTP Caching!
Distribution Infrastructure
Media Server
Principles for HTTP streaming with Varnish
Audio/Video
Input
Media
Encoder
Stream
Segmenter
Origin Web Server
Index
File
.ts
HTTP Client
A Varnish Server would take care of all transactions and deliver instantly.
As an additional bonus it offers an efficient origin-shield, as very few requests
would reach the origin web server.
Varnish Server
2008
Globo (2nd largest commercial TV network)
Streams Big Brother Brasil online reaching million of users with multiple 24/7 streams broadcast.
Ustream, now IBM Live Video
Uses Varnish to cache Live streams and for GeoIP recognition capabilities.
2009
Consortium of public broadcasters in Germany (ARD)
Increases capacity of an Apple’s HLS linear stream server by delivering Video over IP with Varnish.
2012
BBC, London Olympics: “Varnish is very performant when it comes to live streaming.”
2014
Star TV (India) using Accenture Video Solution
25 million video views with Varnish during an Indian-Pakistan cricket match.
2016
Varnish in use for HTTP Media Streaming
Live Streaming (Linear)
Streaming of a live event
where all viewers watch the
same event (in one or a few
formats).
Dataset is very limited.
Two Types of Streaming
OTT Streaming
Streaming videos On Demand
from a huge catalogue of
titles.
Dataset is massive
Live Streaming
with Varnish
Varnish 4 introduces separated frontend and backend requests and many other
streaming related improvements
Basic Live streaming can be done out of the box with Varnish Cache, and works
well for small scale projects and tests. At large scale, its shortcomings will be
visible
Varnish Plus builds on the solid base of Varnish Cache and adds all the
necessary additional pieces to the Media Streaming puzzle
What can it do? 6000 HD streams @3Mbit H264 and up to 80 Gbps throughput
per server
Adapting Varnish for HTTP Media Streaming
Linear streaming on HTTP
Varnish Plus
Server
Stream
Fragmentor
Developing Varnish Plus for HTTP Media Streaming
2008 - Varnish 2 - Objects need to be fetched entirely before being served.
Clients had to wait for Varnish to receive full object
2011 - Varnish 3 - One client can stream content but other clients need to wait
2011 - Varnish 3.0.2 s+ branch is developed for Comcast, Facebook, Brightcove and Tidal
Fetch&Pass allows 1...n clients to stream content. It is required to support multiple client live streams.
2012 - Varnish 3.0.3 plus branch stabilized for SFR, Hostworks and Dyn.
Includes Streaming and Persistence are the pillars for Media Content caching, specially for mobile
2013 - Varnish Plus is launched - Streaming and basic Persistent storage featured and stable.
Features our world-class support and Varnish enhancement software and admin, monitoring tools.
2014 - Varnish 4 - Streaming gets support. Persistence storage is deprecated.
2014 - Varnish Plus introduces Massive Storage Engine (MSE) & Varnish High Availability (VHA)
2015 - Varnish Plus adds SSL/TLS support on both the HTTP backend and client side
2016 - Varnish Plus introduces Massive Storage Engine 2 with Persistence
Varnish High Availability (Peer replication)
In live streaming, all chunk requests are going to be focused on the few “current”
video segment, making for a very predictable caching strategy.
VHA allows to leverage this by replicating chunks across the whole caching layer
with no additional load for the origin.
The bigger the number of cache servers, the bigger the savings in bandwidth
towards origin and computing and network resources.
Varnish High Availability (Numbers from the Lab)
Varnish High Availability (Numbers from the Lab)
Varnish High Availability
To learn all about VHA, don’t miss Francisco’s talk at 14.10!
Varnish 1 Varnish 2
Backen
d
Backen
dBackend
Cluster
Client
VHA
V
H
A
VHA
Varnish High Availibilty
(Peer Replication)
Real Time Statistics,
Admin & Monitoring Tools
“Unlimited Dataset”
Massive Storage Engine
Unbroken SSL/TLS chain
back to origin servers
Supported by core
Developers
Varnish Plus Provides
Stable versions
(No forced Upgrades)
Live Streaming with Varnish Plus
How to size your Live streaming infrastructure
Streaming Requirements
Example: Regular 24-30 Fps Movie
Varnish server with 2x10Gb interfaces for 20Gb bonded link
Resolution (p) Kbps
Theoretical number of
concurrent streams per
Server
240 400 50,000
360 800 25,000
480 1200 16,667
720 2400 8,333
1080 4800 4,167
OTT Streaming
with Varnish
Distribution Infrastructure
Media Storage Server
What about OTT?
Over-The-Top Content
Origin Web Server
Index
File
.ts
HTTP Client
Varnish Plus Server
OTT requires secure HTTP transport (client and backend SSL/TLS), bandwidth
saving strategies (VHA peer replication) and a solution for video content library
storage size management, which means a cache in the 100s of TBs (MSE with
persistence can do 100+ TBs caches).
Varnish Plus w/MSE vs Varnish Cache
Varnish High Availibilty
(Peer Replication)
Real Time Statistics,
Admin & Monitoring Tools
“Unlimited Dataset”
Massive Storage Engine
“Persistent Dataset”
Massive Storage Engine
Unbroken SSL/TLS chain
back to origin servers
Supported by core
Developers
Varnish Plus Provides
Stable versions
(No forced Upgrades)
Know-How from experts
that have engineered
such solutions before
OTT Streaming with Varnish Plus
“Anybody using this yet?”
Who uses Varnish for Live Streaming?
You will be in good company
Companies using Varnish for OTT Streaming
include
Other companies using Varnish for Streaming
Viaplay
Tidal
SoundCloud
Twitch
YouSee
SFR
Bell Canada
Echostar
Dish Network
Sling Box TV
RTE
Deutsche Telekom
Vimond
Altibox
Freesat
Multichoice
Sky Cable Philippines
RTS
Globo
Videotron
Amedia
MTV Europe
Blizzard
Canadian Broadcast Corp
Cinesoft
Vimeo
Eurosport
TF1
France Television
NRK
BBC
ESPN
NBA
The New York Times
Stackpath/MaxCDN
Cachefly
The future
What does the future look like?
In 2020, 80% of all traffic on the Internet will be Video
OTT and more specifically Video media have been, are and will continue to be a
very important decision driving factor for future versions of Varnish
Roadmap / Plans:
Pre-fetching (Q3)
Video Dashboards - Real Time Statistics
Better support for HTTP Long Polling
What we are cooking in the Varnish Lab
MSE3
Improve start-up time
Better I/O utilization
Use Hugepages (on Linux)
Removing transient storage
A better LRU than LRU algorithm
VHA.next
Supporting POST request replication
Contact info:
Email: ruben@varnish-software.com
IRC: ruben_varnish on irc.linpro.no
Or just come and talk to me :-)
Streaming on HTTP
The technology had a huge impact because it allowed streaming media to be distributed far and wide using
CDNs (over standard HTTP) and cached for efficiency, while at the same time eliminating annoying
buffering and connectivity issues for customers.
Other HTTP-based adaptive streaming solutions soon followed:
Microsoft Smooth 2008
Netflix 2008 (developed its own technology)
Apple HTTP Live Streaming (HLS), 2009
Adobe, HTTP Dynamic Streaming (HDS), 2010
MPEG-DASH, 2014
Streaming with Varnish
Streaming with Varnish

Más contenido relacionado

La actualidad más candente

[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You Need[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You NeedDaiki Tanaka
 
Deep learning for NLP and Transformer
 Deep learning for NLP  and Transformer Deep learning for NLP  and Transformer
Deep learning for NLP and TransformerArvind Devaraj
 
Question Answering - Application and Challenges
Question Answering - Application and ChallengesQuestion Answering - Application and Challenges
Question Answering - Application and ChallengesJens Lehmann
 
NLP using transformers
NLP using transformers NLP using transformers
NLP using transformers Arvind Devaraj
 
敏捷高峰會-邊開火邊修正 - 最小產品可以如何嘗試.pdf
敏捷高峰會-邊開火邊修正 - 最小產品可以如何嘗試.pdf敏捷高峰會-邊開火邊修正 - 最小產品可以如何嘗試.pdf
敏捷高峰會-邊開火邊修正 - 最小產品可以如何嘗試.pdfVincent Lee
 
Syed IoT - module 5
Syed  IoT - module 5Syed  IoT - module 5
Syed IoT - module 5Syed Mustafa
 
Tutorial on Question Answering Systems
Tutorial on Question Answering Systems Tutorial on Question Answering Systems
Tutorial on Question Answering Systems Saeedeh Shekarpour
 
Netflix Recommendations Using Spark + Cassandra (Prasanna Padmanabhan & Roopa...
Netflix Recommendations Using Spark + Cassandra (Prasanna Padmanabhan & Roopa...Netflix Recommendations Using Spark + Cassandra (Prasanna Padmanabhan & Roopa...
Netflix Recommendations Using Spark + Cassandra (Prasanna Padmanabhan & Roopa...DataStax
 
Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...
Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...
Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...Kai Wähner
 
VTU internet of things(IOT) notes by Nithin,VVCE, Mysuru
VTU internet of things(IOT) notes by Nithin,VVCE, MysuruVTU internet of things(IOT) notes by Nithin,VVCE, Mysuru
VTU internet of things(IOT) notes by Nithin,VVCE, MysuruNithin Kumar,VVCE, Mysuru
 
Quantum Cryptography & Key Distribution.pptx
Quantum Cryptography & Key Distribution.pptxQuantum Cryptography & Key Distribution.pptx
Quantum Cryptography & Key Distribution.pptxDaniel938043
 
Page-Rank Algorithm Final
Page-Rank Algorithm FinalPage-Rank Algorithm Final
Page-Rank Algorithm FinalWilliam Keene
 
Language modelling and its use cases
Language modelling and its use casesLanguage modelling and its use cases
Language modelling and its use casesKhrystyna Skopyk
 
Post quantum cryptography
Post quantum cryptographyPost quantum cryptography
Post quantum cryptographyMartins Okoi
 
AI/ML Week: Support Fraud Analytics & Risk Management
AI/ML Week: Support Fraud Analytics & Risk ManagementAI/ML Week: Support Fraud Analytics & Risk Management
AI/ML Week: Support Fraud Analytics & Risk ManagementAmazon Web Services
 
15CS81- IoT Module-2
15CS81- IoT Module-215CS81- IoT Module-2
15CS81- IoT Module-2Syed Mustafa
 
Hello, kafka! (an introduction to apache kafka)
Hello, kafka! (an introduction to apache kafka)Hello, kafka! (an introduction to apache kafka)
Hello, kafka! (an introduction to apache kafka)Timothy Spann
 
Long Short Term Memory (Neural Networks)
Long Short Term Memory (Neural Networks)Long Short Term Memory (Neural Networks)
Long Short Term Memory (Neural Networks)Olusola Amusan
 

La actualidad más candente (20)

[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You Need[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You Need
 
Deep learning for NLP and Transformer
 Deep learning for NLP  and Transformer Deep learning for NLP  and Transformer
Deep learning for NLP and Transformer
 
Question Answering - Application and Challenges
Question Answering - Application and ChallengesQuestion Answering - Application and Challenges
Question Answering - Application and Challenges
 
NLP using transformers
NLP using transformers NLP using transformers
NLP using transformers
 
敏捷高峰會-邊開火邊修正 - 最小產品可以如何嘗試.pdf
敏捷高峰會-邊開火邊修正 - 最小產品可以如何嘗試.pdf敏捷高峰會-邊開火邊修正 - 最小產品可以如何嘗試.pdf
敏捷高峰會-邊開火邊修正 - 最小產品可以如何嘗試.pdf
 
Syed IoT - module 5
Syed  IoT - module 5Syed  IoT - module 5
Syed IoT - module 5
 
Tutorial on Question Answering Systems
Tutorial on Question Answering Systems Tutorial on Question Answering Systems
Tutorial on Question Answering Systems
 
Netflix Recommendations Using Spark + Cassandra (Prasanna Padmanabhan & Roopa...
Netflix Recommendations Using Spark + Cassandra (Prasanna Padmanabhan & Roopa...Netflix Recommendations Using Spark + Cassandra (Prasanna Padmanabhan & Roopa...
Netflix Recommendations Using Spark + Cassandra (Prasanna Padmanabhan & Roopa...
 
Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...
Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...
Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...
 
VTU internet of things(IOT) notes by Nithin,VVCE, Mysuru
VTU internet of things(IOT) notes by Nithin,VVCE, MysuruVTU internet of things(IOT) notes by Nithin,VVCE, Mysuru
VTU internet of things(IOT) notes by Nithin,VVCE, Mysuru
 
Quantum Cryptography & Key Distribution.pptx
Quantum Cryptography & Key Distribution.pptxQuantum Cryptography & Key Distribution.pptx
Quantum Cryptography & Key Distribution.pptx
 
Page-Rank Algorithm Final
Page-Rank Algorithm FinalPage-Rank Algorithm Final
Page-Rank Algorithm Final
 
Word2Vec
Word2VecWord2Vec
Word2Vec
 
Language modelling and its use cases
Language modelling and its use casesLanguage modelling and its use cases
Language modelling and its use cases
 
Post quantum cryptography
Post quantum cryptographyPost quantum cryptography
Post quantum cryptography
 
Kafka presentation
Kafka presentationKafka presentation
Kafka presentation
 
AI/ML Week: Support Fraud Analytics & Risk Management
AI/ML Week: Support Fraud Analytics & Risk ManagementAI/ML Week: Support Fraud Analytics & Risk Management
AI/ML Week: Support Fraud Analytics & Risk Management
 
15CS81- IoT Module-2
15CS81- IoT Module-215CS81- IoT Module-2
15CS81- IoT Module-2
 
Hello, kafka! (an introduction to apache kafka)
Hello, kafka! (an introduction to apache kafka)Hello, kafka! (an introduction to apache kafka)
Hello, kafka! (an introduction to apache kafka)
 
Long Short Term Memory (Neural Networks)
Long Short Term Memory (Neural Networks)Long Short Term Memory (Neural Networks)
Long Short Term Memory (Neural Networks)
 

Similar a Streaming with Varnish

Inlet Technologies - Powering Smooth Streaming
Inlet Technologies - Powering Smooth StreamingInlet Technologies - Powering Smooth Streaming
Inlet Technologies - Powering Smooth StreamingSematron UK Ltd
 
Building video application on windows 8 with Windows Azure Media Services
Building video application on windows 8 with Windows Azure Media ServicesBuilding video application on windows 8 with Windows Azure Media Services
Building video application on windows 8 with Windows Azure Media ServicesMingfei Yan
 
White Paper - Modern Video Streaming in the Enterprise - Panopto Video Platform
White Paper - Modern Video Streaming in the Enterprise - Panopto Video PlatformWhite Paper - Modern Video Streaming in the Enterprise - Panopto Video Platform
White Paper - Modern Video Streaming in the Enterprise - Panopto Video PlatformPanopto
 
“What Every Digital TV Executive Needs to Know About Adaptive Rate Streaming...
 “What Every Digital TV Executive Needs to Know About Adaptive Rate Streaming... “What Every Digital TV Executive Needs to Know About Adaptive Rate Streaming...
“What Every Digital TV Executive Needs to Know About Adaptive Rate Streaming...Verimatrix
 
Converging IPTV and OTT: Building an Enhanced Value Proposition for Consumers
Converging IPTV and OTT: Building an Enhanced Value Proposition for ConsumersConverging IPTV and OTT: Building an Enhanced Value Proposition for Consumers
Converging IPTV and OTT: Building an Enhanced Value Proposition for ConsumersVerimatrix
 
PackeTV® Mobile Whitepaper
PackeTV® Mobile WhitepaperPackeTV® Mobile Whitepaper
PackeTV® Mobile WhitepaperAndrew Lemert
 
A Better Rich Media Experience & Video Analytics at Arkena with Apache Hadoop
A Better Rich Media Experience & Video Analytics at Arkena with Apache HadoopA Better Rich Media Experience & Video Analytics at Arkena with Apache Hadoop
A Better Rich Media Experience & Video Analytics at Arkena with Apache HadoopReda Benzair
 
Different Types of Live Video Streaming Protocols and the Way They Work
Different Types of Live Video Streaming Protocols and the Way They WorkDifferent Types of Live Video Streaming Protocols and the Way They Work
Different Types of Live Video Streaming Protocols and the Way They WorkChetu
 
Rebaca's Video Delivery Expertise Overview
Rebaca's Video Delivery Expertise OverviewRebaca's Video Delivery Expertise Overview
Rebaca's Video Delivery Expertise OverviewArshad Mahmood
 
The Evolution of the Content Delivery Network
The Evolution of the Content Delivery NetworkThe Evolution of the Content Delivery Network
The Evolution of the Content Delivery NetworkCisco Service Provider
 
bitdash - Simple & Easy MPEG-DASH Player for Web and Mobile
bitdash - Simple & Easy MPEG-DASH Player for Web and Mobilebitdash - Simple & Easy MPEG-DASH Player for Web and Mobile
bitdash - Simple & Easy MPEG-DASH Player for Web and MobileBitmovin Inc
 
Boost JBoss AS7 with HTML5 WebRTC for Real Time Communications
Boost JBoss AS7 with HTML5 WebRTC for Real Time CommunicationsBoost JBoss AS7 with HTML5 WebRTC for Real Time Communications
Boost JBoss AS7 with HTML5 WebRTC for Real Time Communicationstelestax
 
SAM - Streaming Analytics Made Easy
SAM - Streaming Analytics Made EasySAM - Streaming Analytics Made Easy
SAM - Streaming Analytics Made EasyDataWorks Summit
 
Streaming tools comparison
Streaming tools comparisonStreaming tools comparison
Streaming tools comparisonCleveroad
 
P2P streaming with HTML5
P2P streaming with HTML5P2P streaming with HTML5
P2P streaming with HTML5Thierry Scelles
 
Approaches to Building Media Streaming Applications
Approaches to Building Media Streaming ApplicationsApproaches to Building Media Streaming Applications
Approaches to Building Media Streaming ApplicationsGlobalLogic Ukraine
 

Similar a Streaming with Varnish (20)

Inlet Technologies - Powering Smooth Streaming
Inlet Technologies - Powering Smooth StreamingInlet Technologies - Powering Smooth Streaming
Inlet Technologies - Powering Smooth Streaming
 
Building video application on windows 8 with Windows Azure Media Services
Building video application on windows 8 with Windows Azure Media ServicesBuilding video application on windows 8 with Windows Azure Media Services
Building video application on windows 8 with Windows Azure Media Services
 
White Paper - Modern Video Streaming in the Enterprise - Panopto Video Platform
White Paper - Modern Video Streaming in the Enterprise - Panopto Video PlatformWhite Paper - Modern Video Streaming in the Enterprise - Panopto Video Platform
White Paper - Modern Video Streaming in the Enterprise - Panopto Video Platform
 
Multimedia Streaming Architecture
Multimedia Streaming ArchitectureMultimedia Streaming Architecture
Multimedia Streaming Architecture
 
Dos presentation by ahlam shakeel
Dos presentation by ahlam shakeelDos presentation by ahlam shakeel
Dos presentation by ahlam shakeel
 
“What Every Digital TV Executive Needs to Know About Adaptive Rate Streaming...
 “What Every Digital TV Executive Needs to Know About Adaptive Rate Streaming... “What Every Digital TV Executive Needs to Know About Adaptive Rate Streaming...
“What Every Digital TV Executive Needs to Know About Adaptive Rate Streaming...
 
Converging IPTV and OTT: Building an Enhanced Value Proposition for Consumers
Converging IPTV and OTT: Building an Enhanced Value Proposition for ConsumersConverging IPTV and OTT: Building an Enhanced Value Proposition for Consumers
Converging IPTV and OTT: Building an Enhanced Value Proposition for Consumers
 
PackeTV® Mobile Whitepaper
PackeTV® Mobile WhitepaperPackeTV® Mobile Whitepaper
PackeTV® Mobile Whitepaper
 
A Better Rich Media Experience & Video Analytics at Arkena with Apache Hadoop
A Better Rich Media Experience & Video Analytics at Arkena with Apache HadoopA Better Rich Media Experience & Video Analytics at Arkena with Apache Hadoop
A Better Rich Media Experience & Video Analytics at Arkena with Apache Hadoop
 
Different Types of Live Video Streaming Protocols and the Way They Work
Different Types of Live Video Streaming Protocols and the Way They WorkDifferent Types of Live Video Streaming Protocols and the Way They Work
Different Types of Live Video Streaming Protocols and the Way They Work
 
Rebaca's Video Delivery Expertise Overview
Rebaca's Video Delivery Expertise OverviewRebaca's Video Delivery Expertise Overview
Rebaca's Video Delivery Expertise Overview
 
The Evolution of the Content Delivery Network
The Evolution of the Content Delivery NetworkThe Evolution of the Content Delivery Network
The Evolution of the Content Delivery Network
 
bitdash - Simple & Easy MPEG-DASH Player for Web and Mobile
bitdash - Simple & Easy MPEG-DASH Player for Web and Mobilebitdash - Simple & Easy MPEG-DASH Player for Web and Mobile
bitdash - Simple & Easy MPEG-DASH Player for Web and Mobile
 
Boost JBoss AS7 with HTML5 WebRTC for Real Time Communications
Boost JBoss AS7 with HTML5 WebRTC for Real Time CommunicationsBoost JBoss AS7 with HTML5 WebRTC for Real Time Communications
Boost JBoss AS7 with HTML5 WebRTC for Real Time Communications
 
SAM - Streaming Analytics Made Easy
SAM - Streaming Analytics Made EasySAM - Streaming Analytics Made Easy
SAM - Streaming Analytics Made Easy
 
Streaming tools comparison
Streaming tools comparisonStreaming tools comparison
Streaming tools comparison
 
P2P streaming with HTML5
P2P streaming with HTML5P2P streaming with HTML5
P2P streaming with HTML5
 
MPEG-DASH open source tools and cloud services
MPEG-DASH open source tools and cloud servicesMPEG-DASH open source tools and cloud services
MPEG-DASH open source tools and cloud services
 
Approaches to Building Media Streaming Applications
Approaches to Building Media Streaming ApplicationsApproaches to Building Media Streaming Applications
Approaches to Building Media Streaming Applications
 
Streaming analytics manager
Streaming analytics managerStreaming analytics manager
Streaming analytics manager
 

Más de Varnish Software (20)

Ask Me Anything on authentication & authorisation in Varnish
Ask Me Anything on authentication & authorisation in VarnishAsk Me Anything on authentication & authorisation in Varnish
Ask Me Anything on authentication & authorisation in Varnish
 
Boozt.com Use Case
Boozt.com Use CaseBoozt.com Use Case
Boozt.com Use Case
 
Akamai connector for varnish
Akamai connector for varnishAkamai connector for varnish
Akamai connector for varnish
 
Varnish High Availability
Varnish High AvailabilityVarnish High Availability
Varnish High Availability
 
PostNord: Copy On Write
PostNord: Copy On WritePostNord: Copy On Write
PostNord: Copy On Write
 
Varnish extend
Varnish extendVarnish extend
Varnish extend
 
Edgestash
EdgestashEdgestash
Edgestash
 
What is new in varnish plus
What is new in varnish plusWhat is new in varnish plus
What is new in varnish plus
 
Varnish Extend demo
Varnish Extend demoVarnish Extend demo
Varnish Extend demo
 
Varnish extend introduction
Varnish extend introductionVarnish extend introduction
Varnish extend introduction
 
Cedexis introduction
Cedexis introductionCedexis introduction
Cedexis introduction
 
Secure content caching
Secure content cachingSecure content caching
Secure content caching
 
Microservices
MicroservicesMicroservices
Microservices
 
Varnishtest
VarnishtestVarnishtest
Varnishtest
 
Lightning fast with Varnish
Lightning fast with VarnishLightning fast with Varnish
Lightning fast with Varnish
 
E-commerce use case
E-commerce use caseE-commerce use case
E-commerce use case
 
Access control
Access controlAccess control
Access control
 
Varnish TLS
Varnish TLSVarnish TLS
Varnish TLS
 
MSE
MSEMSE
MSE
 
Debugging varnish
Debugging varnishDebugging varnish
Debugging varnish
 

Último

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 

Último (20)

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 

Streaming with Varnish

  • 2. WHO AM I? Rubén Romero Director, Customer Success
  • 3. AGENDA Background HTTP Streaming - where we are and where we are coming from Varnish and Streaming Two types of streaming and how they are different Live Streaming OTT Streaming
  • 4. Media Streaming on HTTP - Why? HTTP is the closest we have to a universal transport protocol. Content is cacheable The web is full of Audio and Video media besides static objects such as images High latency = A global audience with a content origin located far away Far away means Slow. Users have no patience, they want the content NOW! Solution: Break up media file into smaller objects and provide a manifest (playlist). This allows for HTTP Caching to ensure efficient delivery infrastructure
  • 5. September 5, 1995 First Live Stream Event ESPN SportsZone internet-radio streams a baseball game using Progressive Networks technology Mid 2000s Vast majority of Internet traffic was HTTP-based and content delivery networks (CDNs) were increasingly being used. Move Networks introduces HTTP- based adaptive streaming. 2020? Video rules the world and the amount of existing media is enormous. Over 80% of content on the Internet will be streamed media. Mid 2010s Facebook, YouTube, Netflix and Spotify have mobile users as their primary market segment. Most content on the Internet is media (Audio/Video). Cloud solutions and Hybrid CDN usage dominate the content delivery space.
  • 6.
  • 7. Streaming video accounts for over two- thirds of all internet traffic, and this share is expected to jump to 82% by 2020, according to Cisco's June 2016 Visual Networking Index report
  • 8. Distribution Infrastructure Media Server Principles for HTTP streaming Audio/Video Input Media Encoder Stream Segmenter Origin Web Server Index File .ts HTTP Client Origin Web Server, e.g. Adobe Media Server, Is quite slow managing each request. It would require a large number of servers to deliver to a wide, global audience
  • 9. Distribution Infrastructure Media Server Principles for HTTP streaming Audio/Video Input Media Encoder Stream Segmenter Origin Web Server Index File .ts HTTP Client Origin Web Server, e.g. Adobe Media Server, Is quite slow managing each request. It would require a large number of servers to deliver to a wide, global audience This provides an excellent opportunity for HTTP Caching!
  • 10. Distribution Infrastructure Media Server Principles for HTTP streaming with Varnish Audio/Video Input Media Encoder Stream Segmenter Origin Web Server Index File .ts HTTP Client A Varnish Server would take care of all transactions and deliver instantly. As an additional bonus it offers an efficient origin-shield, as very few requests would reach the origin web server. Varnish Server
  • 11. 2008 Globo (2nd largest commercial TV network) Streams Big Brother Brasil online reaching million of users with multiple 24/7 streams broadcast. Ustream, now IBM Live Video Uses Varnish to cache Live streams and for GeoIP recognition capabilities. 2009 Consortium of public broadcasters in Germany (ARD) Increases capacity of an Apple’s HLS linear stream server by delivering Video over IP with Varnish. 2012 BBC, London Olympics: “Varnish is very performant when it comes to live streaming.” 2014 Star TV (India) using Accenture Video Solution 25 million video views with Varnish during an Indian-Pakistan cricket match. 2016 Varnish in use for HTTP Media Streaming
  • 12. Live Streaming (Linear) Streaming of a live event where all viewers watch the same event (in one or a few formats). Dataset is very limited. Two Types of Streaming OTT Streaming Streaming videos On Demand from a huge catalogue of titles. Dataset is massive
  • 14. Varnish 4 introduces separated frontend and backend requests and many other streaming related improvements Basic Live streaming can be done out of the box with Varnish Cache, and works well for small scale projects and tests. At large scale, its shortcomings will be visible Varnish Plus builds on the solid base of Varnish Cache and adds all the necessary additional pieces to the Media Streaming puzzle What can it do? 6000 HD streams @3Mbit H264 and up to 80 Gbps throughput per server Adapting Varnish for HTTP Media Streaming
  • 15. Linear streaming on HTTP Varnish Plus Server Stream Fragmentor
  • 16. Developing Varnish Plus for HTTP Media Streaming 2008 - Varnish 2 - Objects need to be fetched entirely before being served. Clients had to wait for Varnish to receive full object 2011 - Varnish 3 - One client can stream content but other clients need to wait 2011 - Varnish 3.0.2 s+ branch is developed for Comcast, Facebook, Brightcove and Tidal Fetch&Pass allows 1...n clients to stream content. It is required to support multiple client live streams. 2012 - Varnish 3.0.3 plus branch stabilized for SFR, Hostworks and Dyn. Includes Streaming and Persistence are the pillars for Media Content caching, specially for mobile 2013 - Varnish Plus is launched - Streaming and basic Persistent storage featured and stable. Features our world-class support and Varnish enhancement software and admin, monitoring tools. 2014 - Varnish 4 - Streaming gets support. Persistence storage is deprecated. 2014 - Varnish Plus introduces Massive Storage Engine (MSE) & Varnish High Availability (VHA) 2015 - Varnish Plus adds SSL/TLS support on both the HTTP backend and client side 2016 - Varnish Plus introduces Massive Storage Engine 2 with Persistence
  • 17. Varnish High Availability (Peer replication) In live streaming, all chunk requests are going to be focused on the few “current” video segment, making for a very predictable caching strategy. VHA allows to leverage this by replicating chunks across the whole caching layer with no additional load for the origin. The bigger the number of cache servers, the bigger the savings in bandwidth towards origin and computing and network resources.
  • 18. Varnish High Availability (Numbers from the Lab)
  • 19. Varnish High Availability (Numbers from the Lab)
  • 20. Varnish High Availability To learn all about VHA, don’t miss Francisco’s talk at 14.10! Varnish 1 Varnish 2 Backen d Backen dBackend Cluster Client VHA V H A VHA
  • 21. Varnish High Availibilty (Peer Replication) Real Time Statistics, Admin & Monitoring Tools “Unlimited Dataset” Massive Storage Engine Unbroken SSL/TLS chain back to origin servers Supported by core Developers Varnish Plus Provides Stable versions (No forced Upgrades) Live Streaming with Varnish Plus
  • 22. How to size your Live streaming infrastructure Streaming Requirements Example: Regular 24-30 Fps Movie Varnish server with 2x10Gb interfaces for 20Gb bonded link Resolution (p) Kbps Theoretical number of concurrent streams per Server 240 400 50,000 360 800 25,000 480 1200 16,667 720 2400 8,333 1080 4800 4,167
  • 24. Distribution Infrastructure Media Storage Server What about OTT? Over-The-Top Content Origin Web Server Index File .ts HTTP Client Varnish Plus Server OTT requires secure HTTP transport (client and backend SSL/TLS), bandwidth saving strategies (VHA peer replication) and a solution for video content library storage size management, which means a cache in the 100s of TBs (MSE with persistence can do 100+ TBs caches).
  • 25. Varnish Plus w/MSE vs Varnish Cache
  • 26. Varnish High Availibilty (Peer Replication) Real Time Statistics, Admin & Monitoring Tools “Unlimited Dataset” Massive Storage Engine “Persistent Dataset” Massive Storage Engine Unbroken SSL/TLS chain back to origin servers Supported by core Developers Varnish Plus Provides Stable versions (No forced Upgrades) Know-How from experts that have engineered such solutions before OTT Streaming with Varnish Plus
  • 28. Who uses Varnish for Live Streaming? You will be in good company
  • 29. Companies using Varnish for OTT Streaming include
  • 30. Other companies using Varnish for Streaming Viaplay Tidal SoundCloud Twitch YouSee SFR Bell Canada Echostar Dish Network Sling Box TV RTE Deutsche Telekom Vimond Altibox Freesat Multichoice Sky Cable Philippines RTS Globo Videotron Amedia MTV Europe Blizzard Canadian Broadcast Corp Cinesoft Vimeo Eurosport TF1 France Television NRK BBC ESPN NBA The New York Times Stackpath/MaxCDN Cachefly
  • 32. What does the future look like? In 2020, 80% of all traffic on the Internet will be Video OTT and more specifically Video media have been, are and will continue to be a very important decision driving factor for future versions of Varnish Roadmap / Plans: Pre-fetching (Q3) Video Dashboards - Real Time Statistics Better support for HTTP Long Polling
  • 33. What we are cooking in the Varnish Lab MSE3 Improve start-up time Better I/O utilization Use Hugepages (on Linux) Removing transient storage A better LRU than LRU algorithm VHA.next Supporting POST request replication
  • 34. Contact info: Email: ruben@varnish-software.com IRC: ruben_varnish on irc.linpro.no Or just come and talk to me :-)
  • 35. Streaming on HTTP The technology had a huge impact because it allowed streaming media to be distributed far and wide using CDNs (over standard HTTP) and cached for efficiency, while at the same time eliminating annoying buffering and connectivity issues for customers. Other HTTP-based adaptive streaming solutions soon followed: Microsoft Smooth 2008 Netflix 2008 (developed its own technology) Apple HTTP Live Streaming (HLS), 2009 Adobe, HTTP Dynamic Streaming (HDS), 2010 MPEG-DASH, 2014