running lean and mean: designing cost-efficient architectures on aws (arc313) | aws re:invent 2013

Post on 06-May-2015

1.770 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

Whether you're a startup getting to profitability or an enterprise optimizing spend, it pays to run cost-efficient architectures on AWS. Dive deep into techniques used by successful customers to reduce waste and fine-tune their AWS spending, often with improved performance and a better end-customer experience. Some techniques covered in this session: Learn how to make the most of Auto Scaling, develop an effective Spot Instance strategy, and optimize for your daily traffic cycles. Learn techniques to tier storage, offload your static content to Amazon S3 and Amazon CloudFront, reduce your database loads with edge caching, spawn part-time databases, pool resources across accounts, and even teach your dev/test instances to sleep. Showcasing easily-applicable methods, this session could be your best invested hour all day.

TRANSCRIPT

copy 2013 Amazoncom Inc and its affiliates All rights reserved May not be copied modified or distributed in whole or in part without the express consent of Amazoncom Inc

Constantin Gonzalez Solutions Architect AmazonRalph Gootee CTO and co-founder PlanGridcom

November 14 2013

Running Lean and MeanDesigning Cost-Effective Architectures on AWS

Friday November 15 13

What Yoursquoll Get out of this Sessionbull A lower AWS billbull A more scaleable robust dynamic architecturebull More time to innovatebull Real-world customer examplesbull All in 7 easy to implement sections

Friday November 15 13

Cloud Computing Benefitsbull Pay-as-you-go no up-front investmentsbull Low on-going costbull Flexible capacitybull Speed agility amp innovationbull Focus on your businessbull Go global in Minutes

Friday November 15 13

Cloud Computing Benefitsbull Pay-as-you-go no up-front investmentsbull Low on-going costbull Flexible capacitybull Speed agility amp innovationbull Focus on your businessbull Go global in Minutes

Friday November 15 13

Amazon EC2

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

Poll Who Uses Auto Scaling Already

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

AWS CloudFormation Load BalancerElasticLoadBalancer Type AWSElasticLoadBalancingLoadBalancer Metadata Comment This is my load balancer Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c] LBCookieStickinessPolicy [ PolicyName CookieBasedPolicy CookieExpirationPeriod 30 ] Listeners [ LoadBalancerPort 80 InstancePort 80 Protocol HTTP PolicyNames [ CookieBasedPolicy ] ] HealthCheck Target HTTP80 HealthyThreshold 2 UnhealthyThreshold 5 Interval 10 Timeout 5

Friday November 15 13

AWS CloudFormation Launch ConfigurationLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

AWS CloudFormation Auto Scaling GroupWebServerGroup

Type AWSAutoScalingAutoScalingGroup Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c ] LaunchConfigurationName Ref LaunchConfig MinSize 1 MaxSize 5 DesiredCapacity 2 LoadBalancerNames [ Ref ElasticLoadBalancer ]

Friday November 15 13

Auto Scaling Tips

bull Scale up like a rocketbull Scale down like a featherbull Find the right instance typebull Leave headroom for peaksbull Bonus Better fault-tolerancebull Bonus Better scalability

Friday November 15 13

2 Turn off Unused Instances

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

What Yoursquoll Get out of this Sessionbull A lower AWS billbull A more scaleable robust dynamic architecturebull More time to innovatebull Real-world customer examplesbull All in 7 easy to implement sections

Friday November 15 13

Cloud Computing Benefitsbull Pay-as-you-go no up-front investmentsbull Low on-going costbull Flexible capacitybull Speed agility amp innovationbull Focus on your businessbull Go global in Minutes

Friday November 15 13

Cloud Computing Benefitsbull Pay-as-you-go no up-front investmentsbull Low on-going costbull Flexible capacitybull Speed agility amp innovationbull Focus on your businessbull Go global in Minutes

Friday November 15 13

Amazon EC2

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

Poll Who Uses Auto Scaling Already

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

