SlideShare una empresa de Scribd logo
1 de 22
Zype
CDN Performance & Cost
Economics
Streaming Media West
11/19/2019
Check us out at
https://www.zype.com
Agenda
About Zype
CDN Evaluation Background
Testing Methodology & Approach
Evaluating KPIs & Results
Learnings & Opportunities
About Zype
● Full stack video content management and
distribution infrastructure.
● Dashboards, APIs, & publishing tools to build
video products and services at scale
● Publish apps & video services across web,
social, mobile, and OTT / connected TV
● On-demand, live, linear-live, and linear playout
products
● Support for subscription, transaction, and ad
monetization
● Founded in 2014, HQ in New York
VideoMeta™ CMS
Easily import, manage
and curate video and
manage subscriber data
App Distribution
Distribute and monetize
content across all web,
mobile and CTV/OTT devices
and MVPD partners
Monetization
Full support for all monetization
models - Subscriptions,
Transactional, Ad-Based or any
hybrid.
Analytics
Powerful analytics dashboard
providing valuable insight into
engagement, streaming, and
revenue
Streaming
CDN-agnostic delivery with
performance and analytics in
mind
Zype Live
Deliver and monetize premium
live video to any destination with API
enabled encoding for live, linear and
social multicasted events
Embeddables
Extend the power of the Zype
platform to your own website
with easy-to-use video embeds
Integration Hooks
Integrate Zype with all core
SaaS products you use to
power your business
4
Social & Syndication
Easily publish content to key
social platforms to build
awareness, drive adoption or
syndicated revenue streams
Full stack Video Content Management
& Distribution infrastructure
Aren’t CDNs all the same?
How to evaluate new CDN
partners in a highly
commoditized and
undifferentiated industry?
Big 3: CDN Evaluation Rubric
Find 3 well
known, top tier
providers to
evaluate
Providers Core Criteria Integration
Evaluate
performance,
costs, and
feature sets
How easy is it
to integrate into
our delivery
pipeline
Primary performance metrics we evaluated
● Time to first frame
● Caching policies
● Cache-hit ratios
● Reducing origin hits by
advertised features
● Origin egress
● Player performance
(Sorry, we didn’t care about
the Weissman scores)
Performance & Cost KPIs
Cost Performance● What are the cache hit ratios over time
○ How long can we keep origin requests
cached on the CDN before they expire
○ Understand the benefits and cost of
Hyper/Mid-Tier/Origin Shield Caches
● We need to understand what my egress traffic
(and costs) would be for origin request
○ How much transfer costs would be incurred
over time (day/month/year)
○ Understand how CDN caching policies will
affect origin requests over time
Features we actually care about
Origin shields /
hypercaching
Mid-tier
caching
architecture
and
implications
Security
features
Delivery cost
Origin egress
and routing
05
01
02 03
04
Testing methodology / criteria
Origin & Transfer
Considerations
Load &
Performance
Geographic
Distribution
Endpoints &
Players
Using Goad to Build a Test Framework
What is a goad?
AWS Lambda powered, highly
distributed, load testing tool written
Go
GOAD is a nodeJS application that
executes within AWS lambda.
Given the nature of it’s architecture,
it’s highly distribute, relatively simple
to implement, and lightweight.
Requiring very little engineering
engagement
Check it out > https://goad.io/
Using Goad to Simulate Globally
Analyze and Compare the results
Leverage AWS Athena for analyzing the data
Storage the resultant data in S3
SQS queues for centralizing results
Build a Goad microservice; leveraging
regionalized Lambda functions for generating
global requests and playback execution
Build staging environments; each configured to
a CDN provider
Distributed Player Requests at
Scale
Testing Framework & Methodology
Test Execution Strategy Using Goad
Regions
Assets
Concurrency
Tests
• US EAST, US WEST, CANADA,UK, INDIA,
SOUTHEAST ASIA
• 10 unique & content specific video assets; per
CDN
• A mix of consistent and varied content types
(50/50)
• Identically encoded
• 2 live streams
• How many concurrent, sustained requests do
we want to test for
•1 per minute
•5 per minute
•10,000 per 5 minutes
•100,000 per 15 minutes
• Tests were executed over the course of a
month + 1 week
• A typical test would span several days, some
as long as a week; continuous request load
Analysis Architecture
● Goad microservice using regionalized
Lambda cloud functions for generating
player requests and playback
● Goad sends those requests directly to
a bucket (us-east-1)
● Where a predefined AWS Glue model
is leveraged against the JSON files in
S3 by Athena
Results
Understanding our Test Results: Performance
● How long can I keep origin request cached on the CDN?
○ (eg; 1 month, 6 months, 1 year?)
○ what are the costs of that data renition on your provider (if applicable)
● What are my time to first frame values per provider
○ IF all player conditions are equal, how long did it take to….
■ make a player request
■ download the manifest; queue into a player
■ download a chunk; seek to a chunk
■ begin playback
○ How does this improve my QoS experience for my clients for my consumers
■ should I make my chunk size small
■ should I invest in re-encode my library with a new codec
Results
Current CDN CDN 2 CDN 3 CDN 4
April 2019 VOD Testing to Date Testing to Date Testing to Date
Total = 565.86 TB Total = 632.8.4GB Total = 5.20TB Total = 1.17GB
Origin Egress = 367.44 TB Origin Egress = 2.4GB Origin Egress = 29.7GB Origin Egress = 1.01GB
Total Requests = 251.73 million Total Requests = 1.22 million Total Requests = 1.55million Total Requests = 700,360
Hits = 91.06 million Hits = 1.21 million Hits = 1.37million Hits = 294,520
Misses = 159.23 million Misses = 3810 Misses = 180k Misses = 405,840
Errors(all) = 1.44 million Errors(all) = 0 Errors(all) = 900 Errors(all) = too many
Avg Efficiency for April = 63% Avg Efficiency = 98.9 % Avg Efficiency = 88.7% Avg Efficiency = 42%
AVG CDN Latency North Americatime(ms)
CDN 4
CDN 1
CDN 3
CDN 2
April - May 2019
Understanding our Test Results: Cost
● Breaking down results by KPI
○ Calculate the following (for 1 day, 1 week, 1 month)
■ How content was delivered?
■ How much did that delivery cost?
■ How many origin requests were made?
■ How much did I pay in origin transfer cost for those request?
■ What are my fixed CDN platform fees?
Evaluating cost (don’t forget origin egress!!!)
Delivery
Costs (per
GB),
Platform
Origin
Egress
Codecs &
Advanced
Features
Total Cost of Ownership
Real VOD Use Case Post-
Optimization
Conclusions
● Caching policies: the longevity of assets sitting on the CDN is important
○ Decreases overall origin requests
○ Decreases overall cdn transfer costs (if applicable)
● As a provider, origin egress (particularly when operating origins within
the cloud) can make or break your delivery margins
○ Understanding origin transfer cost is imperative
● Routing and first-hop considerations
○ Origin egress transfer costs are directly related to outbound
traffic egressing. To optimize routing, understand the network
topology between your cloud origin and your CDN of choice (if
not all of them). There can be hidden cost savings there
● Negotiate a good delivery rate
https://www.zype.com
New York City
115 Broadway, FL5
New York, NY 10006
Thanks!
Check us out at
https://www.zype.com

