SlideShare une entreprise Scribd logo
1  sur  60
Télécharger pour lire hors ligne
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Running Lean Architectures:
How to Optimize for Cost Efficiency
M a r k u s O s t e r t a g , V P o f E n g i n e e r i n g , T e a m I n t e r n e t A G , @ o s t e r j o u r
C o n s t a n t i n G o n z a l e z , P r i n c i p a l S o l u t i o n s A r c h i t e c t , A W S , @ z a l e z
A R C 3 0 3
N o v e m b e r 2 8 , 2 0 1 7
AWS re:INVENT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What you’ll get out of this session
• Best practices on how to lower your AWS bill
• A more scalable, robust, dynamic architecture
• More time to innovate
• Real-world customer examples
• Easy to implement
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Structure
Business
Architecture
Operations
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Business goals
“Pay as little
as possible
for what we
use.”
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS pricing philosophy
Ecosystem
Global footprint
New features
New services
More AWS
usage
More
infrastructure
Lower
infrastructure
costs
Reduced
prices
More
customersInfrastructure
Innovation
63 price reductions
since 2006Economies
of scale
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS TCO calculator
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS billing alarms
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS billing dashboard
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS cost explorer—now with API!
Markus Ostertag
VP of Engineering @ Team Internet
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Who is Team Internet?
• Domain monetization business
• 35 people
• HQ in Munich, Germany
• Tech focused
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Diving deep into your bill using Datadog
Monitor and use your billing metrics!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Reserved Instances
Save up to 60% (up to 40% with one year)
Convertible RI
Change instance family, OS, tenancy
One year or three years
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Reserved Instances—our usage hours
Baseline backed by Reserved Instances
Excess with On-Demand or Spot
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
New instance size flexibility for RIs
Within the same family regional Linux/UNIX
Reserved Instances with shared tenancy are
instance size flexible now
Example:
c4.4xlarge RI counts for
2x c4.2xlarge,
4x c4.xlarge,
8x c4.large, or
0.5x c4.8xlarge
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Architecture goals
“Avoid waste
as much
as possible.”
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Turn off unused instances
• Developer, test, training instances
• Use simple instance start and stop
• Even on Amazon Relational
Database Service!
• Or tear down and build up all together
using AWS CloudFormation
• Instances are disposable!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Customer example
Monday Friday End of vacation season
35% saved
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Automate, automate, automate
• AWS SDKs
• AWS Command Line
Interface
• AWS CloudFormation
• AWS OpsWorks
• Netflix Janitor Monkey
• Cloudlytics EC2 Scheduler
• Auto Scaling
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Scaling is always possible!
Auto-Scaling groups are the goal
Side effect: cost optimization
Our to-dos:
Pet or cattle
Service discovery
Deployment strategy
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pets or cattle
Photo by Pete Bellis on Unsplash Photo by Annie Spratt on Unsplash
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
#cloud-config
bootcmd:
[...]
AZ_NAME=`ec2metadata --availability-zone | sed -e 's/^.*-[0-9]//'`;
INSTANCE_ID=`ec2metadata --instance-id | sed -e 's/^i-//'`;
AWS_HOSTNAME=$HOSTNAME_PREFIX'-'$AZ_NAME'-'$INSTANCE_ID;
echo $AWS_HOSTNAME > /etc/hostname;
hostname -F /etc/hostname;
aws ec2 create-tags --resources `ec2metadata --instance-id` --tags
Key=Name,Value=$AWS_HOSTNAME --region us-east-1
Pets or cattle
User data:
Leverage user data and cloud-init or cfn-init (for AWS CloudFormation)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Service discovery
• Use tools like Consul,
Netflix Eureka
• Or build your own:
• Scheduled AWS
Lambda function
(using tags)
• Put A-Records in
Route53 private zones
Photo by Teddy Kelley on Unsplash
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deployment via cloud-init at instance launch
Using or mimicking AWS CodeDeploy
User data and AWS CLI:
#cloud-config
bootcmd:
- aws s3 cp s3://<deploy-scripts-bucket>/init/rtb.sh - | bash
RTB.sh:
• Get code from S3-bucket
• Copy to local EBS volume
• Start via systemd
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Cost optimization with Auto Scaling
• Per second billing!
• You can scale down faster now
• Focus on performance, less on cost
• Optimize cost through dynamic scale-in and scale-out
• Leverage scheduled scaling events to
anticipate load changes
• Use Spot Instances
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Use Spot Instances
• Price based on supply/demand
• You choose your maximum price/hour
• Your instance is started if the Spot price is lower
• Your instance is terminated if
the Spot price is higher, with two-minutes’ notice
• But: You can now choose “stop” instead of “terminate”
• And: You did plan for fault tolerance, didn’t you?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Spot Instance example
On-Demand:
$0.34
$0.1175 (34.56 %)$3.40 (1000%)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Spot Instance use cases
• Stateless Web/app server fleets
• Amazon EMR
• Continuous integration (CI)
• High performance computing (HPC)
• Grid computing
• Media rendering/transcoding
https://aws.amazon.com/ec2/spot
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Spot Bid Advisor
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Spot Instances recap
• Dynamic pricing
• Opportunity to save 80% to 90% cost
• But be careful
• Different prices per AZ
• Leverage Auto Scaling!
• One group with Spot Instances
• One group with On-Demand
• Get the best of both worlds
• Spot Fleet – Manage thousands of Spot Instances with
one API call
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“But my applications are
too small
even for the smallest instance!”
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EC2 Container Service
• Easily manage docker containers
• Flexible container placement
• Designed for use with other AWS services
• Extensible
• Performance at scale
• Secure
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
10%
15%
7%
12%
20%
9%
Consolidate with Amazon ECS
App 1 App 2
App 3 App 4
App 5 App 6
6
12 34
5
Amazon ECS
cluster
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Lambda and the serverless revolution
Amazon S3 bucket events AWS Lambda
Original object Compressed object
1
2
3
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Get rid of idle time with AWS Lambda
• Automatic scaling
• Automatic provisioning
• No need to manage infrastructure
• Just bring your code
• $0.20/million requests, 1M free per month
• 100 ms payment granularity
• Never pay for idle
Less than 40% utilization?
Consider using Lambda instead!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Beware of in-function idle time…HTTPGET1
HTTPGET1
HTTPPOST
HTTPPOST
HTTPGET2
HTTPGET2
HTTPGET3
HTTPGET4
HTTPGET4
HTTPGET3
HTTPGET5
HTTPGET6
HTTPGET6
HTTPGET5
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
…use non-blocking code instead!HTTPGET1
HTTPGET1
HTTPPOST
HTTPPOST
HTTPGET2
HTTPGET2
HTTPGET3
HTTPGET4
HTTPGET4
HTTPGET3
HTTPGET5
HTTPGET6
HTTPGET6
HTTPGET5
HTTPGET1
HTTPGET1
HTTPPOST
HTTPPOST
HTTPGET2
HTTPGET2
HTTPGET3
HTTPGET4
HTTPGET4
HTTPGET3
HTTPGET5
HTTPGET6
HTTPGET6
HTTPGET5
Use:
• Node.js events
• Java/Python/C# threads
• Coordinate with queues
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Avoid sleeping inside your function…STARTJOB
JOB#XSTARTED
HTTPPOST
HTTPPOST
AREWETHEREYET?
NOPE!
WE’REDONE!
ZzZz
OR
time.sleep(10)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
…use AWS Step Functions instead!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Coca-Cola saved 90s Lambda time…
…for each bottle sold!
https://aws.amazon.com/blogs/aws/things-go-better-with-step-functions/
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Optimizing database utilization
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Database optimization through caching
Amazon
DynamoDB
Amazon
RDS
Amazon
DynamoDB
Amazon
RDS
Amazon
ElastiCache
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Caching saves money
DynamoDBreads
Saved 3K reads per second (> 20K reads per second in total)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Cache really everything!
Cache hit ratio 25% to 30% Cache hit ratio 89% to 95%
Without negative caching With negative caching
Hit
Miss
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Think of strategies for optimizing CU use
• Use multiple tables to support varied access patterns
• Understand access patterns for time series data
• Compress large attribute values
Consider read (4K) against write (1K) sizes
Use Amazon Simple Queue Service to buffer
overcapacity writes
Resize capacity units dynamically
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Use Auto Scaling for DynamoDB
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Use Auto Scaling for DynamoDB
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Offload popular traffic to
Amazon S3 and/or Amazon CloudFront
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Operational goals
“Focus on what
you do best,
let AWS do the
rest.”
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Leverage existing services
• Use Amazon RDS, DynamoDB,
ElastiCache for Redis or
Amazon Redshift
• Instead of running your own database
• Amazon Elasticsearch Service
• Instead of running your own cluster
• Amazon SQS
• Amazon Kinesis, Amazon Kinesis Firehose,
Amazon Simple Notification Service, and more …
AWS can help you with any service
RDS
Amazon
Redshift
Amazon
Elasticsearch
Service
Amazon
Kinesis
Amazon
SQS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EMR to Amazon Athena migration
Our costs down by > 50% with Athena
Startup phase of EMR is crucial
Architecture simplicity
Less operations overhead
EMR
Athena
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Split your architecture into several stacks
Tracking
API
RTB
engine
DynamoDB Amazon
Aurora
Amazon
Redshift
User and
stats
API
Self-managed
DB
Tracking
API
RTB
engine
User and
stats
API
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Split your architecture into several stacks
Tracking
API
RTB
engine
DynamoDB Amazon
Aurora
Amazon
Redshift
User and
stats
API
Self-managed
DB
Tracking
API
RTB
engine
User and
stats
API
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DynamoDB
Pick the right tool for the job
Key/value
Scalable
throughput
Low latency
More
complex
data/queries
Scalable
storage
Big (complex)
data
Higher
latency
Key/Value
In-memory
(Very) low
latency
Amazon Aurora Amazon
Redshift
ElastiCache
for Redis
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Every stack is an architecture
Divide the needs:
Write-heavy against read-heavy
Unstructured data against structured data
Consistent load against inconsistent load
Instance costs:
2x db.r3.large === 1x db.r3.xlarge
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Advantages
• No undifferentiated heavy lifting
(= saves money and work)
• AWS operates the DB
infrastructure for us
• Simple and more granular scale out
• No interference between
different functionalities/systems
• Issue pinpointing and team responsibility easier
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Let’s recap
1. Use AWS TCO/cost/billing tools
2. Use Reserved Instances
3. Avoid idle instances through automation
4. Use Spot Instances
5. Optimize database utilization
6. Pick the right tool for the job
7. Offload your architecture
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Trusted Advisor
aws.amazon.com/premiumsupport/trustedadvisor/
Included with business or enterprise support
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
But wait! There’s more…
https://youtu.be/SG1DsYgeGEk
AWS re:Invent 2015
ARC302 Running Lean Architectures:
Optimizing for Cost Efficiency
https://youtu.be/pFpv6FsCVfY
AWS re:Invent 2016
ARC313 Running Lean Architectures:
Optimizing for Cost Efficiency
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!
m a r k u s @ t e a m i n t e r n e t . c o m | @ o s t e r j o u r
g l e z @ a m a z o n . d e | @ z a l e z

