SlideShare una empresa de Scribd logo
1 de 25
LatencyThe King of the Mobile Experience
By Jeremy Wilson
CTO, Keek Inc.
Who am I?
Jeremy Wilson
•  18 years experience in administrating and scaling web-
based infrastructures to millions of daily users
•  8 years experience in optimizing for mobile devices
•  Currently CTO of Keek, a social video startup in Toronto
What is Latency?
la·ten·cy [leyt-n-see]:
A measure of time delay experienced in a system or network
due to various limitations in those systems or networks
What is Latency?
Person to Device
•  User Input
•  Screen Refresh
•  Transitions
•  Gestures
What is Latency?
Device to Network
• Signal Strength
• Connection type (3G, LTE)
• Device Resources
• Distance
• Buffering
What is Latency?
Network to Internet
• Bandwidth
• Traffic Shaping
• Routing
• Buffering
What is Latency?
Internet to Server
•  Service Type
•  Caching
•  Physical Resources (Disk/CPU)
•  Databases
•  Clustering
•  Networking
What is Latency?
Then double it for the response time
Maximum total response time considered acceptable by service
providers such as Google
1 second
Source: https://developers.google.com/speed/docs/insights/mobile
People
Minimum duration for perception of an event to have occurred
100 millisecondsBelow this, events are perceived as instantaneous
Source: http://www.nngroup.com/articles/response-times-3-important-limits/
People
Maximum time for flow of thought to stay uninterrupted
1 second
Source: http://www.nngroup.com/articles/response-times-3-important-limits/
People
Maximum attention span without feedback
10 seconds
Source: http://www.nngroup.com/articles/response-times-3-important-limits/
People
Traffic drop when a page takes 500ms longer to load
20%
Sales lost for every 100ms of delay
1%
Source: http://glinden.blogspot.ca/2006/11/marissa-mayer-at-web-20.html http://blog.gigaspaces.com/amazon-found-every-100ms-of-latency-cost-them-1-in-sales/
People
are impatient and easily distracted
•  Make your UI responsive
•  Minimize delays in switching screens
•  Do work in the background
•  Provide feedback (like spinners) during
long operations
•  Avoid long operations altogether
Devices
CPU power and RAM strongly effect page load and display times
Page Load Times for iPhone Devices
iPhone 5 (3G) iPhone 5 (EDGE) iPhone 4 (3G)
4.3s 4.6s 12.1s
Response Time from US AT&T Network
Devices
are slow, have unpredictable resources and rely on
remote systems you may not control
•  Use local assets
•  Cache everything
•  Offload slow jobs to APIs
•  Test on multiple devices
•  Develop for the lowest powered
device you plan to support
Networks
iPhone 5 on Rogers LTE Network to Google DNS Servers
Total routing hops Ping time
20 58ms
Laptop on 1Gb LAN to Google DNS Servers
Total routing hops Ping time
9 26ms
Mobile networks have inefficient packet routing and highly throttled traffic shaping
Networks
Even on fast WiFi networks, each connection you make has
overhead, which includes the response speed of the service
Source: https://developers.google.com/speed/docs/insights/mobile
Networks
have highly variable performance and significant
connection overhead
•  Keep packets small
•  Avoid transferring large data - send multiple
chunks of small data instead
•  Try to maintain persistent connections - avoid
making new connections
•  Test on as many networks as possible
Internet
Security means latency
•  SSL / HTTPS requires 3 or more send/receive
transactions to establish a connection
•  Encryption and decryption can add up to
20% additional connection overhead
•  Authentication methods require additional
data be transferred for each transaction
Source: http://revocation-report.x509labs.com
Internet
security is important, but use it intelligently
•  Consider SSL when designing your app and
build the delays it imposes in from the
beginning
•  Restrict SSL connections to sensitive
communication only, such as login or user
updates
•  Use more efficient ciphers
Servers
Maximum speed means maintaining control and doing it yourself
•  SaaS/PaaS systems are optimized for general
performance, not specific to your app
•  Managed servers are maintained by general
staff and usually have 24 hour response times
•  Self-managed Cloud servers are hosted on
shared systems and do not offer consistent
performance
Servers
The Cloud is slow compared to physical hardware
Amazon EC2 Eight Extra Large (8 core)
Max Requests / second Response Time
180,000 2,000ms
Softlayer dual Intel Xeon X5670 (6 core)
Max Requests / second Response Time
500,000 1,500msSource: http://lowlatencyweb.wordpress.com/2012/03/21/modern-http-servers-are-fast-ec2-is-not/
Servers
Internal networking between servers takes time and is highly variable in the Cloud
Amazon t1.micro US-East-1c Zone (100 packets)
Average Ping Time Maximum Ping Time
0.941ms 8.985ms
Dedicated 10Gb Ethernet Network (100 packets)
Average Ping Time Maximum Ping Time
0.136ms 0.204ms
Source: http://lowlatencyweb.wordpress.com/2012/03/21/modern-http-servers-are-fast-ec2-is-not/
Servers
perform best on real hardware, but there is a
balance between cost and maintainability
•  Physical servers require administration and
maintenance and the skilled personnel to
perform it
•  Cloud is cheaper to start but more expensive
as you grow - consider hybrid or migrating
after gaining market traction
Hate Latency?
We’re hiring.
jobs@keek.com

