SlideShare a Scribd company logo
1 of 111
Download to read offline
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential1
50 ways to ruin
your TTFB
April, 2019
Tim Vereecke, Web Performance Architect
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential2
Redirect time
2019
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential3
Redirect time
April 4th
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential4
Redirect time
TTFB
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential5
First Paint
(FP)
First Contentful
Paint (FCP)
First Meaningful
Paint (FMP)
Time to
Interactive (TTI)
Time to Visually
ready (TVR)
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential6
DOM
CSSOM
What is important?
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential7
DOM
CSSOM
What is important?
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential8
DOM
CSSOM
What is important?
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential9
Performance tuning
Do it faster
Do less
Change order
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential10
Performance tuning
Do it faster
Do less
Change order
(get rid of noise)
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential11
How it works
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential12
How it works
dns
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential13
How it works
dns connect
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential14
How it works
dns connect ssl
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential15
How it works
dns connect ssl request
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential16
How it works
dns connect ssl request response
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential17
How it works
dns connect ssl request responsecache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential18
How it works
dns connect ssl request responseredirect cache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential19
How it works
dns connect ssl request responseredirect cache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential20
How it works
dns connect ssl request responseredirect cache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential21
How it works
dns connect ssl request responseredirect cache
A?
B?
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential22
How it works
dns connect ssl request responseredirect cache
A?
B
mPulse Backend Time
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential23
How it works
dns connect ssl request responseredirect cache
A?
B
mPulse Backend Time
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential24
How it works
dns connect ssl request responseredirect cache
A?
B
mPulse Backend Time
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential25
How it works
dns connect ssl request responseredirect cache
A?
B
mPulse Backend Time
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential26
How it works
dns connect ssl request responseredirect cache
A?
B
mPulse Backend Time
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential27
How it works
dns connect ssl request responseredirect cache
A?
B
mPulse Backend Time
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential28
How it works
dns connect ssl request responseredirect cache
A?
B
mPulse Backend Time
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential29
How it works
dns connect ssl request responseredirect cache
A?
B
mPulse Backend Time
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential30
Analysis best practices
dns connect ssl request responseredirect cache
A?
B
mPulse Backend Time
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential31
Analysis best practices
dns connect ssl request responseredirect cache
A?
B
mPulse Backend Time
Custom timer
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential32
Analysis best practices
dns connect ssl request responseredirect cache
A
B
mPulse Backend Time
Custom timer Cust. timer
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential33
Analysis best practices
dns connect ssl request responseredirect cache
A
B
mPulse Backend Time
Custom timer Cust. timer
dns connect ssl request responseredirect cache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential34
Analysis best practices
dns connect ssl request responseredirect cache
A
B
mPulse Backend Time
Custom timer Cust. timer
dns connect ssl request responseredirect cache
dns connect ssl request responseredirect cache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential35
Analysis best practices
dns connect ssl request responseredirect cache
A
B
mPulse Backend Time
Custom timer
dns connect ssl request responseredirect cache
dns connect ssl request responseredirect cache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential36
Analysis best practices
dns connect ssl request responseredirect cache
A
B
mPulse Backend Time
Custom timer Cust. timer
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential37
Analysis best practices
dns connect ssl request responseredirect cache
A
B
mPulse Backend Time
Custom timer Cust. timer
Custom timer
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential38
Analysis best practices
dns connect ssl request responseredirect cache
A
B
mPulse Backend Time
redirect ttfb
base page
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential39
How it works
dns connect ssl request responseredirect cache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential40
How it works
dns connect ssl request responseredirect cache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential41
How it works
dns connect ssl request responseredirect cache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential42
How it works
dns connect ssl request responseredirect cache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential43
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential44
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential45
dataLayer.landingpage='Yes';
if(document.referrer.indexOf('www.scalemates.com')>-1){
dataLayer.landingpage='No';
}
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential46
Tuning best practices
dns connect ssl request responseredirect cache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential47
Tuning best practices
dns connect ssl request responseredirect cache
Client-Edge
Edge-Origin
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential48
Tuning best practices
Redirects Client-Edge Edge-Origin
Avoid v
Consolidate v v
Execute them at the edge v
Cache them v v
HSTS Header v
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential49
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential50
DNS Client-Edge Edge-Origin
Increase DNS TTL v v
Consolidate DNS hostnames v v
DNS prefresh/async v
Tuning best practices
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential51
TCP Client-Edge Edge-Origin
Pconns (301s - or modify Akamai) v
Don’t hardcode IP v
Tuning best practices
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential52
SSL Handshake Client-Edge Edge-Origin
Use fast ciphers v v
OCSP Stapling v v
TLS 1.3 v v
Avoid large SAN’s v v
Tuning best practices
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential53
Dynamic Client-Edge Edge-Origin
SureRoute (TTL/Object size) v
Compression (Check Via header) v v
Response buffering v
WAF Outbound rules v
Prefetching needed? v
ESI v
Tuning best practices
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential54
Dynamic Client-Edge Edge-Origin
Config complexity v v
Tuning best practices
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential55
Caching Client-Edge Edge-Origin
Cache as much as you can v v
Tiered Distribution v
FastPurge for Long TTL’s v
Check Vary header v
Cache prefreshing v
Tuning best practices
Accelerating super dynamic content
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential57
Why do you cache?
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential58
Edge hits for 1 object
Time
Edge view
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential59
Edge hits for 1 object
Time
Edge view
TTL TTL
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential60
Edge hits for 1 object
Time
Edge view
TTL TTL
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential61
Edge hits for 1 object
ms
Time
Edge view
TTL TTL
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential62
Edge hits for 1 object
ms
Time
Edge view
TTL TTL
Performance
risk
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential63
Edge hits for 1 object
ms
Time
Edge view
TTL TTL
ms
Time
Origin view
Performance
risk
Scalability risk
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential64
Edge hits for 1 object
ms
Time
Edge view
TTL TTL
ms
Time
Origin view
Performance
risk
Scalability risk
Out of sync risk
Version X Version X+1
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential65
Trade offs?
ms
Time
Edge view
TTL TTL
ms
Time
Origin view
Performance
risk
Scalability risk
Out of sync risk
Version X Version X+1
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential66
Is there a magic bullet?
ms
Time
Edge view
TTL TTL
ms
Time
Origin view
Performance
risk
Scalability risk
Out of sync risk
Version X Version X+1
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential67
Prefreshing
ms
Time
Edge view
TTL TTL
ms
Time
Origin view
Version X Version X+1
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential68
Prefreshing
ms
Time
Edge view
TTL TTL
ms
Time
Origin view
Version X Version X+1
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential69
Prefreshing
ms
Time
Edge view
TTL TTL
ms
Time
Origin view
Version X Version X+1
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential70
Prefreshing
ms
Time
Edge view
TTL TTL
ms
Time
Origin view
Version X Version X+1
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential71
Prefreshing
ms
Time
Edge view
TTL
TTL
ms
Time
Origin view
Version X Version X+1
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential72
Prefreshing
ms
Time
Edge view
TTL
TTL
ms
Time
Origin view
Version X Version X+1
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential73
Prefreshing
ms
Time
Edge view
TTL
TTL
ms
Time
Origin view
Version X Version X+1
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential74
Impact
ms
Time
Edge view
TTL
TTL
ms
Time
Origin view
Version X Version X+1
Performance risk
reduced
Scalability risk
increased*
Out of sync risk reduced
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential75
Tradeoffs
ms
Time
Edge view
TTL
TTL
ms
Time
Origin view
Version X Version X+1
Performance
risk
Scalability risk
Out of sync risk
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential76
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential77
1 session = 1 or more pages
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential78
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential79
Session limitations
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential80
Option 1: Cache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential81
Option 1: Cache
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential82
Option 2: 100% Dynamic
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential83
Option 2: 100% Dynamic
Performance
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential84
Option 3: XHR
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential85
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential86
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential87
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential88
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential89
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential90
Option 4: ESI
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential91
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential92
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential93
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential94
header(Edge-Control: dca="esi',false);
<esi:include src="/esi/sidebox-all.php” ttl=”240s"/>
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential95
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
Online Online Online
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential96
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
Online Online Online
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential97
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
Online Online Online
Generic 30
days
Generic
30 days
Generic
30 days
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential98
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
Online Online Online
Generic 30
days
Generic
30 days
Generic
30 days
PDP
30 days
PDP
30 days
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential99
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
Online Online Online
Generic 30
days
Generic
30 days
Generic
30 days
Home
30 days
PDP
30 days
PDP
30 days
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential100
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
Online Online Online
Generic 30
days
Generic
30 days
Generic
30 days
Home
30 days
PDP
30 days
PDP
30 days
Home
4 hours
Specific
dynamic
Specific
dynamic
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential101
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
Online Online Online
Generic 30
days
Generic
30 days
Generic
30 days
Home
30 days
PDP
30 days
PDP
30 days
Home
4 hours
Specific
dynamic
Specific
dynamic
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential102
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
2min 2min 2min
Generic 30
days
Generic
30 days
Generic
30 days
Home
30 days
PDP
30 days
PDP
30 days
Home
4 hours
Specific
dynamic
Specific
dynamic
ESI Use cases
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential103
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
2min 2min 2min
Generic 30
days
Generic
30 days
Generic
30 days
Home
30 days
PDP
30 days
PDP
30 days
Home
4 hours
Specific
dynamic
Specific
dynamic
ESI Use cases
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential104
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
4mins 4mins 4mins
Generic 30
days
Generic
30 days
Generic
30 days
Home
30 days
PDP
30 days
PDP
30 days
Home
4 hours
Specific
dynamic
Specific
dynamic
ESI Use cases
4mins 0s 0s
1) Increase TTL of cacheable pages by injecting lower TTL components
2) Increase cache efficiency by executing (component) logic at the Edge
3) Reduce weight of dynamic requests by injecting high TTL components
Increased (perceived) performance and consistency
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential105
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
4mins 4mins 4mins
Generic 30
days
Generic
30 days
Generic
30 days
Home
30 days
PDP
30 days
PDP
30 days
Home
4 hours
Specific
dynamic
Specific
dynamic
Results
4mins 0s 0s
Increased offload
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential106
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential107
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential108
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
4mins 4mins 4mins
Generic 30
days
Generic
30 days
Generic
30 days
Home
30 days
PDP
30 days
PDP
30 days
Home
4 hours
Specific
dynamic
Specific
dynamic
Results
4mins 0s 0s
Increased (perceived) performance and consistency
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential109
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
4mins 4mins 4mins
Generic 30
days
Generic
30 days
Generic
30 days
Home
30 days
PDP
30 days
PDP
30 days
Home
4 hours
Specific
dynamic
Specific
dynamic
Results
4mins 0s 0s
Increased (perceived) performance and consistency
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential110
Content
Header
Side
Box
PDP #1Homepage (1x)
Content
Footer
Header
Side
Box
Content
Footer
Header
Side
Box
PDP #2
Footer
4mins 4mins 4mins
Generic 30
days
Generic
30 days
Generic
30 days
Home
30 days
PDP
30 days
PDP
30 days
Home
4 hours
Specific
dynamic
Specific
dynamic
Results
4mins 0s 0s
| 50 ways to ruin your TTFB | © 2019 Akamai | Confidential111
Redirect time
Thank you
@TimVereecke