AWS CloudFormation Load BalancerElasticLoadBalancer Type AWSElasticLoadBalancingLoadBalancer Metadata Comment This is my load balancer Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c] LBCookieStickinessPolicy [ PolicyName CookieBasedPolicy CookieExpirationPeriod 30 ] Listeners [ LoadBalancerPort 80 InstancePort 80 Protocol HTTP PolicyNames [ CookieBasedPolicy ] ] HealthCheck Target HTTP80 HealthyThreshold 2 UnhealthyThreshold 5 Interval 10 Timeout 5

Friday November 15 13

AWS CloudFormation Launch ConfigurationLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

AWS CloudFormation Auto Scaling GroupWebServerGroup

Type AWSAutoScalingAutoScalingGroup Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c ] LaunchConfigurationName Ref LaunchConfig MinSize 1 MaxSize 5 DesiredCapacity 2 LoadBalancerNames [ Ref ElasticLoadBalancer ]

Friday November 15 13

Auto Scaling Tips

bull Scale up like a rocketbull Scale down like a featherbull Find the right instance typebull Leave headroom for peaksbull Bonus Better fault-tolerancebull Bonus Better scalability

Friday November 15 13

2 Turn off Unused Instances

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Cloud Computing Benefitsbull Pay-as-you-go no up-front investmentsbull Low on-going costbull Flexible capacitybull Speed agility amp innovationbull Focus on your businessbull Go global in Minutes

Friday November 15 13

Cloud Computing Benefitsbull Pay-as-you-go no up-front investmentsbull Low on-going costbull Flexible capacitybull Speed agility amp innovationbull Focus on your businessbull Go global in Minutes

Friday November 15 13

Amazon EC2

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

Poll Who Uses Auto Scaling Already

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

AWS CloudFormation Load BalancerElasticLoadBalancer Type AWSElasticLoadBalancingLoadBalancer Metadata Comment This is my load balancer Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c] LBCookieStickinessPolicy [ PolicyName CookieBasedPolicy CookieExpirationPeriod 30 ] Listeners [ LoadBalancerPort 80 InstancePort 80 Protocol HTTP PolicyNames [ CookieBasedPolicy ] ] HealthCheck Target HTTP80 HealthyThreshold 2 UnhealthyThreshold 5 Interval 10 Timeout 5

Friday November 15 13

AWS CloudFormation Launch ConfigurationLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

AWS CloudFormation Auto Scaling GroupWebServerGroup

Type AWSAutoScalingAutoScalingGroup Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c ] LaunchConfigurationName Ref LaunchConfig MinSize 1 MaxSize 5 DesiredCapacity 2 LoadBalancerNames [ Ref ElasticLoadBalancer ]

Friday November 15 13

Auto Scaling Tips

bull Scale up like a rocketbull Scale down like a featherbull Find the right instance typebull Leave headroom for peaksbull Bonus Better fault-tolerancebull Bonus Better scalability

Friday November 15 13

2 Turn off Unused Instances

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Cloud Computing Benefitsbull Pay-as-you-go no up-front investmentsbull Low on-going costbull Flexible capacitybull Speed agility amp innovationbull Focus on your businessbull Go global in Minutes

Friday November 15 13

Amazon EC2

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

Poll Who Uses Auto Scaling Already

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

AWS CloudFormation Load BalancerElasticLoadBalancer Type AWSElasticLoadBalancingLoadBalancer Metadata Comment This is my load balancer Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c] LBCookieStickinessPolicy [ PolicyName CookieBasedPolicy CookieExpirationPeriod 30 ] Listeners [ LoadBalancerPort 80 InstancePort 80 Protocol HTTP PolicyNames [ CookieBasedPolicy ] ] HealthCheck Target HTTP80 HealthyThreshold 2 UnhealthyThreshold 5 Interval 10 Timeout 5

Friday November 15 13

AWS CloudFormation Launch ConfigurationLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

AWS CloudFormation Auto Scaling GroupWebServerGroup

