secrets to building and delivering amazing apps at scale · 2019. 9. 12. · faster apps on any...

35
Secrets to Building and Delivering Amazing Apps at Scale

Upload: others

Post on 26-Sep-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Secrets to Building and Delivering Amazing Apps at Scale

Page 2: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Desmond Tam – Senior Enterprise Architect Lead

@desmondtam

linkedin.com/in/desmondt

Page 3: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

https://developer.akamai.com

Page 4: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

What is an app?

Page 5: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

What is an app?

browser server

Page 6: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

What is an app?

browser

server

ios

android

Page 7: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

ios

android

What is an app?

browser api

media

datastore

Page 8: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

ios

android

What is an app?

browser api

media

datastore

dns

Page 9: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

ios

android

What is an app?

browser api

media

datastore

dns

TCP/UDP

Page 10: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

ios

android

What is an app?

browser api

media

datastore

http

TCP

Page 11: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

ios

android

What is an app?

browser api

media

datastore

http

TCP/UDP

Page 12: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Secrets to Building and Delivering Amazing Apps

at Scale

Page 13: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Three-layer architecture

Frontend Backend Network

tcp/udp tcp/udp

Page 14: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Frontend

Page 15: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Beautiful Interface Capture your audience…

Page 16: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Accessible improves UX for everybody

Page 17: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Fast & Responsive performance == user experience

Page 18: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Network Awareness Automatically adapt to any network conditions

Page 19: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Secure It is a wild west out there

Page 20: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Backend

Page 21: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Distributed Architecture Performance and fault tolerance

Page 22: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Auto-Scaling because sometimes throw more hardware at it is a valid solution

Page 23: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Performant fast backends make for faster frontends

Page 24: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Continuous Monitoring if something happens but it wasn’t logged, did it happen?

yes… yes it did.

Page 25: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

DevOps Automation react to changing conditions automatically, in real-time

Page 26: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Network

Page 27: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Distributed DNS every connection to a hostname starts with a DNS lookup

Page 28: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Protocol Optimization we’re not stuck with http/1.1 and tcp anymore

Page 29: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Latency Optimization Roundtrip distance matters a lot

Page 30: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Because the laws of physics apply…

Latency: The Enemy of Distribution

Seattle New York Bangalore

Sydney

San Francisco 17ms latency

228ms latency 77ms latency

* Load times of the average Website on a LTE mobile connection

155ms latency

Page 31: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Faster Apps on any device, anywhere

Solving the Latency Problem

Seattle New York Bangalore

Sydney

San Francisco 17ms latency

228ms latency 77ms latency

155ms latency

3 seconds

9 seconds

17 seconds

26 seconds

Page 32: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Faster Apps on any device, anywhere

Solving the Latency Problem

Seattle New York Bangalore

Sydney

San Francisco 17ms latency

228ms latency 77ms latency

155ms latency

3 seconds

9 seconds

17 seconds

26 seconds

1.5 seconds

1.5 seconds

1.5 seconds

1.5 seconds 9ms latency

9ms latency

9ms latency

9ms latency

Page 33: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Edge Compute Smart servers one hop away

Page 34: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Secrets to Building and Delivering Amazing Apps at Scale

Frontend

‐ Beautiful Interface

‐ Accessible

‐ Fast & Responsive

‐ Network Aware

‐ Secure

Network

‐ Distributed DNS

‐ Protocol Optimization

‐ Latency Optimization

‐ Edge Compute

Backend

‐ Distributed Architecture

‐ Auto-Scaling

‐ Performant

‐ Continuous Monitoring

‐ DevOps Automation

Page 35: Secrets to Building and Delivering Amazing Apps at Scale · 2019. 9. 12. · Faster Apps on any device, anywhere Solving the Latency Problem Seattle New York Bangalore Sydney San

Akamai Developer @akamaidev

Thank you

developer.akamai.com

http://bit.ly/2M5vgyR

@jjaviergarza