More Related Content

What's hot

Introduction to the Well-Architected Framework and Tool - SVC212 - Chicago AW...
Introduction to the Well-Architected Framework and Tool - SVC212 - Chicago AW...Introduction to the Well-Architected Framework and Tool - SVC212 - Chicago AW...
Introduction to the Well-Architected Framework and Tool - SVC212 - Chicago AW...
Amazon Web Services
 

What's hot (20)

Edge 2014: A Modern Approach to Performance Monitoring
Edge 2014: A Modern Approach to Performance MonitoringEdge 2014: A Modern Approach to Performance Monitoring
Edge 2014: A Modern Approach to Performance Monitoring
 
TL;DR Web Performance Workshop
TL;DR Web Performance WorkshopTL;DR Web Performance Workshop
TL;DR Web Performance Workshop
 
AWS Container services
AWS Container servicesAWS Container services
AWS Container services
 
Introduction to the Well-Architected Framework and Tool - SVC212 - Chicago AW...
Introduction to the Well-Architected Framework and Tool - SVC212 - Chicago AW...Introduction to the Well-Architected Framework and Tool - SVC212 - Chicago AW...
Introduction to the Well-Architected Framework and Tool - SVC212 - Chicago AW...
 
CI/CD using AWS developer tools
CI/CD using AWS developer toolsCI/CD using AWS developer tools
CI/CD using AWS developer tools
 