Más contenido relacionado

La actualidad más candente

6 microservice architecture
6 microservice architecture6 microservice architecture
6 microservice architectureLen Bass
 
3 the cloud
3 the cloud 3 the cloud
3 the cloud Len Bass
 
ThousandEyes Alerting Essentials for Your Network
ThousandEyes Alerting Essentials for Your NetworkThousandEyes Alerting Essentials for Your Network
ThousandEyes Alerting Essentials for Your NetworkThousandEyes
 
How CDNs Can improve Mobile Application Performance
How CDNs Can improve Mobile Application PerformanceHow CDNs Can improve Mobile Application Performance
How CDNs Can improve Mobile Application PerformanceCloudflare
 
4 container management
4  container management4  container management
4 container managementLen Bass
 
Cloud concepts-and-technologies
Cloud concepts-and-technologiesCloud concepts-and-technologies
Cloud concepts-and-technologiesParag Patil
 
Why Many Websites are still Insecure (and How to Fix Them)
Why Many Websites are still Insecure (and How to Fix Them)Why Many Websites are still Insecure (and How to Fix Them)
Why Many Websites are still Insecure (and How to Fix Them)Cloudflare
 
E2 evc 3-2-1-rule - mikeresseler
E2 evc   3-2-1-rule - mikeresselerE2 evc   3-2-1-rule - mikeresseler
E2 evc 3-2-1-rule - mikeresselerMike Resseler
 
A Year of “Testing” the Cloud for Development and Test
A Year of “Testing” the Cloud for Development and TestA Year of “Testing” the Cloud for Development and Test
A Year of “Testing” the Cloud for Development and TestTechWell
 
Venom vulnerability Overview and a basic demo
Venom vulnerability Overview and a basic demoVenom vulnerability Overview and a basic demo
Venom vulnerability Overview and a basic demoAkash Mahajan
 
New Products Overview: Use Cases and Demos
New Products Overview: Use Cases and DemosNew Products Overview: Use Cases and Demos
New Products Overview: Use Cases and DemosCaitlin Magat
 
Latest Trends in Web Application Security
Latest Trends in Web Application SecurityLatest Trends in Web Application Security
Latest Trends in Web Application SecurityCloudflare
 
Endpoint Agent Part 1: End User Experience
Endpoint Agent Part 1: End User ExperienceEndpoint Agent Part 1: End User Experience
Endpoint Agent Part 1: End User ExperienceThousandEyes
 
Team 4 Presents: The Client Server Model
Team 4 Presents: The Client Server Model Team 4 Presents: The Client Server Model
Team 4 Presents: The Client Server Model anniekate93
 
