high performance web applications
DESCRIPTION
Building high performance web applications with Amazon Web Services.TRANSCRIPT
![Page 2: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/2.jpg)
Hello
![Page 3: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/3.jpg)
Building blocks for wonderful applicationsStorage, compute, databases, managed services
![Page 4: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/4.jpg)
![Page 5: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/5.jpg)
Retail Merchantservices
Web services
![Page 6: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/6.jpg)
Retail Merchantservices
Web services
![Page 7: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/7.jpg)
Getting started withAmazon Web Services
quick review
H
![Page 8: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/8.jpg)
Utility computing
Available at the end of an API call.Metered billing.
H
![Page 9: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/9.jpg)
Family of 20 services
Adding new services and refinement weekly.Rapid rate of innovation.
H
![Page 10: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/10.jpg)
Undi!erentiated heavy lifting
Focus on your app, customers and business
H
![Page 11: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/11.jpg)
H
![Page 12: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/12.jpg)
aws.amazon.com
H
Free account. Free tier.
![Page 13: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/13.jpg)
Building High PerformanceWeb Applications
r
![Page 14: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/14.jpg)
Deliver a great experience toyour customers.
Responsive, fast web applications.
r
![Page 15: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/15.jpg)
g DECOUPLEDSCALE
OUT SOPTIMIZE COSTFOR
CAUTOMATE
vCALIBRATED FOR:
CPU performance vCALIBRATED FOR:
IO performance
5 patterns forperformance
![Page 16: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/16.jpg)
g DECOUPLED
![Page 17: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/17.jpg)
Monolithic Mega System v2
![Page 18: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/18.jpg)
Application
Assets
Analytics
![Page 19: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/19.jpg)
Application
Assets
Analytics
![Page 20: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/20.jpg)
Images, javascript, stylesheets, HTML pages
Deliver as fast as possible to customers
r
![Page 21: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/21.jpg)
Websites without the servers
Highly durable: 99.999999999%Zero config: fire and forget
r
![Page 22: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/22.jpg)
![Page 23: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/23.jpg)
Low latency delivery of assets
Local caching for fast downloadsAmazon CloudFront
r
![Page 24: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/24.jpg)
PP
![Page 25: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/25.jpg)
Create content distributions
From objects in S3Any custom originDynamic, streaming and static content
r
![Page 26: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/26.jpg)
PPP
![Page 27: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/27.jpg)
CNAME?
Map to any custom URLassets.domain.com, www.domain.com
r
![Page 28: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/28.jpg)
Application
Assets
Analytics
![Page 29: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/29.jpg)
Application
Assets
Analytics
![Page 30: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/30.jpg)
Application architecture
Small things, loosely coupled
r
![Page 31: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/31.jpg)
Application
Assets
Analytics
![Page 32: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/32.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 33: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/33.jpg)
Shared responsibility
Infrastructure by AWSOS, application and data by customersTools to help meet best practices
r
![Page 34: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/34.jpg)
Security groups
Customer controlled firewallsAll ports are closed by default
r
![Page 35: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/35.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 36: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/36.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
x
![Page 37: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/37.jpg)
Decoupling provides an architectural framework for performance
Easier to separate concerns: assets, streaming, etc.Easier to manage and scale.
r
![Page 38: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/38.jpg)
SCALE
OUT
![Page 39: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/39.jpg)
Elasticity is a tenet of the cloud
Scale up when you need toScale down when you don’t
r
![Page 40: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/40.jpg)
Predictable peaksr
Time
Demand
Capacity
![Page 41: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/41.jpg)
Predictable peaksr
Time
Demand
Capacity
![Page 42: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/42.jpg)
Variable usager
Time
Demand
Capacity
![Page 43: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/43.jpg)
Variable usager
Time
Demand
Capacity
![Page 44: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/44.jpg)
Variable usager
Time
Demand
![Page 45: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/45.jpg)
Horizontal scaling drives performance up
...and costs down
r
![Page 46: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/46.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 47: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/47.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 48: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/48.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 49: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/49.jpg)
Amazon Machine Images encapsulate your app
Customize your virtual machines AMI can be the unit of deployment
r
![Page 50: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/50.jpg)
1. Spin up a new instance using your AMI
Configured to bootstrap the app.
r
![Page 51: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/51.jpg)
2. Pull down latest code base
From S3 or code repository
r
![Page 52: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/52.jpg)
3. Start up the app on the instance
Ready to receive requests
r
![Page 53: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/53.jpg)
4. Register with the load balancer
Job done.
r
![Page 54: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/54.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 55: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/55.jpg)
Horizontal scaling allows forfault tolerance
r
![Page 56: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/56.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 57: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/57.jpg)
Load balancer
App servers
Database
Asynchronous processing
:(
Application
Assets
Analytics
![Page 58: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/58.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 59: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/59.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 60: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/60.jpg)
Deploying and scaling a datastore
r
Follow the same patterns: horizontal scale, availability, automation.
![Page 61: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/61.jpg)
One question:
r
Does your application require a strict, controlled schema for query flexibility?
![Page 62: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/62.jpg)
Amazon Relational Database Service
r
Management systems: CRM, ERP, finance
Does your application require a strict, controlled schemafor query flexibility? Yes
![Page 63: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/63.jpg)
Focus on your app
r
Handles tedious database admin tasksDesigned for availability
![Page 64: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/64.jpg)
Multi-engine
r
MySQL, Oracle, Microsoft SQL ServerUp and running in six clicks
![Page 65: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/65.jpg)
Point in time snapshots
r
Automatic. Easy recovery.
![Page 66: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/66.jpg)
High availability
r
Deployed across multiple availability zones.Synchronous writes.
![Page 67: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/67.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 68: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/68.jpg)
Read replicas
r
Perfect for read heavy applications.Asynchronous writes. Replication metrics available.
![Page 69: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/69.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 70: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/70.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 71: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/71.jpg)
Amazon DynamoDB
r
Web apps, social apps, mobile apps, user generated content, unstructured data integration, lots of data.
Does your application require a strict, controlled schemafor query flexibility? No
![Page 72: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/72.jpg)
Focus on your app
r
Managed NoSQL database service.No schema.
![Page 73: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/73.jpg)
Unlimited scale
r
Unlimited storagePay as you go
![Page 74: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/74.jpg)
High performance
r
Single digit millisecond latencies
![Page 75: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/75.jpg)
Zero admin
r
No instances to manageTiny API, perfectly formed
![Page 76: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/76.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 77: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/77.jpg)
Asynchronous processing
r
Resize images. Transcode movies. Resample media.
![Page 78: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/78.jpg)
Follow the same best practices
r
Decouple. Stateless. Horizontal scale.
![Page 79: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/79.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 80: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/80.jpg)
CloudFront for dynamic content
r
Edge caching for dynamic contentCache by query string parametersMultiple origin serversPersistent connections to origin servers
![Page 81: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/81.jpg)
CAUTOMATE
![Page 82: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/82.jpg)
Automate everything
The tedious. The time consuming. The error prone.
r
![Page 83: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/83.jpg)
For example: when increasing capacity
Launch instance.Update application code.Register with load balancer.
r
![Page 84: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/84.jpg)
Auto-scaling
CloudWatchAuto-scaling serviceElastic Load Balancer
r
![Page 85: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/85.jpg)
Set operational thresholds
Network capacity > 80%Memory utilization > 75%CPU < 50%
r
![Page 86: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/86.jpg)
Automatically respond to operational alarms
r
Network capacity > 80%: add instancesMemory utilization > 75%: add instancesCPU < 50%: remove instances
![Page 87: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/87.jpg)
Set bounds
Step change configured by number or percentage of instances
r
![Page 88: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/88.jpg)
Custom metrics
Respond to custom metricsPage load timeDatabase query time
r
![Page 89: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/89.jpg)
Automatic load balancer configuration
Instances added/removed automaticallyHealth check for running application before routing tra"c
r
![Page 90: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/90.jpg)
Stateless operations are important
Decoupled, but statelessInstances are naive to other instances
r
![Page 91: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/91.jpg)
Treat your data as a royal garden
Backup to S3: high durabilityCompute is a disposable resource
r
![Page 92: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/92.jpg)
vCALIBRATED FOR:
CPU performance
![Page 93: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/93.jpg)
Range of resources
Choose the best instance type for performance
r
![Page 94: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/94.jpg)
r
t1.micro m1.small cc2.8xlarge
![Page 95: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/95.jpg)
r
t1.micro m1.small cc2.8xlarge
High memory
High CPU
High CPU + memory
![Page 96: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/96.jpg)
Load balancer
App servers
Database
Asynchronous processing
Application
Assets
Analytics
![Page 97: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/97.jpg)
1 instance for 100 hours=
100 instances for 1 hour
![Page 98: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/98.jpg)
Balance cost/performance
Mix instance types for application servers, databases, ancillary services, analytics etc.
r
![Page 99: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/99.jpg)
Migrate to large instance types
As your application grows Use 64 bit from the outset, if possible
r
![Page 100: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/100.jpg)
vCALIBRATED FOR:
IO performance
![Page 101: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/101.jpg)
IO bound web applications are more common
Application requires predictable, consistent IO
r
![Page 102: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/102.jpg)
Provisioned throughput with DynamoDB
No need to provision storageProvision IO requirements: reads and writes per second
r
![Page 103: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/103.jpg)
![Page 104: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/104.jpg)
![Page 105: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/105.jpg)
![Page 106: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/106.jpg)
![Page 107: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/107.jpg)
Scale up, and carry on
DynamoDB will manage resources to achieve and maintain throughput
r
![Page 108: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/108.jpg)
Low latency, unlimited scale
Writes acknowledged when saved to disk in multiple data centres. Backed on SSDs.
r
![Page 109: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/109.jpg)
...and SSDs for all
![Page 110: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/110.jpg)
hi1.4xlarge instances
High capacity, high performance storage2 x 1Tb SSD drives
r
![Page 111: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/111.jpg)
Perfect match for databases
Relational and NoSQL storage
r
![Page 112: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/112.jpg)
Perfect match for databases
Relational and NoSQL storage90k to 120k IOPS
r
![Page 113: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/113.jpg)
High performance network
10 gigabit ethernetPlacement groupsPerfect for distributed stores
r
![Page 114: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/114.jpg)
SOPTIMIZE COSTFOR
![Page 115: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/115.jpg)
Economies of scale
Drive down prices for customers20 price drops in past 6 years
r
![Page 116: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/116.jpg)
Maximize utilization
Greater utilization drives down cost
r
![Page 117: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/117.jpg)
Reserved capacity
Time
Utilization
![Page 118: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/118.jpg)
Reserved instances
Small upfront paymentGuaranteed capacity for 1 or 3 yearsLower hourly rate
r
![Page 119: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/119.jpg)
Reserved instance resale
Sell your reservations on the resale marketSellers set your own priceBuyers select and check out
r
![Page 120: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/120.jpg)
Reserved capacity
Time
Utilization
![Page 121: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/121.jpg)
Reserved capacity
On-demand
Time
Utilization
![Page 122: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/122.jpg)
Reserved capacity
On-demand
Time
Utilization
![Page 123: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/123.jpg)
Spot instances
Name your price computing
r
![Page 124: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/124.jpg)
Spot instances
Lower costs‘Overclock’ your app: more bang for your buck
r
![Page 125: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/125.jpg)
Load balancer
App servers
Database on SSDs
Asynchronous processing
Application
Assets
Analytics
![Page 126: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/126.jpg)
Load balancer
App servers
Database on SSDs
Asynchronous processing
Application
Assets
Analytics
![Page 127: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/127.jpg)
Load balancer
App servers
Database on SSDs
Asynchronous processing
Application
Assets
Analytics
![Page 128: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/128.jpg)
Become price aware
Price is a driver of your architecture
r
![Page 129: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/129.jpg)
Automated bidding
Automate bids based on on-demand priceRun on spot only when cost e!ective
r
![Page 130: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/130.jpg)
Continuous cost optimization
Evaluate your reserved instance/on-demand/spot mix regularly as app requirements change
r
![Page 131: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/131.jpg)
5 patterns forperformance
g DECOUPLED
![Page 132: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/132.jpg)
5 patterns forperformance
g DECOUPLEDSCALE
OUT
![Page 133: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/133.jpg)
5 patterns forperformance
g DECOUPLEDSCALE
OUT SOPTIMIZE COSTFOR
![Page 134: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/134.jpg)
5 patterns forperformance
g DECOUPLEDSCALE
OUT SOPTIMIZE COSTFOR
vCALIBRATED FOR:
CPU performance vCALIBRATED FOR:
IO performance
![Page 135: High Performance Web Applications](https://reader034.vdocuments.net/reader034/viewer/2022042713/5481b58cb07959330c8b45e5/html5/thumbnails/135.jpg)
5 patterns forperformance
g DECOUPLEDSCALE
OUT SOPTIMIZE COSTFOR
vCALIBRATED FOR:
CPU performance vCALIBRATED FOR:
IO performanceC
AUTOMATE