Akamai-as-Code with The Washington Post
Akamai-as-Code with The Washington PostAkamai-as-Code with The Washington Post
Akamai-as-Code with The Washington Post
 
AWS 如何協助客戶建立 DevOps 流程
AWS 如何協助客戶建立 DevOps 流程AWS 如何協助客戶建立 DevOps 流程
AWS 如何協助客戶建立 DevOps 流程
 
Set Up a CI/CD Pipeline for Deploying Containers Using the AWS Developer Tool...
Set Up a CI/CD Pipeline for Deploying Containers Using the AWS Developer Tool...Set Up a CI/CD Pipeline for Deploying Containers Using the AWS Developer Tool...
Set Up a CI/CD Pipeline for Deploying Containers Using the AWS Developer Tool...
 
Chaos engineering
Chaos engineering Chaos engineering
Chaos engineering
 
Modernizing legacy applications with Amazon EKS - MAD301 - Chicago AWS Summit
Modernizing legacy applications with Amazon EKS - MAD301 - Chicago AWS SummitModernizing legacy applications with Amazon EKS - MAD301 - Chicago AWS Summit
Modernizing legacy applications with Amazon EKS - MAD301 - Chicago AWS Summit
 
hello-streams :: Introducing the Stream First Mindset (Rene Parra, Homeaway) ...
hello-streams :: Introducing the Stream First Mindset (Rene Parra, Homeaway) ...hello-streams :: Introducing the Stream First Mindset (Rene Parra, Homeaway) ...
hello-streams :: Introducing the Stream First Mindset (Rene Parra, Homeaway) ...
 