IETF 112: Internet centrality and its impact on routing
IETF 112: Internet centrality and its impact on routingIETF 112: Internet centrality and its impact on routing
IETF 112: Internet centrality and its impact on routingAPNIC
 
[Webinar] DDoS Pentester Reveals: How Hackers Find Your Website’s Weak Points...
[Webinar] DDoS Pentester Reveals: How Hackers Find Your Website’s Weak Points...[Webinar] DDoS Pentester Reveals: How Hackers Find Your Website’s Weak Points...
[Webinar] DDoS Pentester Reveals: How Hackers Find Your Website’s Weak Points...Imperva Incapsula
 
Pragmatic Container Security (Sponsored by Trend Micro) - AWS Summit Sydney
Pragmatic Container Security (Sponsored by Trend Micro) - AWS Summit SydneyPragmatic Container Security (Sponsored by Trend Micro) - AWS Summit Sydney
Pragmatic Container Security (Sponsored by Trend Micro) - AWS Summit SydneyAmazon Web Services
 

La actualidad más candente (20)

6 microservice architecture
6 microservice architecture6 microservice architecture
6 microservice architecture
 
3 the cloud
3 the cloud 3 the cloud
3 the cloud
 
ThousandEyes Alerting Essentials for Your Network
ThousandEyes Alerting Essentials for Your NetworkThousandEyes Alerting Essentials for Your Network
ThousandEyes Alerting Essentials for Your Network
 
Redis Security
Redis SecurityRedis Security
Redis Security
 
How CDNs Can improve Mobile Application Performance
How CDNs Can improve Mobile Application PerformanceHow CDNs Can improve Mobile Application Performance
How CDNs Can improve Mobile Application Performance
 
4 container management
4  container management4  container management
4 container management
 
Cloud concepts-and-technologies
Cloud concepts-and-technologiesCloud concepts-and-technologies
Cloud concepts-and-technologies
 
Why Many Websites are still Insecure (and How to Fix Them)
Why Many Websites are still Insecure (and How to Fix Them)Why Many Websites are still Insecure (and How to Fix Them)
Why Many Websites are still Insecure (and How to Fix Them)
 
Hybrid cloud monitoring - Mumbai seminar
Hybrid cloud monitoring - Mumbai seminarHybrid cloud monitoring - Mumbai seminar
Hybrid cloud monitoring - Mumbai seminar
 
E2 evc 3-2-1-rule - mikeresseler
E2 evc   3-2-1-rule - mikeresselerE2 evc   3-2-1-rule - mikeresseler
E2 evc 3-2-1-rule - mikeresseler
 
A Year of “Testing” the Cloud for Development and Test
A Year of “Testing” the Cloud for Development and TestA Year of “Testing” the Cloud for Development and Test
A Year of “Testing” the Cloud for Development and Test
 
Venom vulnerability Overview and a basic demo
Venom vulnerability Overview and a basic demoVenom vulnerability Overview and a basic demo
Venom vulnerability Overview and a basic demo
 
New Products Overview: Use Cases and Demos
New Products Overview: Use Cases and DemosNew Products Overview: Use Cases and Demos
New Products Overview: Use Cases and Demos
 
Latest Trends in Web Application Security
Latest Trends in Web Application SecurityLatest Trends in Web Application Security
Latest Trends in Web Application Security
 
Endpoint Agent Part 1: End User Experience
Endpoint Agent Part 1: End User ExperienceEndpoint Agent Part 1: End User Experience
Endpoint Agent Part 1: End User Experience
 
Team 4 Presents: The Client Server Model
Team 4 Presents: The Client Server Model Team 4 Presents: The Client Server Model
Team 4 Presents: The Client Server Model
 
IETF 112: Internet centrality and its impact on routing
IETF 112: Internet centrality and its impact on routingIETF 112: Internet centrality and its impact on routing
IETF 112: Internet centrality and its impact on routing
 