Más contenido relacionado

Último

Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
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
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
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
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
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
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 

Último (20)

Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
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
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
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
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
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
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 

Destacado

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Destacado (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

CDN Performance and Cost Optimization for Video Streaming

  • 1. Zype CDN Performance & Cost Economics Streaming Media West 11/19/2019 Check us out at https://www.zype.com
  • 2. Agenda About Zype CDN Evaluation Background Testing Methodology & Approach Evaluating KPIs & Results Learnings & Opportunities
  • 3. About Zype ● Full stack video content management and distribution infrastructure. ● Dashboards, APIs, & publishing tools to build video products and services at scale ● Publish apps & video services across web, social, mobile, and OTT / connected TV ● On-demand, live, linear-live, and linear playout products ● Support for subscription, transaction, and ad monetization ● Founded in 2014, HQ in New York
  • 4. VideoMeta™ CMS Easily import, manage and curate video and manage subscriber data App Distribution Distribute and monetize content across all web, mobile and CTV/OTT devices and MVPD partners Monetization Full support for all monetization models - Subscriptions, Transactional, Ad-Based or any hybrid. Analytics Powerful analytics dashboard providing valuable insight into engagement, streaming, and revenue Streaming CDN-agnostic delivery with performance and analytics in mind Zype Live Deliver and monetize premium live video to any destination with API enabled encoding for live, linear and social multicasted events Embeddables Extend the power of the Zype platform to your own website with easy-to-use video embeds Integration Hooks Integrate Zype with all core SaaS products you use to power your business 4 Social & Syndication Easily publish content to key social platforms to build awareness, drive adoption or syndicated revenue streams Full stack Video Content Management & Distribution infrastructure
  • 5. Aren’t CDNs all the same? How to evaluate new CDN partners in a highly commoditized and undifferentiated industry?
  • 6. Big 3: CDN Evaluation Rubric Find 3 well known, top tier providers to evaluate Providers Core Criteria Integration Evaluate performance, costs, and feature sets How easy is it to integrate into our delivery pipeline
  • 7. Primary performance metrics we evaluated ● Time to first frame ● Caching policies ● Cache-hit ratios ● Reducing origin hits by advertised features ● Origin egress ● Player performance (Sorry, we didn’t care about the Weissman scores)
  • 8. Performance & Cost KPIs Cost Performance● What are the cache hit ratios over time ○ How long can we keep origin requests cached on the CDN before they expire ○ Understand the benefits and cost of Hyper/Mid-Tier/Origin Shield Caches ● We need to understand what my egress traffic (and costs) would be for origin request ○ How much transfer costs would be incurred over time (day/month/year) ○ Understand how CDN caching policies will affect origin requests over time
  • 9. Features we actually care about Origin shields / hypercaching Mid-tier caching architecture and implications Security features Delivery cost Origin egress and routing 05 01 02 03 04
  • 10. Testing methodology / criteria Origin & Transfer Considerations Load & Performance Geographic Distribution Endpoints & Players
  • 11. Using Goad to Build a Test Framework What is a goad? AWS Lambda powered, highly distributed, load testing tool written Go GOAD is a nodeJS application that executes within AWS lambda. Given the nature of it’s architecture, it’s highly distribute, relatively simple to implement, and lightweight. Requiring very little engineering engagement Check it out > https://goad.io/
  • 12. Using Goad to Simulate Globally Analyze and Compare the results Leverage AWS Athena for analyzing the data Storage the resultant data in S3 SQS queues for centralizing results Build a Goad microservice; leveraging regionalized Lambda functions for generating global requests and playback execution Build staging environments; each configured to a CDN provider Distributed Player Requests at Scale Testing Framework & Methodology
  • 13. Test Execution Strategy Using Goad Regions Assets Concurrency Tests • US EAST, US WEST, CANADA,UK, INDIA, SOUTHEAST ASIA • 10 unique & content specific video assets; per CDN • A mix of consistent and varied content types (50/50) • Identically encoded • 2 live streams • How many concurrent, sustained requests do we want to test for •1 per minute •5 per minute •10,000 per 5 minutes •100,000 per 15 minutes • Tests were executed over the course of a month + 1 week • A typical test would span several days, some as long as a week; continuous request load
  • 14. Analysis Architecture ● Goad microservice using regionalized Lambda cloud functions for generating player requests and playback ● Goad sends those requests directly to a bucket (us-east-1) ● Where a predefined AWS Glue model is leveraged against the JSON files in S3 by Athena Results
  • 15. Understanding our Test Results: Performance ● How long can I keep origin request cached on the CDN? ○ (eg; 1 month, 6 months, 1 year?) ○ what are the costs of that data renition on your provider (if applicable) ● What are my time to first frame values per provider ○ IF all player conditions are equal, how long did it take to…. ■ make a player request ■ download the manifest; queue into a player ■ download a chunk; seek to a chunk ■ begin playback ○ How does this improve my QoS experience for my clients for my consumers ■ should I make my chunk size small ■ should I invest in re-encode my library with a new codec
  • 16. Results Current CDN CDN 2 CDN 3 CDN 4 April 2019 VOD Testing to Date Testing to Date Testing to Date Total = 565.86 TB Total = 632.8.4GB Total = 5.20TB Total = 1.17GB Origin Egress = 367.44 TB Origin Egress = 2.4GB Origin Egress = 29.7GB Origin Egress = 1.01GB Total Requests = 251.73 million Total Requests = 1.22 million Total Requests = 1.55million Total Requests = 700,360 Hits = 91.06 million Hits = 1.21 million Hits = 1.37million Hits = 294,520 Misses = 159.23 million Misses = 3810 Misses = 180k Misses = 405,840 Errors(all) = 1.44 million Errors(all) = 0 Errors(all) = 900 Errors(all) = too many Avg Efficiency for April = 63% Avg Efficiency = 98.9 % Avg Efficiency = 88.7% Avg Efficiency = 42%
  • 17. AVG CDN Latency North Americatime(ms) CDN 4 CDN 1 CDN 3 CDN 2 April - May 2019
  • 18. Understanding our Test Results: Cost ● Breaking down results by KPI ○ Calculate the following (for 1 day, 1 week, 1 month) ■ How content was delivered? ■ How much did that delivery cost? ■ How many origin requests were made? ■ How much did I pay in origin transfer cost for those request? ■ What are my fixed CDN platform fees?
  • 19. Evaluating cost (don’t forget origin egress!!!) Delivery Costs (per GB), Platform Origin Egress Codecs & Advanced Features Total Cost of Ownership
  • 20. Real VOD Use Case Post- Optimization
  • 21. Conclusions ● Caching policies: the longevity of assets sitting on the CDN is important ○ Decreases overall origin requests ○ Decreases overall cdn transfer costs (if applicable) ● As a provider, origin egress (particularly when operating origins within the cloud) can make or break your delivery margins ○ Understanding origin transfer cost is imperative ● Routing and first-hop considerations ○ Origin egress transfer costs are directly related to outbound traffic egressing. To optimize routing, understand the network topology between your cloud origin and your CDN of choice (if not all of them). There can be hidden cost savings there ● Negotiate a good delivery rate
  • 22. https://www.zype.com New York City 115 Broadway, FL5 New York, NY 10006 Thanks! Check us out at https://www.zype.com