GPSTEC312-SAP HANA HA on AWS Preventing Production Facepalms
GPSTEC312-SAP HANA HA on AWS Preventing Production FacepalmsGPSTEC312-SAP HANA HA on AWS Preventing Production Facepalms
GPSTEC312-SAP HANA HA on AWS Preventing Production Facepalms
 
Five New Security Automation Improvements You Can Make by Using Amazon CloudW...
Five New Security Automation Improvements You Can Make by Using Amazon CloudW...Five New Security Automation Improvements You Can Make by Using Amazon CloudW...
Five New Security Automation Improvements You Can Make by Using Amazon CloudW...
 
Introduction to Chaos Engineering with Microsoft Azure
Introduction to Chaos Engineering with Microsoft AzureIntroduction to Chaos Engineering with Microsoft Azure
Introduction to Chaos Engineering with Microsoft Azure
 
Move Your .NET Apps to AWS Without Betting the House - WIN303 - re:Invent 2017
Move Your .NET Apps to AWS Without Betting the House - WIN303 - re:Invent 2017Move Your .NET Apps to AWS Without Betting the House - WIN303 - re:Invent 2017
Move Your .NET Apps to AWS Without Betting the House - WIN303 - re:Invent 2017
 
From Code to a running container | AWS Summit Tel Aviv 2019
From Code to a running container | AWS Summit Tel Aviv 2019From Code to a running container | AWS Summit Tel Aviv 2019
From Code to a running container | AWS Summit Tel Aviv 2019
 
Well-Architected フレームワーク概要
Well-Architected フレームワーク概要Well-Architected フレームワーク概要
Well-Architected フレームワーク概要
 
Performing Chaos at Netflix Scale - DEV334 - re:Invent 2017
Performing Chaos at Netflix Scale - DEV334 - re:Invent 2017Performing Chaos at Netflix Scale - DEV334 - re:Invent 2017
Performing Chaos at Netflix Scale - DEV334 - re:Invent 2017
 
How BrightEdge Achieves End-to-End Security Visibility with Splunk and AWS
 How BrightEdge Achieves End-to-End Security Visibility with Splunk and AWS How BrightEdge Achieves End-to-End Security Visibility with Splunk and AWS
How BrightEdge Achieves End-to-End Security Visibility with Splunk and AWS
 
CIRCUIT 2015 - Akamai: Caching and Beyond
CIRCUIT 2015 - Akamai:  Caching and BeyondCIRCUIT 2015 - Akamai:  Caching and Beyond
CIRCUIT 2015 - Akamai: Caching and Beyond
 

Similar to Akamai Tech day Amsterdam 2019

Similar to Akamai Tech day Amsterdam 2019 (20)

Challenges behind the scenes of the large Swiss e-Commerce shop apfelkiste.ch...
Challenges behind the scenes of the large Swiss e-Commerce shop apfelkiste.ch...Challenges behind the scenes of the large Swiss e-Commerce shop apfelkiste.ch...
Challenges behind the scenes of the large Swiss e-Commerce shop apfelkiste.ch...
 
