![Page 1: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/1.jpg)
Surprise! Your app is slow because the speed of light.
Clay Smith, New Relic @smithclay
Mobile Delivery Days 2016
CC0 wikimedia.org
![Page 3: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/3.jpg)
When you get a review like this...
"App slow in the UK. 1 star." -BenedictC
CC0 pixabay.com
![Page 4: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/4.jpg)
Who owns mobile app network issues?
CC0 pixabay.com
Backend/Ops
Device/Mobile Devs
"Stuff in the middle we don't control"
![Page 5: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/5.jpg)
Mobile data growth (simplified)
Am
ount
of d
ata
Now In a couple years
![Page 6: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/6.jpg)
Global Network Latency in Fiber
CC0 pixabay.com
Source Destination Great Circle Distance
RT Time in Fiber
SFO London 5,375 mi 84 ms
SFO Cape Town 10,124 mi 158 ms
1 ms at speed of light = Length of Massachusetts
![Page 7: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/7.jpg)
After one second, your flow of thought is interrupted.
CC0 pixabay.com
Milli
seco
nds
1
10
100
1000
10000
Not Magic Interrupted Too Late
https://www.nngroup.com/articles/response-times-3-important-limits/
![Page 8: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/8.jpg)
App services: more cloud, more complexity
CC0 openclipart.org
REST API
Auth - IdP #1Analytics
Ad Network
Auth - IdP #2
![Page 10: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/10.jpg)
CDNs on the Edge
CC0 pixabay.com
Cache static and dynamic content + "uncached origin fetch"
![Page 11: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/11.jpg)
#mobileperf Idea
CC0 pixabay.com
When in doubt, reduce the number of TCP connections.
![Page 13: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/13.jpg)
TCP: Create connections faster
CC0 pixabay.com
TCP Fast Open can speed up opening multiple connections.
![Page 14: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/14.jpg)
https://blog.newrelic.com/2016/02/09/http2-best-practices-web-performance/
![Page 15: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/15.jpg)
Weighing HTTP/2
CC0 pixabay.com
multiplexing, compression
Hard to debug,
backend support?
![Page 17: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/17.jpg)
Premature optimization is the source of all evil.
-Donald Knuth in 1974
CC0 pixabay.com
Don't touch that dial. (yet)
![Page 20: Ignite - Surprise! your app is slow because the speed of light](https://reader031.vdocuments.us/reader031/viewer/2022030310/58f0c3271a28ab4d0b8b45d5/html5/thumbnails/20.jpg)
Building connected mobile apps is hard. Monitoring
shouldn't be.Thanks!
Clay Smith, New Relic @smithclay
Mobile Delivery Days 2016
CC0 wikimedia.org