[Webinar] DDoS Pentester Reveals: How Hackers Find Your Website’s Weak Points...
[Webinar] DDoS Pentester Reveals: How Hackers Find Your Website’s Weak Points...[Webinar] DDoS Pentester Reveals: How Hackers Find Your Website’s Weak Points...
[Webinar] DDoS Pentester Reveals: How Hackers Find Your Website’s Weak Points...
 
Redis presentation
Redis presentation Redis presentation
Redis presentation
 
Pragmatic Container Security (Sponsored by Trend Micro) - AWS Summit Sydney
Pragmatic Container Security (Sponsored by Trend Micro) - AWS Summit SydneyPragmatic Container Security (Sponsored by Trend Micro) - AWS Summit Sydney
Pragmatic Container Security (Sponsored by Trend Micro) - AWS Summit Sydney
 

Destacado

Observatoire e pub sri 2015
Observatoire e pub sri 2015Observatoire e pub sri 2015
Observatoire e pub sri 2015Philippe Dumont
 
Infographie : Les enjeux marketing mobile en France
Infographie : Les enjeux marketing mobile en FranceInfographie : Les enjeux marketing mobile en France
Infographie : Les enjeux marketing mobile en FrancePhilippe Dumont
 
The Future of Mobile Security
The Future of Mobile SecurityThe Future of Mobile Security
The Future of Mobile SecurityPhilippe Dumont
 
Infographie shopping mobile : Chiffres et tendances 2016 en France et dans le...
Infographie shopping mobile : Chiffres et tendances 2016 en France et dans le...Infographie shopping mobile : Chiffres et tendances 2016 en France et dans le...
Infographie shopping mobile : Chiffres et tendances 2016 en France et dans le...Philippe Dumont
 
E marketer webinar b2b mobile marketing trends 2016
E marketer webinar b2b mobile marketing trends 2016E marketer webinar b2b mobile marketing trends 2016
E marketer webinar b2b mobile marketing trends 2016Philippe Dumont
 
Building your Mobile App: Budget, Planning and Best Practices
Building your Mobile App: Budget, Planning and Best PracticesBuilding your Mobile App: Budget, Planning and Best Practices
Building your Mobile App: Budget, Planning and Best PracticesPhilippe Dumont
 
Bank of America 2015 Consumer Mobility Report
Bank of America 2015 Consumer Mobility Report Bank of America 2015 Consumer Mobility Report
Bank of America 2015 Consumer Mobility Report Philippe Dumont
 
Grande distribution et applications mobiles en France
Grande distribution et applications mobiles en FranceGrande distribution et applications mobiles en France
Grande distribution et applications mobiles en Franceservicesmobiles.fr
 
Enjeux du marketing mobile 2016
Enjeux du marketing mobile 2016Enjeux du marketing mobile 2016
Enjeux du marketing mobile 2016Philippe Dumont
 
Etude sur les usages mobiles 2013 - Deloitte
Etude sur les usages mobiles 2013 - DeloitteEtude sur les usages mobiles 2013 - Deloitte
Etude sur les usages mobiles 2013 - Deloitteservicesmobiles.fr
 
App Store Optimization : boostez votre appli mobile sur les stores
App Store Optimization : boostez votre appli mobile sur les storesApp Store Optimization : boostez votre appli mobile sur les stores
App Store Optimization : boostez votre appli mobile sur les storesVirginie Clève - largow ☕️
 
Les nouveaux enjeux de la distribution de contenu : Google AMP, Facebook Inst...
Les nouveaux enjeux de la distribution de contenu : Google AMP, Facebook Inst...Les nouveaux enjeux de la distribution de contenu : Google AMP, Facebook Inst...
Les nouveaux enjeux de la distribution de contenu : Google AMP, Facebook Inst...Virginie Clève - largow ☕️
 
WCDMA optimization & Drive test analysis
WCDMA optimization & Drive test analysisWCDMA optimization & Drive test analysis
WCDMA optimization & Drive test analysisTABREZ KHAN
 

Destacado (20)

Observatoire e pub sri 2015
Observatoire e pub sri 2015Observatoire e pub sri 2015
Observatoire e pub sri 2015
 