Chicago Tech Day Jan 2015: Foundry - HTTP2
Chicago Tech Day Jan 2015: Foundry - HTTP2Chicago Tech Day Jan 2015: Foundry - HTTP2
Chicago Tech Day Jan 2015: Foundry - HTTP2
 
60000 TPS: How many CPUs?, Enterprise Postgres Day
60000 TPS: How many CPUs?, Enterprise Postgres Day60000 TPS: How many CPUs?, Enterprise Postgres Day
60000 TPS: How many CPUs?, Enterprise Postgres Day
 
Configure an End-to-End Video Channel to Deliver Low Latency (CTD411-R3) - AW...
Configure an End-to-End Video Channel to Deliver Low Latency (CTD411-R3) - AW...Configure an End-to-End Video Channel to Deliver Low Latency (CTD411-R3) - AW...
Configure an End-to-End Video Channel to Deliver Low Latency (CTD411-R3) - AW...
 
Real World Problem Solving Using Application Performance Management 10
Real World Problem Solving Using Application Performance Management 10Real World Problem Solving Using Application Performance Management 10
Real World Problem Solving Using Application Performance Management 10
 
Kafka at Scale: Multi-Tier Architectures
Kafka at Scale: Multi-Tier ArchitecturesKafka at Scale: Multi-Tier Architectures
Kafka at Scale: Multi-Tier Architectures
 
Advanced Caching Concepts @ Velocity NY 2015
Advanced Caching Concepts @ Velocity NY 2015Advanced Caching Concepts @ Velocity NY 2015
Advanced Caching Concepts @ Velocity NY 2015
 
Bitmovin LIVE Tech Talks: Reducing Peak Bandwidth for OTT (ft. Akamai)
Bitmovin LIVE Tech Talks: Reducing Peak Bandwidth for OTT (ft. Akamai) Bitmovin LIVE Tech Talks: Reducing Peak Bandwidth for OTT (ft. Akamai)
Bitmovin LIVE Tech Talks: Reducing Peak Bandwidth for OTT (ft. Akamai)
 
OTT Video Streaming Better-than-Broadcast Latency (CTD404-R1) - AWS reInvent ...
OTT Video Streaming Better-than-Broadcast Latency (CTD404-R1) - AWS reInvent ...OTT Video Streaming Better-than-Broadcast Latency (CTD404-R1) - AWS reInvent ...
OTT Video Streaming Better-than-Broadcast Latency (CTD404-R1) - AWS reInvent ...
 
Dynamic Content Acceleration: Lightning Fast Web Apps with Amazon CloudFront ...
Dynamic Content Acceleration: Lightning Fast Web Apps with Amazon CloudFront ...Dynamic Content Acceleration: Lightning Fast Web Apps with Amazon CloudFront ...
Dynamic Content Acceleration: Lightning Fast Web Apps with Amazon CloudFront ...
 
Impala Performance Update
Impala Performance UpdateImpala Performance Update
Impala Performance Update
 
A few milliseconds in the life of an HTTP request - SVC303 - New York AWS Summit
A few milliseconds in the life of an HTTP request - SVC303 - New York AWS SummitA few milliseconds in the life of an HTTP request - SVC303 - New York AWS Summit
A few milliseconds in the life of an HTTP request - SVC303 - New York AWS Summit
 
VoxxedDays Minsk - Building scalable WebSocket backend
VoxxedDays Minsk - Building scalable WebSocket backendVoxxedDays Minsk - Building scalable WebSocket backend
VoxxedDays Minsk - Building scalable WebSocket backend
 
Dynamic Content Acceleration: Amazon CloudFront and Amazon Route 53 (ARC309) ...
Dynamic Content Acceleration: Amazon CloudFront and Amazon Route 53 (ARC309) ...Dynamic Content Acceleration: Amazon CloudFront and Amazon Route 53 (ARC309) ...
Dynamic Content Acceleration: Amazon CloudFront and Amazon Route 53 (ARC309) ...
 
AWS Summit London 2014 | Dynamic Content Acceleration (300)
AWS Summit London 2014 | Dynamic Content Acceleration (300)AWS Summit London 2014 | Dynamic Content Acceleration (300)
AWS Summit London 2014 | Dynamic Content Acceleration (300)
 