Type AWSAutoScalingAutoScalingGroup Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c ] LaunchConfigurationName Ref LaunchConfig MinSize 1 MaxSize 5 DesiredCapacity 2 LoadBalancerNames [ Ref ElasticLoadBalancer ]

Friday November 15 13

Auto Scaling Tips

bull Scale up like a rocketbull Scale down like a featherbull Find the right instance typebull Leave headroom for peaksbull Bonus Better fault-tolerancebull Bonus Better scalability

Friday November 15 13

2 Turn off Unused Instances

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Amazon EC2

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

Poll Who Uses Auto Scaling Already

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

AWS CloudFormation Load BalancerElasticLoadBalancer Type AWSElasticLoadBalancingLoadBalancer Metadata Comment This is my load balancer Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c] LBCookieStickinessPolicy [ PolicyName CookieBasedPolicy CookieExpirationPeriod 30 ] Listeners [ LoadBalancerPort 80 InstancePort 80 Protocol HTTP PolicyNames [ CookieBasedPolicy ] ] HealthCheck Target HTTP80 HealthyThreshold 2 UnhealthyThreshold 5 Interval 10 Timeout 5

Friday November 15 13

AWS CloudFormation Launch ConfigurationLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

AWS CloudFormation Auto Scaling GroupWebServerGroup

Type AWSAutoScalingAutoScalingGroup Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c ] LaunchConfigurationName Ref LaunchConfig MinSize 1 MaxSize 5 DesiredCapacity 2 LoadBalancerNames [ Ref ElasticLoadBalancer ]

Friday November 15 13

Auto Scaling Tips

bull Scale up like a rocketbull Scale down like a featherbull Find the right instance typebull Leave headroom for peaksbull Bonus Better fault-tolerancebull Bonus Better scalability

Friday November 15 13

2 Turn off Unused Instances

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

Poll Who Uses Auto Scaling Already

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

AWS CloudFormation Load BalancerElasticLoadBalancer Type AWSElasticLoadBalancingLoadBalancer Metadata Comment This is my load balancer Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c] LBCookieStickinessPolicy [ PolicyName CookieBasedPolicy CookieExpirationPeriod 30 ] Listeners [ LoadBalancerPort 80 InstancePort 80 Protocol HTTP PolicyNames [ CookieBasedPolicy ] ] HealthCheck Target HTTP80 HealthyThreshold 2 UnhealthyThreshold 5 Interval 10 Timeout 5

Friday November 15 13

AWS CloudFormation Launch ConfigurationLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

AWS CloudFormation Auto Scaling GroupWebServerGroup

Type AWSAutoScalingAutoScalingGroup Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c ] LaunchConfigurationName Ref LaunchConfig MinSize 1 MaxSize 5 DesiredCapacity 2 LoadBalancerNames [ Ref ElasticLoadBalancer ]

Friday November 15 13

Auto Scaling Tips

bull Scale up like a rocketbull Scale down like a featherbull Find the right instance typebull Leave headroom for peaksbull Bonus Better fault-tolerancebull Bonus Better scalability

Friday November 15 13

2 Turn off Unused Instances

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Poll Who Uses Auto Scaling Already

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

AWS CloudFormation Load BalancerElasticLoadBalancer Type AWSElasticLoadBalancingLoadBalancer Metadata Comment This is my load balancer Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c] LBCookieStickinessPolicy [ PolicyName CookieBasedPolicy CookieExpirationPeriod 30 ] Listeners [ LoadBalancerPort 80 InstancePort 80 Protocol HTTP PolicyNames [ CookieBasedPolicy ] ] HealthCheck Target HTTP80 HealthyThreshold 2 UnhealthyThreshold 5 Interval 10 Timeout 5

Friday November 15 13

AWS CloudFormation Launch ConfigurationLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

AWS CloudFormation Auto Scaling GroupWebServerGroup

Type AWSAutoScalingAutoScalingGroup Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c ] LaunchConfigurationName Ref LaunchConfig MinSize 1 MaxSize 5 DesiredCapacity 2 LoadBalancerNames [ Ref ElasticLoadBalancer ]