3 g scft
3 g scft3 g scft
3 g scft
 
Infographie : Les enjeux marketing mobile en France
Infographie : Les enjeux marketing mobile en FranceInfographie : Les enjeux marketing mobile en France
Infographie : Les enjeux marketing mobile en France
 
The Future of Mobile Security
The Future of Mobile SecurityThe Future of Mobile Security
The Future of Mobile Security
 
Infographie shopping mobile : Chiffres et tendances 2016 en France et dans le...
Infographie shopping mobile : Chiffres et tendances 2016 en France et dans le...Infographie shopping mobile : Chiffres et tendances 2016 en France et dans le...
Infographie shopping mobile : Chiffres et tendances 2016 en France et dans le...
 
E marketer webinar b2b mobile marketing trends 2016
E marketer webinar b2b mobile marketing trends 2016E marketer webinar b2b mobile marketing trends 2016
E marketer webinar b2b mobile marketing trends 2016
 
Building your Mobile App: Budget, Planning and Best Practices
Building your Mobile App: Budget, Planning and Best PracticesBuilding your Mobile App: Budget, Planning and Best Practices
Building your Mobile App: Budget, Planning and Best Practices
 
Bank of America 2015 Consumer Mobility Report
Bank of America 2015 Consumer Mobility Report Bank of America 2015 Consumer Mobility Report
Bank of America 2015 Consumer Mobility Report
 
Grande distribution et applications mobiles en France
Grande distribution et applications mobiles en FranceGrande distribution et applications mobiles en France
Grande distribution et applications mobiles en France
 
Enjeux du marketing mobile 2016
Enjeux du marketing mobile 2016Enjeux du marketing mobile 2016
Enjeux du marketing mobile 2016
 
Etude sur les usages mobiles 2013 - Deloitte
Etude sur les usages mobiles 2013 - DeloitteEtude sur les usages mobiles 2013 - Deloitte
Etude sur les usages mobiles 2013 - Deloitte
 
Part 3 optimization 3G
Part 3 optimization 3GPart 3 optimization 3G
Part 3 optimization 3G
 
App Store Optimization : boostez votre appli mobile sur les stores
App Store Optimization : boostez votre appli mobile sur les storesApp Store Optimization : boostez votre appli mobile sur les stores
App Store Optimization : boostez votre appli mobile sur les stores
 
Les nouveaux enjeux de la distribution de contenu : Google AMP, Facebook Inst...
Les nouveaux enjeux de la distribution de contenu : Google AMP, Facebook Inst...Les nouveaux enjeux de la distribution de contenu : Google AMP, Facebook Inst...
Les nouveaux enjeux de la distribution de contenu : Google AMP, Facebook Inst...
 
TEMS PARAMETERS
TEMS PARAMETERSTEMS PARAMETERS
TEMS PARAMETERS
 
3g & 4g technology
3g & 4g technology3g & 4g technology
3g & 4g technology
 
Google AMP : le guide complet
Google AMP : le guide completGoogle AMP : le guide complet
Google AMP : le guide complet
 
WCDMA optimization & Drive test analysis
WCDMA optimization & Drive test analysisWCDMA optimization & Drive test analysis
WCDMA optimization & Drive test analysis
 
Le site internet est-il (bientôt) mort ?
Le site internet est-il (bientôt) mort ?Le site internet est-il (bientôt) mort ?
Le site internet est-il (bientôt) mort ?
 
3 g and 4g final ppt
3 g and 4g final ppt3 g and 4g final ppt
3 g and 4g final ppt
 

Similar a Latency - The King of the Mobile Experience

Accelerating HPC with Ethernet
Accelerating HPC with EthernetAccelerating HPC with Ethernet
Accelerating HPC with Ethernetinside-BigData.com
 
Mma 10g r2_936
Mma 10g r2_936Mma 10g r2_936
Mma 10g r2_936Alf Baez
 