What we can learn from CDNs about Web Development, Deployment, and Performance
What we can learn from CDNs about Web Development, Deployment, and PerformanceWhat we can learn from CDNs about Web Development, Deployment, and Performance
What we can learn from CDNs about Web Development, Deployment, and Performance
 
DEFCON 23 - Etienne Martineau - inter vm data exfiltration
DEFCON 23 - Etienne Martineau - inter vm data exfiltrationDEFCON 23 - Etienne Martineau - inter vm data exfiltration
DEFCON 23 - Etienne Martineau - inter vm data exfiltration
 
SmartDB Office Hours: Connection Pool Sizing Concepts
SmartDB Office Hours: Connection Pool Sizing ConceptsSmartDB Office Hours: Connection Pool Sizing Concepts
SmartDB Office Hours: Connection Pool Sizing Concepts
 
SD Times - Docker v2
SD Times - Docker v2SD Times - Docker v2
SD Times - Docker v2
 
Deploy, Customize, Start, & Monitor a Channel with Live Streaming on AWS (CTD...
Deploy, Customize, Start, & Monitor a Channel with Live Streaming on AWS (CTD...Deploy, Customize, Start, & Monitor a Channel with Live Streaming on AWS (CTD...
Deploy, Customize, Start, & Monitor a Channel with Live Streaming on AWS (CTD...
 

Recently uploaded

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
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
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
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

Akamai Tech day Amsterdam 2019

  • 1. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential1 50 ways to ruin your TTFB April, 2019 Tim Vereecke, Web Performance Architect
  • 2. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential2 Redirect time 2019
  • 3. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential3 Redirect time April 4th
  • 4. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential4 Redirect time TTFB
  • 5. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential5 First Paint (FP) First Contentful Paint (FCP) First Meaningful Paint (FMP) Time to Interactive (TTI) Time to Visually ready (TVR)
  • 6. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential6 DOM CSSOM What is important?
  • 7. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential7 DOM CSSOM What is important?
  • 8. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential8 DOM CSSOM What is important?
  • 9. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential9 Performance tuning Do it faster Do less Change order
  • 10. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential10 Performance tuning Do it faster Do less Change order (get rid of noise)
  • 11. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential11 How it works
  • 12. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential12 How it works dns
  • 13. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential13 How it works dns connect
  • 14. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential14 How it works dns connect ssl
  • 15. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential15 How it works dns connect ssl request
  • 16. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential16 How it works dns connect ssl request response
  • 17. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential17 How it works dns connect ssl request responsecache
  • 18. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential18 How it works dns connect ssl request responseredirect cache
  • 19. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential19 How it works dns connect ssl request responseredirect cache
  • 20. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential20 How it works dns connect ssl request responseredirect cache
  • 21. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential21 How it works dns connect ssl request responseredirect cache A? B?
  • 22. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential22 How it works dns connect ssl request responseredirect cache A? B mPulse Backend Time
  • 23. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential23 How it works dns connect ssl request responseredirect cache A? B mPulse Backend Time
  • 24. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential24 How it works dns connect ssl request responseredirect cache A? B mPulse Backend Time
  • 25. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential25 How it works dns connect ssl request responseredirect cache A? B mPulse Backend Time
  • 26. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential26 How it works dns connect ssl request responseredirect cache A? B mPulse Backend Time
  • 27. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential27 How it works dns connect ssl request responseredirect cache A? B mPulse Backend Time
  • 28. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential28 How it works dns connect ssl request responseredirect cache A? B mPulse Backend Time
  • 29. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential29 How it works dns connect ssl request responseredirect cache A? B mPulse Backend Time
  • 30. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential30 Analysis best practices dns connect ssl request responseredirect cache A? B mPulse Backend Time
  • 31. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential31 Analysis best practices dns connect ssl request responseredirect cache A? B mPulse Backend Time Custom timer
  • 32. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential32 Analysis best practices dns connect ssl request responseredirect cache A B mPulse Backend Time Custom timer Cust. timer
  • 33. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential33 Analysis best practices dns connect ssl request responseredirect cache A B mPulse Backend Time Custom timer Cust. timer dns connect ssl request responseredirect cache
  • 34. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential34 Analysis best practices dns connect ssl request responseredirect cache A B mPulse Backend Time Custom timer Cust. timer dns connect ssl request responseredirect cache dns connect ssl request responseredirect cache
  • 35. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential35 Analysis best practices dns connect ssl request responseredirect cache A B mPulse Backend Time Custom timer dns connect ssl request responseredirect cache dns connect ssl request responseredirect cache
  • 36. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential36 Analysis best practices dns connect ssl request responseredirect cache A B mPulse Backend Time Custom timer Cust. timer
  • 37. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential37 Analysis best practices dns connect ssl request responseredirect cache A B mPulse Backend Time Custom timer Cust. timer Custom timer
  • 38. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential38 Analysis best practices dns connect ssl request responseredirect cache A B mPulse Backend Time redirect ttfb base page
  • 39. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential39 How it works dns connect ssl request responseredirect cache
  • 40. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential40 How it works dns connect ssl request responseredirect cache
  • 41. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential41 How it works dns connect ssl request responseredirect cache
  • 42. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential42 How it works dns connect ssl request responseredirect cache
  • 43. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential43
  • 44. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential44
  • 45. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential45 dataLayer.landingpage='Yes'; if(document.referrer.indexOf('www.scalemates.com')>-1){ dataLayer.landingpage='No'; }
  • 46. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential46 Tuning best practices dns connect ssl request responseredirect cache
  • 47. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential47 Tuning best practices dns connect ssl request responseredirect cache Client-Edge Edge-Origin
  • 48. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential48 Tuning best practices Redirects Client-Edge Edge-Origin Avoid v Consolidate v v Execute them at the edge v Cache them v v HSTS Header v
  • 49. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential49
  • 50. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential50 DNS Client-Edge Edge-Origin Increase DNS TTL v v Consolidate DNS hostnames v v DNS prefresh/async v Tuning best practices
  • 51. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential51 TCP Client-Edge Edge-Origin Pconns (301s - or modify Akamai) v Don’t hardcode IP v Tuning best practices
  • 52. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential52 SSL Handshake Client-Edge Edge-Origin Use fast ciphers v v OCSP Stapling v v TLS 1.3 v v Avoid large SAN’s v v Tuning best practices
  • 53. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential53 Dynamic Client-Edge Edge-Origin SureRoute (TTL/Object size) v Compression (Check Via header) v v Response buffering v WAF Outbound rules v Prefetching needed? v ESI v Tuning best practices
  • 54. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential54 Dynamic Client-Edge Edge-Origin Config complexity v v Tuning best practices
  • 55. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential55 Caching Client-Edge Edge-Origin Cache as much as you can v v Tiered Distribution v FastPurge for Long TTL’s v Check Vary header v Cache prefreshing v Tuning best practices
  • 57. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential57 Why do you cache?
  • 58. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential58 Edge hits for 1 object Time Edge view
  • 59. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential59 Edge hits for 1 object Time Edge view TTL TTL
  • 60. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential60 Edge hits for 1 object Time Edge view TTL TTL
  • 61. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential61 Edge hits for 1 object ms Time Edge view TTL TTL
  • 62. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential62 Edge hits for 1 object ms Time Edge view TTL TTL Performance risk
  • 63. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential63 Edge hits for 1 object ms Time Edge view TTL TTL ms Time Origin view Performance risk Scalability risk
  • 64. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential64 Edge hits for 1 object ms Time Edge view TTL TTL ms Time Origin view Performance risk Scalability risk Out of sync risk Version X Version X+1
  • 65. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential65 Trade offs? ms Time Edge view TTL TTL ms Time Origin view Performance risk Scalability risk Out of sync risk Version X Version X+1
  • 66. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential66 Is there a magic bullet? ms Time Edge view TTL TTL ms Time Origin view Performance risk Scalability risk Out of sync risk Version X Version X+1
  • 67. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential67 Prefreshing ms Time Edge view TTL TTL ms Time Origin view Version X Version X+1
  • 68. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential68 Prefreshing ms Time Edge view TTL TTL ms Time Origin view Version X Version X+1
  • 69. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential69 Prefreshing ms Time Edge view TTL TTL ms Time Origin view Version X Version X+1
  • 70. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential70 Prefreshing ms Time Edge view TTL TTL ms Time Origin view Version X Version X+1
  • 71. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential71 Prefreshing ms Time Edge view TTL TTL ms Time Origin view Version X Version X+1
  • 72. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential72 Prefreshing ms Time Edge view TTL TTL ms Time Origin view Version X Version X+1
  • 73. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential73 Prefreshing ms Time Edge view TTL TTL ms Time Origin view Version X Version X+1
  • 74. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential74 Impact ms Time Edge view TTL TTL ms Time Origin view Version X Version X+1 Performance risk reduced Scalability risk increased* Out of sync risk reduced
  • 75. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential75 Tradeoffs ms Time Edge view TTL TTL ms Time Origin view Version X Version X+1 Performance risk Scalability risk Out of sync risk
  • 76. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential76
  • 77. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential77 1 session = 1 or more pages
  • 78. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential78
  • 79. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential79 Session limitations
  • 80. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential80 Option 1: Cache
  • 81. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential81 Option 1: Cache
  • 82. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential82 Option 2: 100% Dynamic
  • 83. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential83 Option 2: 100% Dynamic Performance
  • 84. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential84 Option 3: XHR
  • 85. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential85
  • 86. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential86
  • 87. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential87
  • 88. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential88
  • 89. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential89
  • 90. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential90 Option 4: ESI
  • 91. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential91
  • 92. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential92
  • 93. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential93
  • 94. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential94 header(Edge-Control: dca="esi',false); <esi:include src="/esi/sidebox-all.php” ttl=”240s"/>
  • 95. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential95 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer Online Online Online
  • 96. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential96 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer Online Online Online
  • 97. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential97 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer Online Online Online Generic 30 days Generic 30 days Generic 30 days
  • 98. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential98 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer Online Online Online Generic 30 days Generic 30 days Generic 30 days PDP 30 days PDP 30 days
  • 99. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential99 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer Online Online Online Generic 30 days Generic 30 days Generic 30 days Home 30 days PDP 30 days PDP 30 days
  • 100. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential100 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer Online Online Online Generic 30 days Generic 30 days Generic 30 days Home 30 days PDP 30 days PDP 30 days Home 4 hours Specific dynamic Specific dynamic
  • 101. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential101 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer Online Online Online Generic 30 days Generic 30 days Generic 30 days Home 30 days PDP 30 days PDP 30 days Home 4 hours Specific dynamic Specific dynamic
  • 102. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential102 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer 2min 2min 2min Generic 30 days Generic 30 days Generic 30 days Home 30 days PDP 30 days PDP 30 days Home 4 hours Specific dynamic Specific dynamic ESI Use cases
  • 103. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential103 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer 2min 2min 2min Generic 30 days Generic 30 days Generic 30 days Home 30 days PDP 30 days PDP 30 days Home 4 hours Specific dynamic Specific dynamic ESI Use cases
  • 104. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential104 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer 4mins 4mins 4mins Generic 30 days Generic 30 days Generic 30 days Home 30 days PDP 30 days PDP 30 days Home 4 hours Specific dynamic Specific dynamic ESI Use cases 4mins 0s 0s 1) Increase TTL of cacheable pages by injecting lower TTL components 2) Increase cache efficiency by executing (component) logic at the Edge 3) Reduce weight of dynamic requests by injecting high TTL components Increased (perceived) performance and consistency
  • 105. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential105 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer 4mins 4mins 4mins Generic 30 days Generic 30 days Generic 30 days Home 30 days PDP 30 days PDP 30 days Home 4 hours Specific dynamic Specific dynamic Results 4mins 0s 0s Increased offload
  • 106. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential106
  • 107. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential107
  • 108. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential108 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer 4mins 4mins 4mins Generic 30 days Generic 30 days Generic 30 days Home 30 days PDP 30 days PDP 30 days Home 4 hours Specific dynamic Specific dynamic Results 4mins 0s 0s Increased (perceived) performance and consistency
  • 109. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential109 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer 4mins 4mins 4mins Generic 30 days Generic 30 days Generic 30 days Home 30 days PDP 30 days PDP 30 days Home 4 hours Specific dynamic Specific dynamic Results 4mins 0s 0s Increased (perceived) performance and consistency
  • 110. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential110 Content Header Side Box PDP #1Homepage (1x) Content Footer Header Side Box Content Footer Header Side Box PDP #2 Footer 4mins 4mins 4mins Generic 30 days Generic 30 days Generic 30 days Home 30 days PDP 30 days PDP 30 days Home 4 hours Specific dynamic Specific dynamic Results 4mins 0s 0s
  • 111. | 50 ways to ruin your TTFB | © 2019 Akamai | Confidential111 Redirect time Thank you @TimVereecke