Contenu connexe

Tendances

NET309_Best Practices for Securing an Amazon Virtual Private Cloud
NET309_Best Practices for Securing an Amazon Virtual Private CloudNET309_Best Practices for Securing an Amazon Virtual Private Cloud
NET309_Best Practices for Securing an Amazon Virtual Private CloudAmazon Web Services
 
GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...
GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...
GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...Amazon Web Services
 
GPSWKS301_Comprehensive Big Data Architecture Made Easy
GPSWKS301_Comprehensive Big Data Architecture Made EasyGPSWKS301_Comprehensive Big Data Architecture Made Easy
GPSWKS301_Comprehensive Big Data Architecture Made EasyAmazon Web Services
 
GPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of ManufacturingGPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of ManufacturingAmazon Web Services
 
Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...
Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...
Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...Amazon Web Services
 
ARC319_Multi-Region Active-Active Architecture
ARC319_Multi-Region Active-Active ArchitectureARC319_Multi-Region Active-Active Architecture
ARC319_Multi-Region Active-Active ArchitectureAmazon Web Services
 
WIN301-Migrating Microsoft SQL Server Databases to AWS-Best Practices and Pat...
WIN301-Migrating Microsoft SQL Server Databases to AWS-Best Practices and Pat...WIN301-Migrating Microsoft SQL Server Databases to AWS-Best Practices and Pat...
WIN301-Migrating Microsoft SQL Server Databases to AWS-Best Practices and Pat...Amazon Web Services
 