Tech 2 tech low latency networking on Janet presentation
Tech 2 tech low latency networking on Janet presentationTech 2 tech low latency networking on Janet presentation
Tech 2 tech low latency networking on Janet presentationJisc
 
networking hypherlink Group 2 presentation
networking hypherlink Group 2 presentationnetworking hypherlink Group 2 presentation
networking hypherlink Group 2 presentationHerson Franz Ugale
 
Serhiy Kalinets "Embracing architectural challenges in the modern .NET world"
Serhiy Kalinets "Embracing architectural challenges in the modern .NET world"Serhiy Kalinets "Embracing architectural challenges in the modern .NET world"
Serhiy Kalinets "Embracing architectural challenges in the modern .NET world"Fwdays
 
Helen Tabunshchyk "Handling large amounts of traffic on the Edge"
Helen Tabunshchyk "Handling large amounts of traffic on the Edge"Helen Tabunshchyk "Handling large amounts of traffic on the Edge"
Helen Tabunshchyk "Handling large amounts of traffic on the Edge"Fwdays
 
Acceleration_and_Security_draft_v2
Acceleration_and_Security_draft_v2Acceleration_and_Security_draft_v2
Acceleration_and_Security_draft_v2Srinivasa Addepalli
 
3 Ways to Connect to the Oracle Cloud
3 Ways to Connect to the Oracle Cloud3 Ways to Connect to the Oracle Cloud
3 Ways to Connect to the Oracle CloudSimon Haslam
 
Part 2: Cloudera’s Operational Database: Unlocking New Benefits in the Cloud
Part 2: Cloudera’s Operational Database: Unlocking New Benefits in the CloudPart 2: Cloudera’s Operational Database: Unlocking New Benefits in the Cloud
Part 2: Cloudera’s Operational Database: Unlocking New Benefits in the CloudCloudera, Inc.
 
D1-3-Signaling
D1-3-SignalingD1-3-Signaling
D1-3-SignalingOleg Levy
 
KB Seminars: Working with Technology - Hosting; 10/13
KB Seminars: Working with Technology - Hosting; 10/13KB Seminars: Working with Technology - Hosting; 10/13
KB Seminars: Working with Technology - Hosting; 10/13MDIF
 
What's New in NGINX Plus R7?
What's New in NGINX Plus R7?What's New in NGINX Plus R7?
What's New in NGINX Plus R7?NGINX, Inc.
 
Networking course khurram shahzad
Networking course khurram shahzadNetworking course khurram shahzad
Networking course khurram shahzadkhurrak_shahzad
 
A non-technical introduction to Cloud Computing
A non-technical introduction to Cloud ComputingA non-technical introduction to Cloud Computing
A non-technical introduction to Cloud ComputingWilliam Pourmajidi
 
The Application-Centric Cloud: Why the Network Still Matters
The Application-Centric Cloud:  Why the Network Still MattersThe Application-Centric Cloud:  Why the Network Still Matters
The Application-Centric Cloud: Why the Network Still MattersCisco Canada
 

Similar a Latency - The King of the Mobile Experience (20)

Accelerating HPC with Ethernet
Accelerating HPC with EthernetAccelerating HPC with Ethernet
Accelerating HPC with Ethernet
 
Mma 10g r2_936
Mma 10g r2_936Mma 10g r2_936
Mma 10g r2_936
 
Tech 2 tech low latency networking on Janet presentation
Tech 2 tech low latency networking on Janet presentationTech 2 tech low latency networking on Janet presentation
Tech 2 tech low latency networking on Janet presentation
 
Network
NetworkNetwork
Network
 
networking hypherlink Group 2 presentation
networking hypherlink Group 2 presentationnetworking hypherlink Group 2 presentation
networking hypherlink Group 2 presentation
 
Serhiy Kalinets "Embracing architectural challenges in the modern .NET world"
Serhiy Kalinets "Embracing architectural challenges in the modern .NET world"Serhiy Kalinets "Embracing architectural challenges in the modern .NET world"
Serhiy Kalinets "Embracing architectural challenges in the modern .NET world"
 
