SlideShare ist ein Scribd-Unternehmen logo
1 von 94
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

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 ThreatsAmazon 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 2013Amazon 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 AWSAmazon Web Services
 
Introduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot InstancesIntroduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot InstancesAmazon 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 UsersAmazon 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 AvivAmazon 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 TalksAmazon 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 AvivAmazon Web Services
 
Next-Generation Firewall Services VPC Integration
Next-Generation Firewall Services VPC IntegrationNext-Generation Firewall Services VPC Integration
Next-Generation Firewall Services VPC IntegrationAmazon 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 ServicesAmazon 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 UsersAmazon 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 LogsAmazon 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 startupsAmazon 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 #WinningAmazon 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
 

Was ist angesagt? (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)
 

Andere mochten auch

AMY LIDE - RESUME 2016
AMY LIDE - RESUME 2016AMY LIDE - RESUME 2016
AMY LIDE - RESUME 2016Amy E Lide
 
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 EstaduaisRenato 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 ArchivesNoreen Whysel
 
Sistema financiero en méxico
Sistema financiero en méxicoSistema financiero en méxico
Sistema financiero en méxicokaren 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 meetupMike Long
 
Riot Games' Insights Evolution
Riot Games' Insights EvolutionRiot Games' Insights Evolution
Riot Games' Insights Evolutionbhsiung
 
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 cambiosMitzi Linares Vizcarra
 
electrostatic charge hazards
electrostatic charge hazardselectrostatic charge hazards
electrostatic charge hazardsabbas taheri
 

Andere mochten auch (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
 

Ähnlich wie 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 devicesPatric 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 ServicesAmazon 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 AWSAmazon 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
 
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 2014Amazon 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 YouStart 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 2014Amazon 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 AWSETCenter
 
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 AWSETCenter
 
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
 

Ähnlich wie 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
 

Mehr von 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 FieldAWS 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 AWSAWS 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 SpinnakerAWS Germany
 
Building Smart Home skills for Alexa
Building Smart Home skills for AlexaBuilding Smart Home skills for Alexa
Building Smart Home skills for AlexaAWS 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 infrastructureAWS 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 WorkshopAWS Germany
 
Log Analytics with AWS
Log Analytics with AWSLog Analytics with AWS
Log Analytics with AWSAWS 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 NonprofitsAWS Germany
 
Microservices and Data Design
Microservices and Data DesignMicroservices and Data Design
Microservices and Data DesignAWS Germany
 
Serverless vs. Developers – the real crash
Serverless vs. Developers – the real crashServerless vs. Developers – the real crash
Serverless vs. Developers – the real crashAWS 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 performanceAWS Germany
 
Secret Management with Hashicorp’s Vault
Secret Management with Hashicorp’s VaultSecret Management with Hashicorp’s Vault
Secret Management with Hashicorp’s VaultAWS Germany
 
Scale to Infinity with ECS
Scale to Infinity with ECSScale to Infinity with ECS
Scale to Infinity with ECSAWS 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 UnionAWS 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 LightsailAWS Germany
 

Mehr von 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
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
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 MountPuma Security, LLC
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
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 2024Rafal Los
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
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 2024Results
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
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...Drew Madelung
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
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 Nanonetsnaman860154
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 

Kürzlich hochgeladen (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
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
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
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
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
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...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 

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