GPSWKS407-Strategies for Migrating Microsoft SQL Databases to AWS
GPSWKS407-Strategies for Migrating Microsoft SQL Databases to AWSGPSWKS407-Strategies for Migrating Microsoft SQL Databases to AWS
GPSWKS407-Strategies for Migrating Microsoft SQL Databases to AWSAmazon Web Services
 
ARC207_Monitoring Performance of Enterprise Applications on AWS
ARC207_Monitoring Performance of Enterprise Applications on AWSARC207_Monitoring Performance of Enterprise Applications on AWS
ARC207_Monitoring Performance of Enterprise Applications on AWSAmazon Web Services
 
Build your case for the cloud and engage your business stakeholders
Build your case for the cloud and engage your business stakeholdersBuild your case for the cloud and engage your business stakeholders
Build your case for the cloud and engage your business stakeholdersAmazon Web Services
 
AWS Learning Webinar Spot Instances Benefits & Best Practices Explained
AWS Learning Webinar Spot Instances Benefits & Best Practices ExplainedAWS Learning Webinar Spot Instances Benefits & Best Practices Explained
AWS Learning Webinar Spot Instances Benefits & Best Practices ExplainedAmazon Web Services
 
MCL306_Making IoT Smarter with AWS Rekognition.pdf
MCL306_Making IoT Smarter with AWS Rekognition.pdfMCL306_Making IoT Smarter with AWS Rekognition.pdf
MCL306_Making IoT Smarter with AWS Rekognition.pdfAmazon Web Services
 