IBM Aspera overview
IBM Aspera overview IBM Aspera overview
IBM Aspera overview
 
Helen Tabunshchyk "Handling large amounts of traffic on the Edge"
Helen Tabunshchyk "Handling large amounts of traffic on the Edge"Helen Tabunshchyk "Handling large amounts of traffic on the Edge"
Helen Tabunshchyk "Handling large amounts of traffic on the Edge"
 
Acceleration_and_Security_draft_v2
Acceleration_and_Security_draft_v2Acceleration_and_Security_draft_v2
Acceleration_and_Security_draft_v2
 
3 Ways to Connect to the Oracle Cloud
3 Ways to Connect to the Oracle Cloud3 Ways to Connect to the Oracle Cloud
3 Ways to Connect to the Oracle Cloud
 
Part 2: Cloudera’s Operational Database: Unlocking New Benefits in the Cloud
Part 2: Cloudera’s Operational Database: Unlocking New Benefits in the CloudPart 2: Cloudera’s Operational Database: Unlocking New Benefits in the Cloud
Part 2: Cloudera’s Operational Database: Unlocking New Benefits in the Cloud
 
oracle.pptx
oracle.pptxoracle.pptx
oracle.pptx
 
D1-3-Signaling
D1-3-SignalingD1-3-Signaling
D1-3-Signaling
 
KB Seminars: Working with Technology - Hosting; 10/13
KB Seminars: Working with Technology - Hosting; 10/13KB Seminars: Working with Technology - Hosting; 10/13
KB Seminars: Working with Technology - Hosting; 10/13
 
Unit 3
Unit 3Unit 3
Unit 3
 
What's New in NGINX Plus R7?
What's New in NGINX Plus R7?What's New in NGINX Plus R7?
What's New in NGINX Plus R7?
 
Networking course khurram shahzad
Networking course khurram shahzadNetworking course khurram shahzad
Networking course khurram shahzad
 
A non-technical introduction to Cloud Computing
A non-technical introduction to Cloud ComputingA non-technical introduction to Cloud Computing
A non-technical introduction to Cloud Computing
 
The Application-Centric Cloud: Why the Network Still Matters
The Application-Centric Cloud:  Why the Network Still MattersThe Application-Centric Cloud:  Why the Network Still Matters
The Application-Centric Cloud: Why the Network Still Matters
 
INT_Ch17.pptx
INT_Ch17.pptxINT_Ch17.pptx
INT_Ch17.pptx
 

Último

Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
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 Servicegiselly40
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
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 MenDelhi Call girls
 
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.pptxEarley Information Science
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
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 interpreternaman860154
 
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 AutomationSafe Software
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
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...Igalia
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
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 Processorsdebabhi2
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 

Último (20)

Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
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
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
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
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 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
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
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...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
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
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

