概念
Multi-tier architectures
Web, application and data tiers, each in its own subnets, scaled on its own and reachable only from the tier above.
本课尚未翻译,暂以英文显示。
- The internet, port 443
- The load balancer’s security group
- The app tier’s security group
- The app tier’s security group
| Tier | Accepts traffic from |
|---|---|
| The internet, port 443 | |
| The load balancer’s security group | |
| The app tier’s security group | |
| The app tier’s security group |
是什么
A multi-tier design splits an application into layers. The web tier takes requests from users. The application tier runs the business logic. The data tier stores data. Each tier can scale, fail and be secured on its own. The three-tier design is the classic exam answer.
是什么
On AWS, an Application Load Balancer sits in public subnets. The app servers are Amazon EC2 instances in an Auto Scaling group that spans two or more Availability Zones, in private subnets. The database is Amazon RDS Multi-AZ, in separate private subnets. Security groups chain the tiers: the app tier accepts traffic only from the load balancer’s security group, and the database accepts traffic only from the app tier’s security group.
是什么
Add a cache where reads repeat: Amazon CloudFront for static content in front of the load balancer, and Amazon ElastiCache between the app tier and the database. Scale each tier on its own metric: the app tier on requests per target or CPU, the database with read replicas.
要记住
- Three tiers: web, application, data. Each in its own subnets.
- Only the load balancer is public. App and database tiers sit in private subnets.
- Security group chaining: allow a source security group, not an IP range.
- Spread every tier over at least two AZs.
要记住
- Cache at the edge (CloudFront) and in front of the database (ElastiCache).
- Scale the tiers separately. The database scales with a bigger size and read replicas, not with an Auto Scaling group.
考试中
- “The database must not be reachable from the internet” points to a private subnet and a security group that allows only the app tier.
- “Highly available web application with a relational database” points to a load balancer, Auto Scaling across AZs and RDS Multi-AZ.
- “Reduce load on the database for repeated reads” points to ElastiCache or read replicas.
别和这些弄混
- Microservices and stateless designSmall services that each do one job, own their data and scale alone, kept stateless so any copy can serve any request.
Elastic Load BalancingHow an Application Load Balancer decides: listeners, rules, target groups, health checks and the settings the exam asks about.
AWS Auto ScalingPick the scaling policy and metric, set warm-up, and know warm pools, lifecycle hooks and launch templates.
本任务内容 · 2.1
- Microservices and stateless design
- Multi-tier architectures
- Event-driven and loose coupling patterns
- Serverless application patterns
- AWS Amplify and AWS Device Farm
- Horizontal vs vertical scaling
- Caching strategies
Load Balancing
API Gateway
- When and how to containerize
SQS
SNS
EventBridge
Step Functions
MQ
Secrets Manager
- Choosing purpose-built services
- Choosing object, file or block
Lambda
- Read replicas
ElastiCache
CloudFront
Global Accelerator
Transfer Family
S3
EFS
EBS
Fargate
ECS
EKS