NEW LAUNCH! Building Alexa Skills for Businesses (ALX204)
NEW LAUNCH! Building Alexa Skills for Businesses (ALX204) NEW LAUNCH! Building Alexa Skills for Businesses (ALX204)
NEW LAUNCH! Building Alexa Skills for Businesses (ALX204) Amazon Web Services
 
Deploying Business Analytics at Enterprise Scale - AWS Online Tech Talks
Deploying Business Analytics at Enterprise Scale - AWS Online Tech TalksDeploying Business Analytics at Enterprise Scale - AWS Online Tech Talks
Deploying Business Analytics at Enterprise Scale - AWS Online Tech TalksAmazon Web Services
 
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...Amazon Web Services
 
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdf
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdfDEV305_Manage Your Applications with AWS Elastic Beanstalk.pdf
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdfAmazon Web Services
 
SRV314_Building a Serverless Pipeline to Transcode a Two-Hour Video in Minutes
SRV314_Building a Serverless Pipeline to Transcode a Two-Hour Video in MinutesSRV314_Building a Serverless Pipeline to Transcode a Two-Hour Video in Minutes
SRV314_Building a Serverless Pipeline to Transcode a Two-Hour Video in MinutesAmazon Web Services
 
MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...
MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...
MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...Amazon Web Services
 
SRV315_How We Built a Mission-Critical, Serverless File Processing Pipeline f...
SRV315_How We Built a Mission-Critical, Serverless File Processing Pipeline f...SRV315_How We Built a Mission-Critical, Serverless File Processing Pipeline f...
SRV315_How We Built a Mission-Critical, Serverless File Processing Pipeline f...Amazon Web Services
 
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...Amazon Web Services
 

Tendances (20)

NET309_Best Practices for Securing an Amazon Virtual Private Cloud
NET309_Best Practices for Securing an Amazon Virtual Private CloudNET309_Best Practices for Securing an Amazon Virtual Private Cloud
NET309_Best Practices for Securing an Amazon Virtual Private Cloud
 
GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...
GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...
GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...
 
GPSWKS301_Comprehensive Big Data Architecture Made Easy
GPSWKS301_Comprehensive Big Data Architecture Made EasyGPSWKS301_Comprehensive Big Data Architecture Made Easy
GPSWKS301_Comprehensive Big Data Architecture Made Easy
 
GPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of ManufacturingGPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
 
Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...
Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...
Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...
 
ARC319_Multi-Region Active-Active Architecture
ARC319_Multi-Region Active-Active ArchitectureARC319_Multi-Region Active-Active Architecture
ARC319_Multi-Region Active-Active Architecture
 
WIN301-Migrating Microsoft SQL Server Databases to AWS-Best Practices and Pat...
WIN301-Migrating Microsoft SQL Server Databases to AWS-Best Practices and Pat...WIN301-Migrating Microsoft SQL Server Databases to AWS-Best Practices and Pat...
WIN301-Migrating Microsoft SQL Server Databases to AWS-Best Practices and Pat...
 
GPSWKS407-Strategies for Migrating Microsoft SQL Databases to AWS
GPSWKS407-Strategies for Migrating Microsoft SQL Databases to AWSGPSWKS407-Strategies for Migrating Microsoft SQL Databases to AWS
GPSWKS407-Strategies for Migrating Microsoft SQL Databases to AWS
 
ARC207_Monitoring Performance of Enterprise Applications on AWS
ARC207_Monitoring Performance of Enterprise Applications on AWSARC207_Monitoring Performance of Enterprise Applications on AWS
ARC207_Monitoring Performance of Enterprise Applications on AWS
 
Build your case for the cloud and engage your business stakeholders
Build your case for the cloud and engage your business stakeholdersBuild your case for the cloud and engage your business stakeholders
Build your case for the cloud and engage your business stakeholders
 
AWS Learning Webinar Spot Instances Benefits & Best Practices Explained
AWS Learning Webinar Spot Instances Benefits & Best Practices ExplainedAWS Learning Webinar Spot Instances Benefits & Best Practices Explained
AWS Learning Webinar Spot Instances Benefits & Best Practices Explained
 
MCL306_Making IoT Smarter with AWS Rekognition.pdf
MCL306_Making IoT Smarter with AWS Rekognition.pdfMCL306_Making IoT Smarter with AWS Rekognition.pdf
MCL306_Making IoT Smarter with AWS Rekognition.pdf
 