Friday November 15 13

Auto Scaling Tips

bull Scale up like a rocketbull Scale down like a featherbull Find the right instance typebull Leave headroom for peaksbull Bonus Better fault-tolerancebull Bonus Better scalability

Friday November 15 13

2 Turn off Unused Instances

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

1 Use Auto Scaling

Friday November 15 13

AWS CloudFormation Load BalancerElasticLoadBalancer Type AWSElasticLoadBalancingLoadBalancer Metadata Comment This is my load balancer Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c] LBCookieStickinessPolicy [ PolicyName CookieBasedPolicy CookieExpirationPeriod 30 ] Listeners [ LoadBalancerPort 80 InstancePort 80 Protocol HTTP PolicyNames [ CookieBasedPolicy ] ] HealthCheck Target HTTP80 HealthyThreshold 2 UnhealthyThreshold 5 Interval 10 Timeout 5

Friday November 15 13

AWS CloudFormation Launch ConfigurationLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

AWS CloudFormation Auto Scaling GroupWebServerGroup

Type AWSAutoScalingAutoScalingGroup Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c ] LaunchConfigurationName Ref LaunchConfig MinSize 1 MaxSize 5 DesiredCapacity 2 LoadBalancerNames [ Ref ElasticLoadBalancer ]

Friday November 15 13

Auto Scaling Tips

bull Scale up like a rocketbull Scale down like a featherbull Find the right instance typebull Leave headroom for peaksbull Bonus Better fault-tolerancebull Bonus Better scalability

Friday November 15 13

2 Turn off Unused Instances

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

AWS CloudFormation Load BalancerElasticLoadBalancer Type AWSElasticLoadBalancingLoadBalancer Metadata Comment This is my load balancer Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c] LBCookieStickinessPolicy [ PolicyName CookieBasedPolicy CookieExpirationPeriod 30 ] Listeners [ LoadBalancerPort 80 InstancePort 80 Protocol HTTP PolicyNames [ CookieBasedPolicy ] ] HealthCheck Target HTTP80 HealthyThreshold 2 UnhealthyThreshold 5 Interval 10 Timeout 5

Friday November 15 13

AWS CloudFormation Launch ConfigurationLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

AWS CloudFormation Auto Scaling GroupWebServerGroup

Type AWSAutoScalingAutoScalingGroup Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c ] LaunchConfigurationName Ref LaunchConfig MinSize 1 MaxSize 5 DesiredCapacity 2 LoadBalancerNames [ Ref ElasticLoadBalancer ]

Friday November 15 13

Auto Scaling Tips

bull Scale up like a rocketbull Scale down like a featherbull Find the right instance typebull Leave headroom for peaksbull Bonus Better fault-tolerancebull Bonus Better scalability

Friday November 15 13

2 Turn off Unused Instances

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

AWS CloudFormation Launch ConfigurationLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

AWS CloudFormation Auto Scaling GroupWebServerGroup

Type AWSAutoScalingAutoScalingGroup Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c ] LaunchConfigurationName Ref LaunchConfig MinSize 1 MaxSize 5 DesiredCapacity 2 LoadBalancerNames [ Ref ElasticLoadBalancer ]

Friday November 15 13

Auto Scaling Tips

bull Scale up like a rocketbull Scale down like a featherbull Find the right instance typebull Leave headroom for peaksbull Bonus Better fault-tolerancebull Bonus Better scalability

Friday November 15 13

2 Turn off Unused Instances

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

AWS CloudFormation Auto Scaling GroupWebServerGroup

Type AWSAutoScalingAutoScalingGroup Properties AvailabilityZones [ us-east-1a us-east-1b us-east-1c ] LaunchConfigurationName Ref LaunchConfig MinSize 1 MaxSize 5 DesiredCapacity 2 LoadBalancerNames [ Ref ElasticLoadBalancer ]

Friday November 15 13

Auto Scaling Tips

