

# 适用于 Web 托管的 AWS 云架构
<a name="an-aws-cloud-architecture-for-web-hosting"></a>

 在下图中，让我们再看看经典 Web 应用程序架构，了解它如何能够利用 AWS 云计算基础设施。 

![](http://docs.aws.amazon.com/zh_cn/whitepapers/latest/web-application-hosting-best-practices/images/image4.png)


* AWS 上的 Web 托管架构示例*

1.  **使用 [Amazon Route 53](https://aws.amazon.com/route53/) 的 DNS 服务** – 提供 DNS 服务以简化域管理。

1.  **使用 [Amazon CloudFront](https://aws.amazon.com/cloudfront/) 进行边缘缓存** – 边缘缓存大量内容以减少对客户的延迟。

1.  **使用 [AWS WAF](https://aws.amazon.com/waf/) 为 Amazon CloudFront 提供边缘安全** – 通过客户定义的规则筛选恶意流量，包括跨站点脚本 (XSS) 和 SQL 注入。

1.  **使用 [Elastic Load Balancing](https://aws.amazon.com/elasticloadbalancing/) (ELB) 实现负载均衡** – 使您能够将负载分散到多个可用区和 [AWS Auto Scaling](https://aws.amazon.com/autoscaling/) 组，以实现服务的冗余和解耦。

1.  **使用 [AWS Shield](https://aws.amazon.com/shield/) 实现 DDoS 防护** – 自动保护您的基础设施免受最常见的网络和传输层 DDoS 攻击。

1.  **带安全组的防火墙** – 将安全性移至实例，以便为 Web 服务器和应用程序服务器提供有状态的主机级防火墙。

1.  **使用 [Amazon ElastiCache](https://aws.amazon.com/elasticache/) 进行缓存** – 通过 Redis 或 Memcached 提供缓存服务，以消除应用程序和数据库的负载，并降低频繁请求的延迟。

1.  **使用 [Amazon Relational Database Service](https://aws.amazon.com/rds/) (Amazon RDS) 托管数据库** – 创建具有六个可能的数据库引擎的高可用性、多可用区数据库架构。

1.  **使用 [Amazon Simple Storage Service](https://aws.amazon.com/s3/) (Amazon S3) 进行静态存储和备份** – 为备份和静态资产（如图像和视频）启用基于 HTTP 的简单对象存储。