NEW LAUNCH! Building Alexa Skills for Businesses (ALX204)
NEW LAUNCH! Building Alexa Skills for Businesses (ALX204) NEW LAUNCH! Building Alexa Skills for Businesses (ALX204)
NEW LAUNCH! Building Alexa Skills for Businesses (ALX204)
 
Deploying Business Analytics at Enterprise Scale - AWS Online Tech Talks
Deploying Business Analytics at Enterprise Scale - AWS Online Tech TalksDeploying Business Analytics at Enterprise Scale - AWS Online Tech Talks
Deploying Business Analytics at Enterprise Scale - AWS Online Tech Talks
 
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
 
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdf
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdfDEV305_Manage Your Applications with AWS Elastic Beanstalk.pdf
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdf
 
SRV314_Building a Serverless Pipeline to Transcode a Two-Hour Video in Minutes
SRV314_Building a Serverless Pipeline to Transcode a Two-Hour Video in MinutesSRV314_Building a Serverless Pipeline to Transcode a Two-Hour Video in Minutes
SRV314_Building a Serverless Pipeline to Transcode a Two-Hour Video in Minutes
 
MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...
MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...
MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...
 
SRV315_How We Built a Mission-Critical, Serverless File Processing Pipeline f...
SRV315_How We Built a Mission-Critical, Serverless File Processing Pipeline f...SRV315_How We Built a Mission-Critical, Serverless File Processing Pipeline f...
SRV315_How We Built a Mission-Critical, Serverless File Processing Pipeline f...
 
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...
 

Similaire à Running Lean Architectures on AWS

Design, Build, and Modernize Your Web Applications with AWS
 Design, Build, and Modernize Your Web Applications with AWS Design, Build, and Modernize Your Web Applications with AWS
Design, Build, and Modernize Your Web Applications with AWSDonnie Prakoso
 
透過Spot instances, Containers & Serverless降低成本
透過Spot instances, Containers & Serverless降低成本透過Spot instances, Containers & Serverless降低成本
透過Spot instances, Containers & Serverless降低成本Amazon Web Services
 
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWSAWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWSAmazon Web Services
 
ATC301-Big Data & Analytics for Manufacturing Operations
ATC301-Big Data & Analytics for Manufacturing OperationsATC301-Big Data & Analytics for Manufacturing Operations
ATC301-Big Data & Analytics for Manufacturing OperationsAmazon Web Services
 
Cache Me If You Can Minimizing Latency While Optimizing Cost Through Advanced...
Cache Me If You Can Minimizing Latency While Optimizing Cost Through Advanced...Cache Me If You Can Minimizing Latency While Optimizing Cost Through Advanced...
Cache Me If You Can Minimizing Latency While Optimizing Cost Through Advanced...Amazon Web Services
 
ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...
ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...
ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...Amazon Web Services
 
How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...
How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...
How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...Amazon Web Services
 
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsReducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsAmazon Web Services
 
Learn how to build serverless applications using the AWS Serverless Platform-...
Learn how to build serverless applications using the AWS Serverless Platform-...Learn how to build serverless applications using the AWS Serverless Platform-...
Learn how to build serverless applications using the AWS Serverless Platform-...Amazon Web Services
 
Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017
Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017
Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017Amazon Web Services
 
Scaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million UsersScaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million UsersAmazon Web Services
 
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsReducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsAmazon Web Services
 
100 Billion Data Points With Lambda_AWSPSSummit_Singapore
100 Billion Data Points With Lambda_AWSPSSummit_Singapore100 Billion Data Points With Lambda_AWSPSSummit_Singapore
100 Billion Data Points With Lambda_AWSPSSummit_SingaporeAmazon Web Services
 
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsReducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsAmazon Web Services
 
Cost Optimisation Solutions on AWS
Cost Optimisation Solutions on AWS Cost Optimisation Solutions on AWS
Cost Optimisation Solutions on AWS Amazon Web Services
 
Webinar | How TLG Aerospace Saved 75% with Amazon EC2 Spot Instances
Webinar | How TLG Aerospace Saved 75% with  Amazon EC2 Spot InstancesWebinar | How TLG Aerospace Saved 75% with  Amazon EC2 Spot Instances
Webinar | How TLG Aerospace Saved 75% with Amazon EC2 Spot InstancesAmazon Web Services
 
What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017Amazon Web Services
 
ARC201_Scaling Up to Your First 10 Million Users
ARC201_Scaling Up to Your First 10 Million UsersARC201_Scaling Up to Your First 10 Million Users
ARC201_Scaling Up to Your First 10 Million UsersAmazon Web Services
 

Similaire à Running Lean Architectures on AWS (20)

Design, Build, and Modernize Your Web Applications with AWS
 Design, Build, and Modernize Your Web Applications with AWS Design, Build, and Modernize Your Web Applications with AWS