bull Scale up like a rocketbull Scale down like a featherbull Find the right instance typebull Leave headroom for peaksbull Bonus Better fault-tolerancebull Bonus Better scalability

Friday November 15 13

2 Turn off Unused Instances

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Auto Scaling Tips

bull Scale up like a rocketbull Scale down like a featherbull Find the right instance typebull Leave headroom for peaksbull Bonus Better fault-tolerancebull Bonus Better scalability

Friday November 15 13

2 Turn off Unused Instances

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

2 Turn off Unused Instances

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

2 Turn off Unused Instancesbull Developertesttraining instancesbull Use simple instance startstop orbull Tear downbuild up altogetherbull Instances are disposablebull Automate automate automate

bull AWS CloudFormationbull Weekendoff-hours scriptsbull Use tags

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Customer DevTest Example

Monday Friday End of vacation season

35 saved

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

3 Use Reserved Instances

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

3 Use Reserved Instances

1y RIBreak even

3y RIBreak even

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Reserved Instances Just Got More Flexiblebull Can now be moved between AZsbull Can be moved between EC2-Classic

and EC2-VPC platformsbull Size can be modified within the same

instance family

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

4 Use Spot Instances

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Poll Who Uses Spot Instances Already

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

4 Use Spot Instancesbull Price based on supplydemandbull You choose your maximum pricehourbull Your instance is started if Spot Price is lowerbull Your instance is terminated if Spot Price is higherbull But You did plan for fault-tolerance

didnrsquot you

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

4 Use Spot Instances

On-demand$024

$0028 (117) $0026 (108)

$328(1367)

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

4 Use Spot Instancesbull Very dynamic pricingbull Opportunity to save 80-90 cost

bull But there are risks

bull Different prices per AZbull Leverage Auto Scaling

bull One group with Spot instancesbull One group with On-Demandbull Get the best of both worlds

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Spot Instance Use Casesbull Batch processingbull Amazon Elastic MapReducebull Web crawlersbull DevelopmentTestbull VideoImage renderingbull HPCbull Monte-Carlo analysis

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

AWS CloudFormation Using Spot InstancesLaunchConfig Type AWSAutoScalingLaunchConfiguration Metadata AWSCloudFormationInit config hellip packages sources files services hellip SpotPrice 059 Properties ImageId ami-149f7863 InstanceType m1small SecurityGroups [ Ref WebServerSecurityGroup ] KeyName MySSHKey UserData FnBase64 FnJoin [ [ binbash -vn hellip your user data script hellip ]]

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Customer Case Study tadaanetbull Photo sharing mobile appbull Built-in social networkbull gt3 Million usersbull Moved from on-demand to Spotbull 57 reduction of Amazon EC2 bill

through Spot Instances

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Ralph GooteeCTO and co-founderralphplangridcom

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

PlanGridrsquos13 AutoscalingBased13 on13 SQS13 countsNew13 EC213 instances13 start13 fast13 with13 AMIsConfigurable13 PerformanceOne13 Months13 Dev13 Time

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Queue Count

Server Count

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

$15000 $9000without13 autoscaling

September Octoberautoscaling

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

40Autoscaling13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

addiMonallyhellip

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

42Reserved13 instances13 saved

on13 our13 Amazon13 EC213 bill

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

PlanGridrsquos13 QueuingAmazon13 SQS13 Json13 messages13 One13 message13 per13 jobLong13 running13 jobs

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

per13 year

$1800per13 year

Amazon13 SQS$1200

Amazon13 EC2

Amazon13 EC213 Large13 instance13 1y13 reserved13 heavy13 utl

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

You13 Manage13 Amazon13 EC2DownMmeInstabilityMaintenanceManpower

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

AWS13 Manages13 Amazon13 SQSRedundantScaleable31413 Million13 Requests$15713 Dollars

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

PlanGridrsquos13 StorageMulMple13 Amazon13 S313 BucketsData13 Archived13 to13 Amazon13 GlacierHuge13 Chunks13 of13 Binary13 Data

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

89Amazon13 Glacier13 will13 save

