SlideShare a Scribd company logo
Cache is King
Scale Your Application while
Improving Performance and Lowering Costs
Constantin Gonzalez
Principal Solutions Architect
Amazon Web Services Germany GmbH
glez@amazon.de | @zalez
Cash is KingCash is King
Cache is Cash
Httparchive
Content Breakdown
87% of Your Site Consists Of Static/Re-usable Content
52% of The Internet’s Content is
NOT Cached Today
But Wait…
Cache is King
Source: httparchive.org300K Tracked Websites Oct 2014-Oct 2015
~52%
{
CACHE EVERYTHING
Browser Cache
Edge Cache
Web Cache
Application Cache
Database Cache
Image Source: cakeormistake.wordpress.com
Speed of Light ~300,000 Km/s
Image Source: wordlesstech.com
~200,000 Km/s through fiber
Image Source: www2.wiringandcabling.com
Download Performance
Round Trip: 13,026 km
Download Performance
Round Trip: 13,026 km
Theoretical: 65 ms
Download Performance
Round Trip: 13,026 km
Theoretical: 65 ms
Measured: 68 ms
Time to First Byte
68 ms
Client Server
Time to First Byte
68 ms
68 ms
Client Server
SYN
SYN/ACK
Time to First Byte
68 ms
68 ms
68 ms
Client Server
136 ms
SYN
SYN/ACK
ACK,
GET /image.jpg HTTP/1.1
Browser Cache
Browser Caching
Set max-age or expiry date in the headers.
HTML5 Application Cache.
Helps eliminate network latency.
But… Browser cache size is limited.
(e.g. IE is 8-50M, Chrome is < 80M, Firefox is 50MB, etc.)
Browser Cache
Edge Cache
Time to First Byte
68 ms
68 ms
68 ms
Client Server
136 ms
SYN
SYN/ACK
ACK,
GET /image.jpg HTTP/1.1
Bring the Bytes Closer to Your
Users 68 ms
Client Origin
SYN
10 ms
SYN/ACK
GET /image.jpg HTTP/1.1ACK,
GET /image.jpg HTTP/1.1
CloudFront
Saves 68 ms
RTT
SYN
SYN/ACK
Time to first byte: 20 ms vs. 136 ms
Amazon CloudFront: 53 Global Locations
Edge Cache: Amazon CloudFront
Amazon S3
Elastic Load
Balancing
Mobile Clients
Browsers/Desktop
Clients
Tablets/Devices
Amazon CloudFront
Edge Location
Edge Cache
How do you decide what to cache?
• Static or Re-Usable Content
• Customized Content
• On-Demand and Live Video
• Dynamic or Unique Content
Cache Static or Re-Usable Content
HTTP/1.0 200 OK
Date: Mon, 19 Mar 201 12:51:28 GMT
Server: Apache
Last-Modified: Mon, 19 Mar 2012 07:15:25 GMT
Accept-Ranges: bytes
Content-Length: 1918
Cache-Control: max-age=86400
Content-Type: image/jpeg
Vary: Accept-Encoding
Age: 16
X-Cache: Hit from cloudfront
Connection: keep-alive
Cache Customized Content
Customized Content
Cache Video Content
Caching Your Live Stream?
Source
HTTP
Cache
Edge
Paris
New York
Encoder
HLS, HDS,
Smooth Streaming
Hong Kong
Dynamic Content?
Zero TTL – cannot be cached! CloudFront can still help…
Dynamic Content?
Zero TTL – cannot be cached!
CloudFront can still help…
TCP/IP optimizations for the network path
Keep-Alive Connections to reduce RTT
SSL Termination close to viewers
POST/PUT upload optimizations
Latency Based Routing
Low prices, same as static content delivery!
AZAZ
CloudFront
EU APUS
ELB
US
Browser Cache
Edge Cache
Web Cache
You can’t have dessert, until
you have your dinner!
-An Experiment.
https://secure.flickr.com/photos/stephen-oung/6319155216/
Experiment Premise
• Start with basic infrastructure.
– Single m1.large EC2 instance running Amazon Linux
– Single non-Multi-AZ m1.xlarge RDS MySQL 5.6 instance
– Apache httpd-2.2.25
– PHP 5.3.27
– Drupal Commerce Kickstart 7.2
– EIP on Instance
• Throw a ton of traffic at it.
– 8,000,000 queries, 40 per second, from 4 other instances.
• Profile it.
– New Relic PHP agent
– webpagetest.org
Experiment Infrastructure
Web/App
Instance
Elastic IP
Amazon RDS
DB Instance
Clients
Results? (not pretty)
14.7 second responses
Mostly Static Data
Low RPM
Web Cache
Webserver or proxy caches would live between
your CDN/Users and your web tier and can offer
up increased cost performance via reducing
internal application and database load. Can also
offer up increased edge to origin speed for lots of
content.
Web Cache
Popular solutions:
– Varnish
– Nginx
– Apache with mod_cache/mod_proxy
– Squid
– Perlbal
– Language/framework caches (i.e., APC, Zend)
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
Internet
Gateway
Amazon
Route 53
Amazon
CloudFront
Customer
Traffic
Web Cache
• Opt for in-memory caching when possible.
• Pay attention to your cache hit/miss ratios. It could be a sign that you
need to re-size the instances or re-size the number of nodes in your
cache pool.
• Set smart TTLs so that you don’t affect new deploys or cache content
for too long.
• Be smart about what cookies can burst cache and what cookies can’t.
Don’t serve up other people’s content or stale dynamic pages.
Web Cache
How do you decide what to cache?
– All logged out user pages
– Any completely static pages
– Traffic/log analysis
• Look at your web logs/CDN logs
• Find heavily hit pages
• Figure out how often they actually change
• Apply a TTL to that page to be cached
– Even 60 second TTLs could help drastically!
Browser Cache
Edge Cache
Web Cache
Application Cache
Application Cache
Application level caches for information such
as session data, temporary application data
such as cart information, and live aggregation
of data feeds.
Application Cache
Popular solutions:
– Memcached
– Redis
– Cassandra
– Amazon DynamoDB
Application Cache
Availability Zone
VPC Subnet VPC SubnetVPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
ElastiCache
Cache Node
Availability Zone
VPC Subnet VPC SubnetVPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
ElastiCache
Cache Node
Internet
Gateway
Application Cache
Availability Zone
VPC Subnet VPC SubnetVPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
ElastiCache
Cache Node
Availability Zone
VPC Subnet VPC SubnetVPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
ElastiCache
Cache Node
Internet
Gateway
Amazon DynamoDB Session Handler for PHP
https://aws.amazon.com/sdkforphp/
Application Cache
Internet
Gateway
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing Squid Proxy
Instances Amazon
DynamoDB
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing Squid Proxy
Instances
Application Cache
Internet
Gateway
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing Squid Proxy
Instances Amazon
DynamoDB
Availability Zone
VPC Subnet VPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing Squid Proxy
Instances
Application Cache
Use Cases:
– Session information
– Temporary data
• Cart info, metadata
– Rate limiting
• Fight abuse of APIs, spamming, functionality
abuse
– Counters
• Views, Scores, Leader Boards
Application Cache
How do you decide what to cache?
– Ideally, you have to treat data you cache at this
tier as loss tolerant if working with in-memory
caches.
– Session information that wouldn’t make sense in
cookies or in a true DB.
– Look at the kind of data your application is
generating and storing in a DB that it might not
need to.
Browser Cache
Edge Cache
Web Cache
Application Cache
Database Cache
Database Cache
Reduce workload on database servers by
caching commonly requested information, or
any information that might not change
frequently (i.e., user info, listing info, product
info).
Database Cache
Popular solutions:
– In-engine query caches
– Memcached
• On dedicated host
• On DB host (built in w/ MySQL 5.6)
– Redis
• On dedicated host
Database Cache
A word of caution:
In-engine DB caches are often not recommended for
many use cases, as they can significantly impact the
performance of many databases. Depending on the
workload and dataset you have, an in-engine query
cache might not be a good idea for you. We recommend
off DB caches where possible.
Database Cache
Availability Zone
VPC Subnet VPC SubnetVPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
ElastiCache
Cache Node
Availability Zone
VPC Subnet VPC SubnetVPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
ElastiCache
Cache Node
Internet
Gateway
RDS Instance
Primary (M-AZ)
RDS Instance
Standby (MAZ)
Database Cache
Availability Zone
VPC Subnet VPC SubnetVPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
ElastiCache
Cache Node
Availability Zone
VPC Subnet VPC SubnetVPC Subnet
Elastic Load
Balancing
Cache
Instances
Web/App
Instances
Elastic Load
Balancing
ElastiCache
Cache Node
Internet
Gateway
RDS Instance
Primary (M-AZ)
RDS Instance
Standby (MAZ)
Memcached – Code Sample
function retrieveValue($query)
{
$queryId = md5($query);
if ($myValue = $memcache->get($queryId))
{
return $myValue;
}
else
{
$myValue = dbfetch($query);
$memcache->set($queryId, $myValue);
return $myValue;
}
}
MySQL 5.6 + Memcached
RDS MySQL supports version
5.6 with integrated Memcached
on the instance:
– Part of the InnoDB engine
– Memcached running as part of MySQL
talks directly to data in InnoDB tables,
essentially turning MySQL into a fast
“key-value store”
– From the opposite view point, adds
persistence to Memcached
– Same Memcached API as standalone
https://dev.mysql.com/doc/refman/5.6/en/innodb-memcached-intro.html
Cache everything
MongoDB DynamoDB Amazon RDS
MongoDB DynamoDB Amazon RDS
ElastiCache
MongoDB Queries
• Shut down 8 machines
Caching saves money
DynamoDB Reads
• Saved 3k reads per second
• (>20k reads per second in total)
Without negative caching
Cache really everything!
With negative caching
• Cache hit ratio 25-30% • Cache hit ratio 89-95%
Hit
Miss
AWS Marketplace & Partners Can Help
• Customers can find, research, buy
software.
• Simple pricing, aligns with Amazon
EC2 usage model.
• Launch in minutes!
• Marketplace billing integrated into your
AWS account.
• 1100+ products across 24+ categories.
Learn more at: aws.amazon.com/marketplace
Back To Our
Experiment!
https://secure.flickr.com/photos/toyochin/1382531438/
Experiment Infrastructure (original)
Web/App
Instance
Elastic IP
Amazon RDS
DB Instance
Clients
Results? (not pretty)
14.7 second responses
Mostly Static Data
Low RPM
Experiment Infrastructure (with cake)
• Added in ElastiCache Memcached
cache.m1.large
• Added in Amazon CloudFront for static content
– Tuned expires and cache headers in Apache
• Added in APC for PHP caching
– Increased memory to 128Mb, no other changes
• Did nothing to the DB
• Drupal memcached & CDN modules
CloudFront
Experiment Infrastructure (with cake)
Web/App
Instance
Elastic IP
Amazon RDS
DB Instance
Clients
ElastiCache
Cache Node
Results? (AWESOME!)
response time ~1/2
~2x RPM
Repeat Page view from 15.8sec to 2.75sec
Easy as Pie!
https://secure.flickr.com/photos/linecon0/2654865842/
Thank you!
Constantin Gonzalez
glez@amazon.de
@zalez

More Related Content

What's hot

Hackproof Your Cloud – Responding to 2016 Threats
Hackproof Your Cloud – Responding to 2016 ThreatsHackproof Your Cloud – Responding to 2016 Threats
Hackproof Your Cloud – Responding to 2016 Threats
Amazon Web Services
 
Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013
Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013
Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013
Amazon Web Services
 
AWS re:Invent 2016: Scaling Up to Your First 10 Million Users (ARC201)
AWS re:Invent 2016: Scaling Up to Your First 10 Million Users (ARC201)AWS re:Invent 2016: Scaling Up to Your First 10 Million Users (ARC201)
AWS re:Invent 2016: Scaling Up to Your First 10 Million Users (ARC201)
Amazon Web Services
 
(DVO401) Deep Dive into Blue/Green Deployments on AWS
(DVO401) Deep Dive into Blue/Green Deployments on AWS(DVO401) Deep Dive into Blue/Green Deployments on AWS
(DVO401) Deep Dive into Blue/Green Deployments on AWS
Amazon Web Services
 
Introduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot InstancesIntroduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot Instances
Amazon Web Services
 
(ARC301) Scaling Up to Your First 10 Million Users
(ARC301) Scaling Up to Your First 10 Million Users(ARC301) Scaling Up to Your First 10 Million Users
(ARC301) Scaling Up to Your First 10 Million Users
Amazon Web Services
 
AWS WAF introduction and live demo - Pop-up Loft Tel Aviv
AWS WAF introduction and live demo - Pop-up Loft Tel AvivAWS WAF introduction and live demo - Pop-up Loft Tel Aviv
AWS WAF introduction and live demo - Pop-up Loft Tel Aviv
Amazon Web Services
 
Amazon EC2:Masterclass
Amazon EC2:MasterclassAmazon EC2:Masterclass
Amazon EC2:Masterclass
Amazon Web Services
 
ENT313 Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum E...
ENT313 Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum E...ENT313 Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum E...
ENT313 Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum E...
Amazon Web Services
 
Announcing Amazon Lightsail - January 2017 AWS Online Tech Talks
Announcing Amazon Lightsail - January 2017 AWS Online Tech TalksAnnouncing Amazon Lightsail - January 2017 AWS Online Tech Talks
Announcing Amazon Lightsail - January 2017 AWS Online Tech Talks
Amazon Web Services
 
The Pace of Innovation - Pop-up Loft Tel Aviv
The Pace of Innovation - Pop-up Loft Tel AvivThe Pace of Innovation - Pop-up Loft Tel Aviv
The Pace of Innovation - Pop-up Loft Tel Aviv
Amazon Web Services
 
Next-Generation Firewall Services VPC Integration
Next-Generation Firewall Services VPC IntegrationNext-Generation Firewall Services VPC Integration
Next-Generation Firewall Services VPC Integration
Amazon Web Services
 
Getting Started with Amazon EC2 and Compute Services
Getting Started with Amazon EC2 and Compute ServicesGetting Started with Amazon EC2 and Compute Services
Getting Started with Amazon EC2 and Compute Services
Amazon Web Services
 
Build A Website on AWS for Your First 10 Million Users
Build A Website on AWS for Your First 10 Million UsersBuild A Website on AWS for Your First 10 Million Users
Build A Website on AWS for Your First 10 Million Users
Amazon Web Services
 
Scale, baby, scale!
Scale, baby, scale!Scale, baby, scale!
Scale, baby, scale!
Julien SIMON
 
Deep Dive on Amazon RDS (May 2016)
Deep Dive on Amazon RDS (May 2016)Deep Dive on Amazon RDS (May 2016)
Deep Dive on Amazon RDS (May 2016)
Julien SIMON
 
Gaining Operational Insights out of Your Logs
Gaining Operational Insights out of Your LogsGaining Operational Insights out of Your Logs
Gaining Operational Insights out of Your Logs
Amazon Web Services
 
AWS Activate webinar - Scalable databases for fast growing startups
AWS Activate webinar - Scalable databases for fast growing startupsAWS Activate webinar - Scalable databases for fast growing startups
AWS Activate webinar - Scalable databases for fast growing startups
Amazon Web Services
 
Get the Most Bang for your Buck with #EC2 #Winning
Get the Most Bang for your Buck with #EC2 #WinningGet the Most Bang for your Buck with #EC2 #Winning
Get the Most Bang for your Buck with #EC2 #Winning
Amazon Web Services
 
Deep Dive on Amazon S3 (May 2016)
Deep Dive on Amazon S3 (May 2016)Deep Dive on Amazon S3 (May 2016)
Deep Dive on Amazon S3 (May 2016)
Julien SIMON
 

What's hot (20)

Hackproof Your Cloud – Responding to 2016 Threats
Hackproof Your Cloud – Responding to 2016 ThreatsHackproof Your Cloud – Responding to 2016 Threats
Hackproof Your Cloud – Responding to 2016 Threats
 
Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013
Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013
Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013
 
AWS re:Invent 2016: Scaling Up to Your First 10 Million Users (ARC201)
AWS re:Invent 2016: Scaling Up to Your First 10 Million Users (ARC201)AWS re:Invent 2016: Scaling Up to Your First 10 Million Users (ARC201)
AWS re:Invent 2016: Scaling Up to Your First 10 Million Users (ARC201)
 
(DVO401) Deep Dive into Blue/Green Deployments on AWS
(DVO401) Deep Dive into Blue/Green Deployments on AWS(DVO401) Deep Dive into Blue/Green Deployments on AWS
(DVO401) Deep Dive into Blue/Green Deployments on AWS
 
Introduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot InstancesIntroduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot Instances
 
(ARC301) Scaling Up to Your First 10 Million Users
(ARC301) Scaling Up to Your First 10 Million Users(ARC301) Scaling Up to Your First 10 Million Users
(ARC301) Scaling Up to Your First 10 Million Users
 
AWS WAF introduction and live demo - Pop-up Loft Tel Aviv
AWS WAF introduction and live demo - Pop-up Loft Tel AvivAWS WAF introduction and live demo - Pop-up Loft Tel Aviv
AWS WAF introduction and live demo - Pop-up Loft Tel Aviv
 
Amazon EC2:Masterclass
Amazon EC2:MasterclassAmazon EC2:Masterclass
Amazon EC2:Masterclass
 
ENT313 Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum E...
ENT313 Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum E...ENT313 Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum E...
ENT313 Deploying a Disaster Recovery Site on AWS: Minimal Cost with Maximum E...
 
Announcing Amazon Lightsail - January 2017 AWS Online Tech Talks
Announcing Amazon Lightsail - January 2017 AWS Online Tech TalksAnnouncing Amazon Lightsail - January 2017 AWS Online Tech Talks
Announcing Amazon Lightsail - January 2017 AWS Online Tech Talks
 
The Pace of Innovation - Pop-up Loft Tel Aviv
The Pace of Innovation - Pop-up Loft Tel AvivThe Pace of Innovation - Pop-up Loft Tel Aviv
The Pace of Innovation - Pop-up Loft Tel Aviv
 
Next-Generation Firewall Services VPC Integration
Next-Generation Firewall Services VPC IntegrationNext-Generation Firewall Services VPC Integration
Next-Generation Firewall Services VPC Integration
 
Getting Started with Amazon EC2 and Compute Services
Getting Started with Amazon EC2 and Compute ServicesGetting Started with Amazon EC2 and Compute Services
Getting Started with Amazon EC2 and Compute Services
 
Build A Website on AWS for Your First 10 Million Users
Build A Website on AWS for Your First 10 Million UsersBuild A Website on AWS for Your First 10 Million Users
Build A Website on AWS for Your First 10 Million Users
 
Scale, baby, scale!
Scale, baby, scale!Scale, baby, scale!
Scale, baby, scale!
 
Deep Dive on Amazon RDS (May 2016)
Deep Dive on Amazon RDS (May 2016)Deep Dive on Amazon RDS (May 2016)
Deep Dive on Amazon RDS (May 2016)
 
Gaining Operational Insights out of Your Logs
Gaining Operational Insights out of Your LogsGaining Operational Insights out of Your Logs
Gaining Operational Insights out of Your Logs
 
AWS Activate webinar - Scalable databases for fast growing startups
AWS Activate webinar - Scalable databases for fast growing startupsAWS Activate webinar - Scalable databases for fast growing startups
AWS Activate webinar - Scalable databases for fast growing startups
 
Get the Most Bang for your Buck with #EC2 #Winning
Get the Most Bang for your Buck with #EC2 #WinningGet the Most Bang for your Buck with #EC2 #Winning
Get the Most Bang for your Buck with #EC2 #Winning
 
Deep Dive on Amazon S3 (May 2016)
Deep Dive on Amazon S3 (May 2016)Deep Dive on Amazon S3 (May 2016)
Deep Dive on Amazon S3 (May 2016)
 

Viewers also liked

Slack de Agilidade - agilidade.org
Slack de Agilidade - agilidade.orgSlack de Agilidade - agilidade.org
Slack de Agilidade - agilidade.org
Anderson Diniz Hummel
 
Problemas de la economia
Problemas de la economiaProblemas de la economia
Problemas de la economia
Juan Pablo Jimenez Rosas
 
AgileArquitetureCanvas
AgileArquitetureCanvasAgileArquitetureCanvas
AgileArquitetureCanvas
Anderson Diniz Hummel
 
Sistema financiero en méxico
Sistema financiero en méxicoSistema financiero en méxico
Sistema financiero en méxico
Juan Pablo Jimenez Rosas
 
AMY LIDE - RESUME 2016
AMY LIDE - RESUME 2016AMY LIDE - RESUME 2016
AMY LIDE - RESUME 2016Amy E Lide
 
Que es economia
Que es economiaQue es economia
Que es economia
Juan Pablo Jimenez Rosas
 
Curadorias de Germoplasma: Perspectivas para Universidades de Empresas Estaduais
Curadorias de Germoplasma: Perspectivas para Universidades de Empresas EstaduaisCuradorias de Germoplasma: Perspectivas para Universidades de Empresas Estaduais
Curadorias de Germoplasma: Perspectivas para Universidades de Empresas Estaduais
Renato Ferraz de Arruda Veiga
 
Social Media and Architecture Journal Archives
Social Media and Architecture Journal ArchivesSocial Media and Architecture Journal Archives
Social Media and Architecture Journal Archives
Noreen Whysel
 
Sistema financiero en méxico
Sistema financiero en méxicoSistema financiero en méxico
Sistema financiero en méxico
karen luna
 
Continuous delivery of embedded systems embedded meetup
Continuous delivery of embedded systems   embedded meetupContinuous delivery of embedded systems   embedded meetup
Continuous delivery of embedded systems embedded meetup
Mike Long
 
Riot Games' Insights Evolution
Riot Games' Insights EvolutionRiot Games' Insights Evolution
Riot Games' Insights Evolution
bhsiung
 
PGC Bangalore Session: Establishing an Ad-Driven Mobile Monetization Strategy...
PGC Bangalore Session: Establishing an Ad-Driven Mobile Monetization Strategy...PGC Bangalore Session: Establishing an Ad-Driven Mobile Monetization Strategy...
PGC Bangalore Session: Establishing an Ad-Driven Mobile Monetization Strategy...
ironSource
 
Sistema monetario internacional y sus cambios
Sistema monetario internacional y sus cambiosSistema monetario internacional y sus cambios
Sistema monetario internacional y sus cambios
Mitzi Linares Vizcarra
 
electrostatic charge hazards
electrostatic charge hazardselectrostatic charge hazards
electrostatic charge hazards
abbas taheri
 

Viewers also liked (15)

Slack de Agilidade - agilidade.org
Slack de Agilidade - agilidade.orgSlack de Agilidade - agilidade.org
Slack de Agilidade - agilidade.org
 
Problemas de la economia
Problemas de la economiaProblemas de la economia
Problemas de la economia
 
AgileArquitetureCanvas
AgileArquitetureCanvasAgileArquitetureCanvas
AgileArquitetureCanvas
 
Sistema financiero en méxico
Sistema financiero en méxicoSistema financiero en méxico
Sistema financiero en méxico
 
AMY LIDE - RESUME 2016
AMY LIDE - RESUME 2016AMY LIDE - RESUME 2016
AMY LIDE - RESUME 2016
 
Que es economia
Que es economiaQue es economia
Que es economia
 
Curadorias de Germoplasma: Perspectivas para Universidades de Empresas Estaduais
Curadorias de Germoplasma: Perspectivas para Universidades de Empresas EstaduaisCuradorias de Germoplasma: Perspectivas para Universidades de Empresas Estaduais
Curadorias de Germoplasma: Perspectivas para Universidades de Empresas Estaduais
 
Social Media and Architecture Journal Archives
Social Media and Architecture Journal ArchivesSocial Media and Architecture Journal Archives
Social Media and Architecture Journal Archives
 
Sistema financiero en méxico
Sistema financiero en méxicoSistema financiero en méxico
Sistema financiero en méxico
 
Continuous delivery of embedded systems embedded meetup
Continuous delivery of embedded systems   embedded meetupContinuous delivery of embedded systems   embedded meetup
Continuous delivery of embedded systems embedded meetup
 
Riot Games' Insights Evolution
Riot Games' Insights EvolutionRiot Games' Insights Evolution
Riot Games' Insights Evolution
 
PGC Bangalore Session: Establishing an Ad-Driven Mobile Monetization Strategy...
PGC Bangalore Session: Establishing an Ad-Driven Mobile Monetization Strategy...PGC Bangalore Session: Establishing an Ad-Driven Mobile Monetization Strategy...
PGC Bangalore Session: Establishing an Ad-Driven Mobile Monetization Strategy...
 
Sistema monetario internacional y sus cambios
Sistema monetario internacional y sus cambiosSistema monetario internacional y sus cambios
Sistema monetario internacional y sus cambios
 
electrostatic charge hazards
electrostatic charge hazardselectrostatic charge hazards
electrostatic charge hazards
 
Mithran J CV21316
Mithran J CV21316Mithran J CV21316
Mithran J CV21316
 

Similar to AWS Pop-up Loft Berlin: Cache is King - Running Lean Architectures: Optimizing for Cost Efficiency

Scale Your Application while Improving Performance and Lowering Costs (SVC203...
Scale Your Application while Improving Performance and Lowering Costs (SVC203...Scale Your Application while Improving Performance and Lowering Costs (SVC203...
Scale Your Application while Improving Performance and Lowering Costs (SVC203...
Amazon Web Services
 
Building High-availability Websites on AWS
Building High-availability Websites on AWSBuilding High-availability Websites on AWS
Building High-availability Websites on AWSAmazon Web Services
 
High-Availability Websites and Web Applications with AWS
High-Availability Websites and Web Applications with AWSHigh-Availability Websites and Web Applications with AWS
High-Availability Websites and Web Applications with AWSAmazon Web Services
 
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)
Amazon Web Services
 
AWS Webcast - What is Cloud Computing?
AWS Webcast - What is Cloud Computing?AWS Webcast - What is Cloud Computing?
AWS Webcast - What is Cloud Computing?
Amazon Web Services
 
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 ...
Amazon Web Services
 
Gaming across multiple devices
Gaming across multiple devicesGaming across multiple devices
Gaming across multiple devices
Patric Boscolo
 
Your First 10 Million Users with Amazon Web Services
Your First 10 Million Users with Amazon Web ServicesYour First 10 Million Users with Amazon Web Services
Your First 10 Million Users with Amazon Web Services
Amazon Web Services
 
Websites on AWS
Websites on AWSWebsites on AWS
Websites on AWS
Amazon Web Services
 
Arquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWS
Arquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWSArquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWS
Arquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWS
Amazon Web Services LATAM
 
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) ...
Amazon Web Services
 
4K Media Workflows on AWS
4K Media Workflows on AWS4K Media Workflows on AWS
4K Media Workflows on AWS
Amazon Web Services
 
AWS Cloud Kata 2014 | Jakarta - 2-1 AWS Intro and Scale 2014
AWS Cloud Kata 2014 | Jakarta - 2-1 AWS Intro and Scale 2014AWS Cloud Kata 2014 | Jakarta - 2-1 AWS Intro and Scale 2014
AWS Cloud Kata 2014 | Jakarta - 2-1 AWS Intro and Scale 2014
Amazon Web Services
 
StartPad Countdown 8 - Amazon Web Services and You
StartPad Countdown 8 - Amazon Web Services and YouStartPad Countdown 8 - Amazon Web Services and You
StartPad Countdown 8 - Amazon Web Services and You
Start Pad
 
AWS Cloud Computing for Startups Werner Vogels -part i
AWS Cloud Computing for Startups   Werner Vogels -part iAWS Cloud Computing for Startups   Werner Vogels -part i
AWS Cloud Computing for Startups Werner Vogels -part iAmazon Web Services
 
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014
Amazon Web Services
 
4K Media Workflows on AWS By Usman Shakeel of Amzaon AWS
4K Media Workflows on AWS By Usman Shakeel of Amzaon AWS4K Media Workflows on AWS By Usman Shakeel of Amzaon AWS
4K Media Workflows on AWS By Usman Shakeel of Amzaon AWS
ETCenter
 
AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...
AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...
AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...Amazon Web Services
 
Building Highly Scalable Immersive Media Solutions on AWS
Building Highly Scalable Immersive Media Solutions on AWSBuilding Highly Scalable Immersive Media Solutions on AWS
Building Highly Scalable Immersive Media Solutions on AWS
ETCenter
 
AWS Summit Benelux 2013 - Media and Online Advertising on AWS
AWS Summit Benelux 2013 - Media and Online Advertising on AWSAWS Summit Benelux 2013 - Media and Online Advertising on AWS
AWS Summit Benelux 2013 - Media and Online Advertising on AWSAmazon Web Services
 

Similar to AWS Pop-up Loft Berlin: Cache is King - Running Lean Architectures: Optimizing for Cost Efficiency (20)

Scale Your Application while Improving Performance and Lowering Costs (SVC203...
Scale Your Application while Improving Performance and Lowering Costs (SVC203...Scale Your Application while Improving Performance and Lowering Costs (SVC203...
Scale Your Application while Improving Performance and Lowering Costs (SVC203...
 
Building High-availability Websites on AWS
Building High-availability Websites on AWSBuilding High-availability Websites on AWS
Building High-availability Websites on AWS
 
High-Availability Websites and Web Applications with AWS
High-Availability Websites and Web Applications with AWSHigh-Availability Websites and Web Applications with AWS
High-Availability Websites and Web Applications with AWS
 
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)
 
AWS Webcast - What is Cloud Computing?
AWS Webcast - What is Cloud Computing?AWS Webcast - What is Cloud Computing?
AWS Webcast - What is Cloud Computing?
 
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 ...
 
Gaming across multiple devices
Gaming across multiple devicesGaming across multiple devices
Gaming across multiple devices
 
Your First 10 Million Users with Amazon Web Services
Your First 10 Million Users with Amazon Web ServicesYour First 10 Million Users with Amazon Web Services
Your First 10 Million Users with Amazon Web Services
 
Websites on AWS
Websites on AWSWebsites on AWS
Websites on AWS
 
Arquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWS
Arquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWSArquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWS
Arquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWS
 
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) ...
 
4K Media Workflows on AWS
4K Media Workflows on AWS4K Media Workflows on AWS
4K Media Workflows on AWS
 
AWS Cloud Kata 2014 | Jakarta - 2-1 AWS Intro and Scale 2014
AWS Cloud Kata 2014 | Jakarta - 2-1 AWS Intro and Scale 2014AWS Cloud Kata 2014 | Jakarta - 2-1 AWS Intro and Scale 2014
AWS Cloud Kata 2014 | Jakarta - 2-1 AWS Intro and Scale 2014
 
StartPad Countdown 8 - Amazon Web Services and You
StartPad Countdown 8 - Amazon Web Services and YouStartPad Countdown 8 - Amazon Web Services and You
StartPad Countdown 8 - Amazon Web Services and You
 
AWS Cloud Computing for Startups Werner Vogels -part i
AWS Cloud Computing for Startups   Werner Vogels -part iAWS Cloud Computing for Startups   Werner Vogels -part i
AWS Cloud Computing for Startups Werner Vogels -part i
 
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014
 
4K Media Workflows on AWS By Usman Shakeel of Amzaon AWS
4K Media Workflows on AWS By Usman Shakeel of Amzaon AWS4K Media Workflows on AWS By Usman Shakeel of Amzaon AWS
4K Media Workflows on AWS By Usman Shakeel of Amzaon AWS
 
AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...
AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...
AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...
 
Building Highly Scalable Immersive Media Solutions on AWS
Building Highly Scalable Immersive Media Solutions on AWSBuilding Highly Scalable Immersive Media Solutions on AWS
Building Highly Scalable Immersive Media Solutions on AWS
 
AWS Summit Benelux 2013 - Media and Online Advertising on AWS
AWS Summit Benelux 2013 - Media and Online Advertising on AWSAWS Summit Benelux 2013 - Media and Online Advertising on AWS
AWS Summit Benelux 2013 - Media and Online Advertising on AWS
 

More from AWS Germany

Analytics Web Day | From Theory to Practice: Big Data Stories from the Field
Analytics Web Day | From Theory to Practice: Big Data Stories from the FieldAnalytics Web Day | From Theory to Practice: Big Data Stories from the Field
Analytics Web Day | From Theory to Practice: Big Data Stories from the Field
AWS Germany
 
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
AWS Germany
 
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
AWS Germany
 
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
AWS Germany
 
Modern Applications Web Day | Container Workloads on AWS
Modern Applications Web Day | Container Workloads on AWSModern Applications Web Day | Container Workloads on AWS
Modern Applications Web Day | Container Workloads on AWS
AWS Germany
 
Modern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
Modern Applications Web Day | Continuous Delivery to Amazon EKS with SpinnakerModern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
Modern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
AWS Germany
 
Building Smart Home skills for Alexa
Building Smart Home skills for AlexaBuilding Smart Home skills for Alexa
Building Smart Home skills for Alexa
AWS Germany
 
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructureHotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
AWS Germany
 
Wild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
Wild Rydes with Big Data/Kinesis focus: AWS Serverless WorkshopWild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
Wild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
AWS Germany
 
Log Analytics with AWS
Log Analytics with AWSLog Analytics with AWS
Log Analytics with AWS
AWS Germany
 
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
AWS Germany
 
AWS Programme für Nonprofits
AWS Programme für NonprofitsAWS Programme für Nonprofits
AWS Programme für Nonprofits
AWS Germany
 
Microservices and Data Design
Microservices and Data DesignMicroservices and Data Design
Microservices and Data Design
AWS Germany
 
Serverless vs. Developers – the real crash
Serverless vs. Developers – the real crashServerless vs. Developers – the real crash
Serverless vs. Developers – the real crash
AWS Germany
 
Query your data in S3 with SQL and optimize for cost and performance
Query your data in S3 with SQL and optimize for cost and performanceQuery your data in S3 with SQL and optimize for cost and performance
Query your data in S3 with SQL and optimize for cost and performance
AWS Germany
 
Secret Management with Hashicorp’s Vault
Secret Management with Hashicorp’s VaultSecret Management with Hashicorp’s Vault
Secret Management with Hashicorp’s Vault
AWS Germany
 
EKS Workshop
 EKS Workshop EKS Workshop
EKS Workshop
AWS Germany
 
Scale to Infinity with ECS
Scale to Infinity with ECSScale to Infinity with ECS
Scale to Infinity with ECS
AWS Germany
 
Containers on AWS - State of the Union
Containers on AWS - State of the UnionContainers on AWS - State of the Union
Containers on AWS - State of the Union
AWS Germany
 
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
Deploying and Scaling Your First Cloud Application with Amazon LightsailDeploying and Scaling Your First Cloud Application with Amazon Lightsail
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
AWS Germany
 

More from AWS Germany (20)

Analytics Web Day | From Theory to Practice: Big Data Stories from the Field
Analytics Web Day | From Theory to Practice: Big Data Stories from the FieldAnalytics Web Day | From Theory to Practice: Big Data Stories from the Field
Analytics Web Day | From Theory to Practice: Big Data Stories from the Field
 
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
 
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
 
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
 
Modern Applications Web Day | Container Workloads on AWS
Modern Applications Web Day | Container Workloads on AWSModern Applications Web Day | Container Workloads on AWS
Modern Applications Web Day | Container Workloads on AWS
 
Modern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
Modern Applications Web Day | Continuous Delivery to Amazon EKS with SpinnakerModern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
Modern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
 
Building Smart Home skills for Alexa
Building Smart Home skills for AlexaBuilding Smart Home skills for Alexa
Building Smart Home skills for Alexa
 
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructureHotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
 
Wild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
Wild Rydes with Big Data/Kinesis focus: AWS Serverless WorkshopWild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
Wild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
 
Log Analytics with AWS
Log Analytics with AWSLog Analytics with AWS
Log Analytics with AWS
 
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
 
AWS Programme für Nonprofits
AWS Programme für NonprofitsAWS Programme für Nonprofits
AWS Programme für Nonprofits
 
Microservices and Data Design
Microservices and Data DesignMicroservices and Data Design
Microservices and Data Design
 
Serverless vs. Developers – the real crash
Serverless vs. Developers – the real crashServerless vs. Developers – the real crash
Serverless vs. Developers – the real crash
 
Query your data in S3 with SQL and optimize for cost and performance
Query your data in S3 with SQL and optimize for cost and performanceQuery your data in S3 with SQL and optimize for cost and performance
Query your data in S3 with SQL and optimize for cost and performance
 
Secret Management with Hashicorp’s Vault
Secret Management with Hashicorp’s VaultSecret Management with Hashicorp’s Vault
Secret Management with Hashicorp’s Vault
 
EKS Workshop
 EKS Workshop EKS Workshop
EKS Workshop
 
Scale to Infinity with ECS
Scale to Infinity with ECSScale to Infinity with ECS
Scale to Infinity with ECS
 
Containers on AWS - State of the Union
Containers on AWS - State of the UnionContainers on AWS - State of the Union
Containers on AWS - State of the Union
 
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
Deploying and Scaling Your First Cloud Application with Amazon LightsailDeploying and Scaling Your First Cloud Application with Amazon Lightsail
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
 

Recently uploaded

DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 

Recently uploaded (20)

DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 

AWS Pop-up Loft Berlin: Cache is King - Running Lean Architectures: Optimizing for Cost Efficiency

  • 1. Cache is King Scale Your Application while Improving Performance and Lowering Costs Constantin Gonzalez Principal Solutions Architect Amazon Web Services Germany GmbH glez@amazon.de | @zalez
  • 5. Content Breakdown 87% of Your Site Consists Of Static/Re-usable Content
  • 6. 52% of The Internet’s Content is NOT Cached Today But Wait…
  • 7. Cache is King Source: httparchive.org300K Tracked Websites Oct 2014-Oct 2015 ~52% {
  • 9. Browser Cache Edge Cache Web Cache Application Cache Database Cache Image Source: cakeormistake.wordpress.com
  • 10.
  • 11. Speed of Light ~300,000 Km/s Image Source: wordlesstech.com
  • 12. ~200,000 Km/s through fiber Image Source: www2.wiringandcabling.com
  • 14. Download Performance Round Trip: 13,026 km Theoretical: 65 ms
  • 15. Download Performance Round Trip: 13,026 km Theoretical: 65 ms Measured: 68 ms
  • 16. Time to First Byte 68 ms Client Server
  • 17. Time to First Byte 68 ms 68 ms Client Server SYN SYN/ACK
  • 18. Time to First Byte 68 ms 68 ms 68 ms Client Server 136 ms SYN SYN/ACK ACK, GET /image.jpg HTTP/1.1
  • 20. Browser Caching Set max-age or expiry date in the headers. HTML5 Application Cache. Helps eliminate network latency. But… Browser cache size is limited. (e.g. IE is 8-50M, Chrome is < 80M, Firefox is 50MB, etc.)
  • 22. Time to First Byte 68 ms 68 ms 68 ms Client Server 136 ms SYN SYN/ACK ACK, GET /image.jpg HTTP/1.1
  • 23. Bring the Bytes Closer to Your Users 68 ms Client Origin SYN 10 ms SYN/ACK GET /image.jpg HTTP/1.1ACK, GET /image.jpg HTTP/1.1 CloudFront Saves 68 ms RTT SYN SYN/ACK Time to first byte: 20 ms vs. 136 ms
  • 24. Amazon CloudFront: 53 Global Locations
  • 25. Edge Cache: Amazon CloudFront Amazon S3 Elastic Load Balancing Mobile Clients Browsers/Desktop Clients Tablets/Devices Amazon CloudFront Edge Location
  • 26. Edge Cache How do you decide what to cache? • Static or Re-Usable Content • Customized Content • On-Demand and Live Video • Dynamic or Unique Content
  • 27. Cache Static or Re-Usable Content HTTP/1.0 200 OK Date: Mon, 19 Mar 201 12:51:28 GMT Server: Apache Last-Modified: Mon, 19 Mar 2012 07:15:25 GMT Accept-Ranges: bytes Content-Length: 1918 Cache-Control: max-age=86400 Content-Type: image/jpeg Vary: Accept-Encoding Age: 16 X-Cache: Hit from cloudfront Connection: keep-alive
  • 28.
  • 30.
  • 32. Caching Your Live Stream? Source HTTP Cache Edge Paris New York Encoder HLS, HDS, Smooth Streaming Hong Kong
  • 33.
  • 34.
  • 35. Dynamic Content? Zero TTL – cannot be cached! CloudFront can still help…
  • 36. Dynamic Content? Zero TTL – cannot be cached! CloudFront can still help… TCP/IP optimizations for the network path Keep-Alive Connections to reduce RTT SSL Termination close to viewers POST/PUT upload optimizations Latency Based Routing Low prices, same as static content delivery!
  • 39. You can’t have dessert, until you have your dinner! -An Experiment. https://secure.flickr.com/photos/stephen-oung/6319155216/
  • 40. Experiment Premise • Start with basic infrastructure. – Single m1.large EC2 instance running Amazon Linux – Single non-Multi-AZ m1.xlarge RDS MySQL 5.6 instance – Apache httpd-2.2.25 – PHP 5.3.27 – Drupal Commerce Kickstart 7.2 – EIP on Instance • Throw a ton of traffic at it. – 8,000,000 queries, 40 per second, from 4 other instances. • Profile it. – New Relic PHP agent – webpagetest.org
  • 42. Results? (not pretty) 14.7 second responses Mostly Static Data Low RPM
  • 43. Web Cache Webserver or proxy caches would live between your CDN/Users and your web tier and can offer up increased cost performance via reducing internal application and database load. Can also offer up increased edge to origin speed for lots of content.
  • 44. Web Cache Popular solutions: – Varnish – Nginx – Apache with mod_cache/mod_proxy – Squid – Perlbal – Language/framework caches (i.e., APC, Zend)
  • 45. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 46. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 47. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 48. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 49. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 50. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 51. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 52. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 53. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 54. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 55. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 56. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 57. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 58. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 59. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 60. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 61. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 62. Web Cache Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Internet Gateway Amazon Route 53 Amazon CloudFront Customer Traffic
  • 63. Web Cache • Opt for in-memory caching when possible. • Pay attention to your cache hit/miss ratios. It could be a sign that you need to re-size the instances or re-size the number of nodes in your cache pool. • Set smart TTLs so that you don’t affect new deploys or cache content for too long. • Be smart about what cookies can burst cache and what cookies can’t. Don’t serve up other people’s content or stale dynamic pages.
  • 64. Web Cache How do you decide what to cache? – All logged out user pages – Any completely static pages – Traffic/log analysis • Look at your web logs/CDN logs • Find heavily hit pages • Figure out how often they actually change • Apply a TTL to that page to be cached – Even 60 second TTLs could help drastically!
  • 65. Browser Cache Edge Cache Web Cache Application Cache
  • 66. Application Cache Application level caches for information such as session data, temporary application data such as cart information, and live aggregation of data feeds.
  • 67. Application Cache Popular solutions: – Memcached – Redis – Cassandra – Amazon DynamoDB
  • 68. Application Cache Availability Zone VPC Subnet VPC SubnetVPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing ElastiCache Cache Node Availability Zone VPC Subnet VPC SubnetVPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing ElastiCache Cache Node Internet Gateway
  • 69. Application Cache Availability Zone VPC Subnet VPC SubnetVPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing ElastiCache Cache Node Availability Zone VPC Subnet VPC SubnetVPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing ElastiCache Cache Node Internet Gateway
  • 70. Amazon DynamoDB Session Handler for PHP https://aws.amazon.com/sdkforphp/
  • 71. Application Cache Internet Gateway Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Squid Proxy Instances Amazon DynamoDB Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Squid Proxy Instances
  • 72. Application Cache Internet Gateway Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Squid Proxy Instances Amazon DynamoDB Availability Zone VPC Subnet VPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing Squid Proxy Instances
  • 73. Application Cache Use Cases: – Session information – Temporary data • Cart info, metadata – Rate limiting • Fight abuse of APIs, spamming, functionality abuse – Counters • Views, Scores, Leader Boards
  • 74. Application Cache How do you decide what to cache? – Ideally, you have to treat data you cache at this tier as loss tolerant if working with in-memory caches. – Session information that wouldn’t make sense in cookies or in a true DB. – Look at the kind of data your application is generating and storing in a DB that it might not need to.
  • 75. Browser Cache Edge Cache Web Cache Application Cache Database Cache
  • 76. Database Cache Reduce workload on database servers by caching commonly requested information, or any information that might not change frequently (i.e., user info, listing info, product info).
  • 77. Database Cache Popular solutions: – In-engine query caches – Memcached • On dedicated host • On DB host (built in w/ MySQL 5.6) – Redis • On dedicated host
  • 78. Database Cache A word of caution: In-engine DB caches are often not recommended for many use cases, as they can significantly impact the performance of many databases. Depending on the workload and dataset you have, an in-engine query cache might not be a good idea for you. We recommend off DB caches where possible.
  • 79. Database Cache Availability Zone VPC Subnet VPC SubnetVPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing ElastiCache Cache Node Availability Zone VPC Subnet VPC SubnetVPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing ElastiCache Cache Node Internet Gateway RDS Instance Primary (M-AZ) RDS Instance Standby (MAZ)
  • 80. Database Cache Availability Zone VPC Subnet VPC SubnetVPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing ElastiCache Cache Node Availability Zone VPC Subnet VPC SubnetVPC Subnet Elastic Load Balancing Cache Instances Web/App Instances Elastic Load Balancing ElastiCache Cache Node Internet Gateway RDS Instance Primary (M-AZ) RDS Instance Standby (MAZ)
  • 81. Memcached – Code Sample function retrieveValue($query) { $queryId = md5($query); if ($myValue = $memcache->get($queryId)) { return $myValue; } else { $myValue = dbfetch($query); $memcache->set($queryId, $myValue); return $myValue; } }
  • 82. MySQL 5.6 + Memcached RDS MySQL supports version 5.6 with integrated Memcached on the instance: – Part of the InnoDB engine – Memcached running as part of MySQL talks directly to data in InnoDB tables, essentially turning MySQL into a fast “key-value store” – From the opposite view point, adds persistence to Memcached – Same Memcached API as standalone https://dev.mysql.com/doc/refman/5.6/en/innodb-memcached-intro.html
  • 83. Cache everything MongoDB DynamoDB Amazon RDS MongoDB DynamoDB Amazon RDS ElastiCache
  • 84. MongoDB Queries • Shut down 8 machines Caching saves money DynamoDB Reads • Saved 3k reads per second • (>20k reads per second in total)
  • 85. Without negative caching Cache really everything! With negative caching • Cache hit ratio 25-30% • Cache hit ratio 89-95% Hit Miss
  • 86. AWS Marketplace & Partners Can Help • Customers can find, research, buy software. • Simple pricing, aligns with Amazon EC2 usage model. • Launch in minutes! • Marketplace billing integrated into your AWS account. • 1100+ products across 24+ categories. Learn more at: aws.amazon.com/marketplace
  • 89. Results? (not pretty) 14.7 second responses Mostly Static Data Low RPM
  • 90. Experiment Infrastructure (with cake) • Added in ElastiCache Memcached cache.m1.large • Added in Amazon CloudFront for static content – Tuned expires and cache headers in Apache • Added in APC for PHP caching – Increased memory to 128Mb, no other changes • Did nothing to the DB • Drupal memcached & CDN modules
  • 91. CloudFront Experiment Infrastructure (with cake) Web/App Instance Elastic IP Amazon RDS DB Instance Clients ElastiCache Cache Node
  • 92. Results? (AWESOME!) response time ~1/2 ~2x RPM Repeat Page view from 15.8sec to 2.75sec