Design, Build, and Modernize Your Web Applications with AWS
 
透過Spot instances, Containers & Serverless降低成本
透過Spot instances, Containers & Serverless降低成本透過Spot instances, Containers & Serverless降低成本
透過Spot instances, Containers & Serverless降低成本
 
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWSAWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
AWS reInvent 2017 recap - Optimizing Costs as You Scale on AWS
 
ATC301-Big Data & Analytics for Manufacturing Operations
ATC301-Big Data & Analytics for Manufacturing OperationsATC301-Big Data & Analytics for Manufacturing Operations
ATC301-Big Data & Analytics for Manufacturing Operations
 
Cache Me If You Can Minimizing Latency While Optimizing Cost Through Advanced...
Cache Me If You Can Minimizing Latency While Optimizing Cost Through Advanced...Cache Me If You Can Minimizing Latency While Optimizing Cost Through Advanced...
Cache Me If You Can Minimizing Latency While Optimizing Cost Through Advanced...
 
ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...
ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...
ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...
 
How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...
How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...
How Hess Has Continued to Optimize the AWS Cloud After Migrating - ENT218 - r...
 
Cost Optimization in AWS
Cost Optimization in AWSCost Optimization in AWS
Cost Optimization in AWS
 
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsReducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
 
Learn how to build serverless applications using the AWS Serverless Platform-...
Learn how to build serverless applications using the AWS Serverless Platform-...Learn how to build serverless applications using the AWS Serverless Platform-...
Learn how to build serverless applications using the AWS Serverless Platform-...
 
Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017
Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017
Moving to Amazon ECS – the Not-So-Obvious Benefits - CON356 - re:Invent 2017
 
AWS Cost Optimisation Solutions
AWS Cost Optimisation SolutionsAWS Cost Optimisation Solutions
AWS Cost Optimisation Solutions
 
Scaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million UsersScaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million Users
 
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsReducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
 
100 Billion Data Points With Lambda_AWSPSSummit_Singapore
100 Billion Data Points With Lambda_AWSPSSummit_Singapore100 Billion Data Points With Lambda_AWSPSSummit_Singapore
100 Billion Data Points With Lambda_AWSPSSummit_Singapore
 
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud EconomicsReducing the Total Cost of IT Infrastructure with AWS Cloud Economics
Reducing the Total Cost of IT Infrastructure with AWS Cloud Economics
 
Cost Optimisation Solutions on AWS
Cost Optimisation Solutions on AWS Cost Optimisation Solutions on AWS
Cost Optimisation Solutions on AWS
 
Webinar | How TLG Aerospace Saved 75% with Amazon EC2 Spot Instances
Webinar | How TLG Aerospace Saved 75% with  Amazon EC2 Spot InstancesWebinar | How TLG Aerospace Saved 75% with  Amazon EC2 Spot Instances
Webinar | How TLG Aerospace Saved 75% with Amazon EC2 Spot Instances
 
What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017
 
ARC201_Scaling Up to Your First 10 Million Users
ARC201_Scaling Up to Your First 10 Million UsersARC201_Scaling Up to Your First 10 Million Users
ARC201_Scaling Up to Your First 10 Million Users
 

Plus de Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