on13 our13 storage13 bill

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Amazon S3

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

5 Leverage Amazon S3 Storage Classesbull Reduced Redundancy Storage Class

bull 9999 durability vs 99999999999bull Up to 20 savingsbull Great for everything that is easy to reproducebull Amazon SNS notification for lost objects available

bull Amazon Glacier Storage Classbull Same 99999999999 durability as S3bull 3 to 5 hours restore timebull Up to 89 savingsbull Great for archiving long-term backups and old data

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Amazon DynamoDB

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Readwrite capacity units (CUs) determine most of Amazon DynamoDB cost

bull By optimizing CUs you can save a lot of moneybull But

bull Need to provision enough capacity to not run into capacity errorsbull Need to prepare for peaksbull Need to constantly monitoradjust

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

bull Use caching to save read capacity unitsbull Local RAM caches at app server instancesbull Check out Amazon ElastiCache

bull Think of strategies for optimizing CU usebull Use multiple tables to support varied access patternsbull Understand access patterns for time series databull Compress large attribute values

bull Use Amazon SQS to buffer over-capacity writes

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

6 Optimize Amazon DynamoDB capacity units

EC2

1 2

34

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Customer Case Study tadaanetbull Huge growth after Instagrambull Heavy users of Amazon DynamoDB

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Amazon DynamoDB CUs tadaa

CachingOptimization80 saved

CacheFlush

DynamicDynamoDB20 saved

Growth +new features

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Dynamic DynamoDB

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Overall Architecture

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

7 Offload Your Architecturebull The more you can offload the less infrastructure you

need to maintain scale and pay forbull Three easy ways to offload

bull Use Amazon CloudFrontbull Introduce Cachingbull Leverage existing AWS services

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Offload Popular Traffic to Amazon S3 CloudFront

Respon

seTim

e

ServerLoad

Respon

seTim

e

Server

Load

Respon

seTim

e

Server

Load

NoCDN CDNforSta6c

Content

CDNforSta6campDynamicContent

OffloadScaleDown

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Setting up Amazon CloudFront in the Console

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Offload Databases Through Caching

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Setting up ElastiCache in the Console

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Leverage Existing Servicesbull Amazon RDS Amazon DynamoDB or ElastiCache for

Redis Amazon Redshiftbull instead of running your own database

bull Amazon CloudSearchbull instead of running your own search engine

bull Amazon Elastic Transcoderbull Amazon Elastic MapReducebull Amazon SQS Amazon SNS

Amazon Simple WorkflowService Amazon SES

Document)Server))

Results)

Search)Server)

Simple more reliable lower cost

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Tools

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Simple Monthly Calculatorcalculators3amazonawscomcalc5html

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

TCO Calculatorawsamazoncomtco-calculator

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

AWS Trusted Advisorawsamazoncompremiumsupporttrustedadvisor

Free with Business or Enterprise Support

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Letrsquos Recap1 Use Auto Scaling2 Turn off unused instances3 Use Reserved Instances4 Use Spot Instances5 Leverage Amazon S3 storage classes6 Optimize Amazon DynamoDB capacity units7 Offload your architecture

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Startup13 Spotlight13 Sessions13 with13 Dr13 Werner13 VogelsThurs13 Nov13 1413 Marcello13 Room13 4406

bull SPOT 203 - Fireside Chats ndash Startup Founders 130-230pmbull Eliot Horowitz CTO of MongoDBbull Jeff Lawson CEO of Twiliobull Valentino Volonghi Chief Architect of AdRoll

bull SPOT 204 - Fireside Chats ndash Startup Influencers 300-400pmbull Albert Wegner Managing Partner at Union Square Venturesbull David Cohen Founder and CEO of TechStars

bull SPOT 101 - Startup Launches 415-515pmbull 5 companies powered by AWS launching at AWS reInvent 2013

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

Please give us your feedback on this presentation

As a thank you we will select prize winners daily for completed surveys

ARC313 Thank You

Friday November 15 13

top related