Latency - The King of the Mobile Experience

  • 1. LatencyThe King of the Mobile Experience By Jeremy Wilson CTO, Keek Inc.
  • 2. Who am I? Jeremy Wilson •  18 years experience in administrating and scaling web- based infrastructures to millions of daily users •  8 years experience in optimizing for mobile devices •  Currently CTO of Keek, a social video startup in Toronto
  • 3. What is Latency? la·ten·cy [leyt-n-see]: A measure of time delay experienced in a system or network due to various limitations in those systems or networks
  • 4. What is Latency? Person to Device •  User Input •  Screen Refresh •  Transitions •  Gestures
  • 5. What is Latency? Device to Network • Signal Strength • Connection type (3G, LTE) • Device Resources • Distance • Buffering
  • 6. What is Latency? Network to Internet • Bandwidth • Traffic Shaping • Routing • Buffering
  • 7. What is Latency? Internet to Server •  Service Type •  Caching •  Physical Resources (Disk/CPU) •  Databases •  Clustering •  Networking
  • 8. What is Latency? Then double it for the response time Maximum total response time considered acceptable by service providers such as Google 1 second Source: https://developers.google.com/speed/docs/insights/mobile
  • 9. People Minimum duration for perception of an event to have occurred 100 millisecondsBelow this, events are perceived as instantaneous Source: http://www.nngroup.com/articles/response-times-3-important-limits/
  • 10. People Maximum time for flow of thought to stay uninterrupted 1 second Source: http://www.nngroup.com/articles/response-times-3-important-limits/
  • 11. People Maximum attention span without feedback 10 seconds Source: http://www.nngroup.com/articles/response-times-3-important-limits/
  • 12. People Traffic drop when a page takes 500ms longer to load 20% Sales lost for every 100ms of delay 1% Source: http://glinden.blogspot.ca/2006/11/marissa-mayer-at-web-20.html http://blog.gigaspaces.com/amazon-found-every-100ms-of-latency-cost-them-1-in-sales/
  • 13. People are impatient and easily distracted •  Make your UI responsive •  Minimize delays in switching screens •  Do work in the background •  Provide feedback (like spinners) during long operations •  Avoid long operations altogether
  • 14. Devices CPU power and RAM strongly effect page load and display times Page Load Times for iPhone Devices iPhone 5 (3G) iPhone 5 (EDGE) iPhone 4 (3G) 4.3s 4.6s 12.1s Response Time from US AT&T Network
  • 15. Devices are slow, have unpredictable resources and rely on remote systems you may not control •  Use local assets •  Cache everything •  Offload slow jobs to APIs •  Test on multiple devices •  Develop for the lowest powered device you plan to support
  • 16. Networks iPhone 5 on Rogers LTE Network to Google DNS Servers Total routing hops Ping time 20 58ms Laptop on 1Gb LAN to Google DNS Servers Total routing hops Ping time 9 26ms Mobile networks have inefficient packet routing and highly throttled traffic shaping
  • 17. Networks Even on fast WiFi networks, each connection you make has overhead, which includes the response speed of the service Source: https://developers.google.com/speed/docs/insights/mobile
  • 18. Networks have highly variable performance and significant connection overhead •  Keep packets small •  Avoid transferring large data - send multiple chunks of small data instead •  Try to maintain persistent connections - avoid making new connections •  Test on as many networks as possible
  • 19. Internet Security means latency •  SSL / HTTPS requires 3 or more send/receive transactions to establish a connection •  Encryption and decryption can add up to 20% additional connection overhead •  Authentication methods require additional data be transferred for each transaction Source: http://revocation-report.x509labs.com
  • 20. Internet security is important, but use it intelligently •  Consider SSL when designing your app and build the delays it imposes in from the beginning •  Restrict SSL connections to sensitive communication only, such as login or user updates •  Use more efficient ciphers
  • 21. Servers Maximum speed means maintaining control and doing it yourself •  SaaS/PaaS systems are optimized for general performance, not specific to your app •  Managed servers are maintained by general staff and usually have 24 hour response times •  Self-managed Cloud servers are hosted on shared systems and do not offer consistent performance
  • 22. Servers The Cloud is slow compared to physical hardware Amazon EC2 Eight Extra Large (8 core) Max Requests / second Response Time 180,000 2,000ms Softlayer dual Intel Xeon X5670 (6 core) Max Requests / second Response Time 500,000 1,500msSource: http://lowlatencyweb.wordpress.com/2012/03/21/modern-http-servers-are-fast-ec2-is-not/
  • 23. Servers Internal networking between servers takes time and is highly variable in the Cloud Amazon t1.micro US-East-1c Zone (100 packets) Average Ping Time Maximum Ping Time 0.941ms 8.985ms Dedicated 10Gb Ethernet Network (100 packets) Average Ping Time Maximum Ping Time 0.136ms 0.204ms Source: http://lowlatencyweb.wordpress.com/2012/03/21/modern-http-servers-are-fast-ec2-is-not/
  • 24. Servers perform best on real hardware, but there is a balance between cost and maintainability •  Physical servers require administration and maintenance and the skilled personnel to perform it •  Cloud is cheaper to start but more expensive as you grow - consider hybrid or migrating after gaining market traction