This document discusses how to scale applications using AWS Elastic Beanstalk. It begins with an introduction to AWS and Elastic Beanstalk. It then covers how to deploy applications using Elastic Beanstalk, including creating environments and configuring auto scaling. It also discusses how to implement load balancing across availability zones and regions using Elastic Load Balancing and Route 53 for fault tolerance and high availability. The key takeaways are that Elastic Beanstalk makes deploying and scaling applications on AWS easy, and cross-zone and cross-region configurations can improve availability.
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
AWS Scaling with Elastic Beanstalk
1. AWS: SCALING WITH ELASTIC
BEANSTALK
AN LE PHU NGUYEN
DECEMBER 2OTH, 2014
2. $ WHOAMI
Nguyễn Lê Phú An
Senior Software Engineer
R&D, KMS Technology Inc.
anlpnguyen@kms-technology.com
AWS: SCALING WITH ELASTIC BEANSTALK
An Nguyen
3. LET’S DESCRIBE YOURSELF
What is AWS?
I heard that before
I’m working on that
I’m a guru!
AWS: SCALING WITH ELASTIC BEANSTALK
4. WHAT IS AWS?
• Amazon Web Services
• Provides cloud computing infrastructure
• Started with hosting services and then…
AWS: SCALING WITH ELASTIC BEANSTALK
30. PRICING
• There is no additional charge for Elastic Beanstalk – you only pay for the
underlying AWS resources
• Try AWS free usage tier!
DEPLOYMENT & SCALING
31. SOME GOOD PRACTICES
• Make your app scalable first
– Share your static resources: video, image, css, js…
• S3, CloudFront are good candidates
– Share database and cache servers
• RDS, DynamoDB, ElastiCache
• Control auto scaling group to control your bill
– Limit Max instance number
– Add notification, at least when to Add/Remove
instance
– Adjust trigger frequently according your website’s
workload
DEPLOYMENT & SCALING
32. SHOULD I USE EB?
• Pros:
– Super easy to deploy
– Separate environments
– Integrate to other AWS services
– Good organization
• Cons:
– Quite slow deployment with large repo
– Be careful with auto scaling
– Hard to customize EC2 instances
DEPLOYMENT & SCALING
38. ENABLE ZONAL LOAD BALANCING &
SCALING
ZONAL & REGIONAL LOAD BALANCING
Sounds good! Will it scale my databases, cache
services?
In Elastic Load Balancer
In Auto Scaling Group
41. ROUTE 53
ZONAL & REGIONAL LOAD BALANCING
• A Domain Name System (DNS)
• Connect user to services: EC2, S3,
Elastic Load Balancer, CloudFront
• Auto scale
• Health check mechanism
• DNS Failover