Plus de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Running Lean Architectures on AWS

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Running Lean Architectures: How to Optimize for Cost Efficiency M a r k u s O s t e r t a g , V P o f E n g i n e e r i n g , T e a m I n t e r n e t A G , @ o s t e r j o u r C o n s t a n t i n G o n z a l e z , P r i n c i p a l S o l u t i o n s A r c h i t e c t , A W S , @ z a l e z A R C 3 0 3 N o v e m b e r 2 8 , 2 0 1 7 AWS re:INVENT
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What you’ll get out of this session • Best practices on how to lower your AWS bill • A more scalable, robust, dynamic architecture • More time to innovate • Real-world customer examples • Easy to implement
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Structure Business Architecture Operations
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Business goals “Pay as little as possible for what we use.”
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS pricing philosophy Ecosystem Global footprint New features New services More AWS usage More infrastructure Lower infrastructure costs Reduced prices More customersInfrastructure Innovation 63 price reductions since 2006Economies of scale
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS TCO calculator
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS billing alarms
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS billing dashboard
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS cost explorer—now with API!
  • 10. Markus Ostertag VP of Engineering @ Team Internet
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Who is Team Internet? • Domain monetization business • 35 people • HQ in Munich, Germany • Tech focused
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Diving deep into your bill using Datadog Monitor and use your billing metrics!
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Reserved Instances Save up to 60% (up to 40% with one year) Convertible RI Change instance family, OS, tenancy One year or three years
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Reserved Instances—our usage hours Baseline backed by Reserved Instances Excess with On-Demand or Spot
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. New instance size flexibility for RIs Within the same family regional Linux/UNIX Reserved Instances with shared tenancy are instance size flexible now Example: c4.4xlarge RI counts for 2x c4.2xlarge, 4x c4.xlarge, 8x c4.large, or 0.5x c4.8xlarge
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Architecture goals “Avoid waste as much as possible.”
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Turn off unused instances • Developer, test, training instances • Use simple instance start and stop • Even on Amazon Relational Database Service! • Or tear down and build up all together using AWS CloudFormation • Instances are disposable!
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Customer example Monday Friday End of vacation season 35% saved
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Automate, automate, automate • AWS SDKs • AWS Command Line Interface • AWS CloudFormation • AWS OpsWorks • Netflix Janitor Monkey • Cloudlytics EC2 Scheduler • Auto Scaling
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Auto Scaling is always possible! Auto-Scaling groups are the goal Side effect: cost optimization Our to-dos: Pet or cattle Service discovery Deployment strategy
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pets or cattle Photo by Pete Bellis on Unsplash Photo by Annie Spratt on Unsplash
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. #cloud-config bootcmd: [...] AZ_NAME=`ec2metadata --availability-zone | sed -e 's/^.*-[0-9]//'`; INSTANCE_ID=`ec2metadata --instance-id | sed -e 's/^i-//'`; AWS_HOSTNAME=$HOSTNAME_PREFIX'-'$AZ_NAME'-'$INSTANCE_ID; echo $AWS_HOSTNAME > /etc/hostname; hostname -F /etc/hostname; aws ec2 create-tags --resources `ec2metadata --instance-id` --tags Key=Name,Value=$AWS_HOSTNAME --region us-east-1 Pets or cattle User data: Leverage user data and cloud-init or cfn-init (for AWS CloudFormation)
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Service discovery • Use tools like Consul, Netflix Eureka • Or build your own: • Scheduled AWS Lambda function (using tags) • Put A-Records in Route53 private zones Photo by Teddy Kelley on Unsplash
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Deployment via cloud-init at instance launch Using or mimicking AWS CodeDeploy User data and AWS CLI: #cloud-config bootcmd: - aws s3 cp s3://<deploy-scripts-bucket>/init/rtb.sh - | bash RTB.sh: • Get code from S3-bucket • Copy to local EBS volume • Start via systemd
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Cost optimization with Auto Scaling • Per second billing! • You can scale down faster now • Focus on performance, less on cost • Optimize cost through dynamic scale-in and scale-out • Leverage scheduled scaling events to anticipate load changes • Use Spot Instances
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Use Spot Instances • Price based on supply/demand • You choose your maximum price/hour • Your instance is started if the Spot price is lower • Your instance is terminated if the Spot price is higher, with two-minutes’ notice • But: You can now choose “stop” instead of “terminate” • And: You did plan for fault tolerance, didn’t you?
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Spot Instance example On-Demand: $0.34 $0.1175 (34.56 %)$3.40 (1000%)
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Spot Instance use cases • Stateless Web/app server fleets • Amazon EMR • Continuous integration (CI) • High performance computing (HPC) • Grid computing • Media rendering/transcoding https://aws.amazon.com/ec2/spot
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Spot Bid Advisor
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Spot Instances recap • Dynamic pricing • Opportunity to save 80% to 90% cost • But be careful • Different prices per AZ • Leverage Auto Scaling! • One group with Spot Instances • One group with On-Demand • Get the best of both worlds • Spot Fleet – Manage thousands of Spot Instances with one API call
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “But my applications are too small even for the smallest instance!”
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EC2 Container Service • Easily manage docker containers • Flexible container placement • Designed for use with other AWS services • Extensible • Performance at scale • Secure
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 10% 15% 7% 12% 20% 9% Consolidate with Amazon ECS App 1 App 2 App 3 App 4 App 5 App 6 6 12 34 5 Amazon ECS cluster
  • 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Lambda and the serverless revolution Amazon S3 bucket events AWS Lambda Original object Compressed object 1 2 3
  • 35. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Get rid of idle time with AWS Lambda • Automatic scaling • Automatic provisioning • No need to manage infrastructure • Just bring your code • $0.20/million requests, 1M free per month • 100 ms payment granularity • Never pay for idle Less than 40% utilization? Consider using Lambda instead!
  • 36. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Beware of in-function idle time…HTTPGET1 HTTPGET1 HTTPPOST HTTPPOST HTTPGET2 HTTPGET2 HTTPGET3 HTTPGET4 HTTPGET4 HTTPGET3 HTTPGET5 HTTPGET6 HTTPGET6 HTTPGET5
  • 37. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. …use non-blocking code instead!HTTPGET1 HTTPGET1 HTTPPOST HTTPPOST HTTPGET2 HTTPGET2 HTTPGET3 HTTPGET4 HTTPGET4 HTTPGET3 HTTPGET5 HTTPGET6 HTTPGET6 HTTPGET5 HTTPGET1 HTTPGET1 HTTPPOST HTTPPOST HTTPGET2 HTTPGET2 HTTPGET3 HTTPGET4 HTTPGET4 HTTPGET3 HTTPGET5 HTTPGET6 HTTPGET6 HTTPGET5 Use: • Node.js events • Java/Python/C# threads • Coordinate with queues
  • 38. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Avoid sleeping inside your function…STARTJOB JOB#XSTARTED HTTPPOST HTTPPOST AREWETHEREYET? NOPE! WE’REDONE! ZzZz OR time.sleep(10)
  • 39. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. …use AWS Step Functions instead!
  • 40. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Coca-Cola saved 90s Lambda time… …for each bottle sold! https://aws.amazon.com/blogs/aws/things-go-better-with-step-functions/
  • 41. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Optimizing database utilization
  • 42. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Database optimization through caching Amazon DynamoDB Amazon RDS Amazon DynamoDB Amazon RDS Amazon ElastiCache
  • 43. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Caching saves money DynamoDBreads Saved 3K reads per second (> 20K reads per second in total)
  • 44. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Cache really everything! Cache hit ratio 25% to 30% Cache hit ratio 89% to 95% Without negative caching With negative caching Hit Miss
  • 45. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Think of strategies for optimizing CU use • Use multiple tables to support varied access patterns • Understand access patterns for time series data • Compress large attribute values Consider read (4K) against write (1K) sizes Use Amazon Simple Queue Service to buffer overcapacity writes Resize capacity units dynamically
  • 46. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Use Auto Scaling for DynamoDB
  • 47. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Use Auto Scaling for DynamoDB
  • 48. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Offload popular traffic to Amazon S3 and/or Amazon CloudFront
  • 49. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Operational goals “Focus on what you do best, let AWS do the rest.”
  • 50. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Leverage existing services • Use Amazon RDS, DynamoDB, ElastiCache for Redis or Amazon Redshift • Instead of running your own database • Amazon Elasticsearch Service • Instead of running your own cluster • Amazon SQS • Amazon Kinesis, Amazon Kinesis Firehose, Amazon Simple Notification Service, and more … AWS can help you with any service RDS Amazon Redshift Amazon Elasticsearch Service Amazon Kinesis Amazon SQS
  • 51. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EMR to Amazon Athena migration Our costs down by > 50% with Athena Startup phase of EMR is crucial Architecture simplicity Less operations overhead EMR Athena
  • 52. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Split your architecture into several stacks Tracking API RTB engine DynamoDB Amazon Aurora Amazon Redshift User and stats API Self-managed DB Tracking API RTB engine User and stats API
  • 53. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Split your architecture into several stacks Tracking API RTB engine DynamoDB Amazon Aurora Amazon Redshift User and stats API Self-managed DB Tracking API RTB engine User and stats API
  • 54. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. DynamoDB Pick the right tool for the job Key/value Scalable throughput Low latency More complex data/queries Scalable storage Big (complex) data Higher latency Key/Value In-memory (Very) low latency Amazon Aurora Amazon Redshift ElastiCache for Redis
  • 55. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Every stack is an architecture Divide the needs: Write-heavy against read-heavy Unstructured data against structured data Consistent load against inconsistent load Instance costs: 2x db.r3.large === 1x db.r3.xlarge
  • 56. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Advantages • No undifferentiated heavy lifting (= saves money and work) • AWS operates the DB infrastructure for us • Simple and more granular scale out • No interference between different functionalities/systems • Issue pinpointing and team responsibility easier
  • 57. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Let’s recap 1. Use AWS TCO/cost/billing tools 2. Use Reserved Instances 3. Avoid idle instances through automation 4. Use Spot Instances 5. Optimize database utilization 6. Pick the right tool for the job 7. Offload your architecture
  • 58. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Trusted Advisor aws.amazon.com/premiumsupport/trustedadvisor/ Included with business or enterprise support
  • 59. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. But wait! There’s more… https://youtu.be/SG1DsYgeGEk AWS re:Invent 2015 ARC302 Running Lean Architectures: Optimizing for Cost Efficiency https://youtu.be/pFpv6FsCVfY AWS re:Invent 2016 ARC313 Running Lean Architectures: Optimizing for Cost Efficiency
  • 60. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you! m a r k u s @ t e a m i n t e r n e t . c o m | @ o s t e r j o u r g l e z @ a m a z o n . d e | @ z a l e z