简体   繁体   English

为什么 AWS Cloudfront 支持静态内容的 S3 存储桶

[英]Why AWS Cloudfront is backed with S3 bucket for static contents

It is common practice for a web application to rely on S3 bucket for static contents. Web 应用程序的常见做法是依赖 S3 存储桶存储静态内容。 S3 needs a network call same as application server call. S3 需要与应用程序服务器调用相同的网络调用。 Why not to depend on web server instead?为什么不依赖网络服务器呢?

You can certainly use CloudFront to serve content from your own origin, if you want to.如果愿意,您当然可以使用 CloudFront 从您自己的来源提供内容。

The advantages of serving from S3 are its high availability, high durability, high scale, ease of use, integration with other AWS services (like Lambda), and low cost.从 S3 提供服务的优势在于其高可用性、高持久性、高规模、易用性、与其他 AWS 服务(如 Lambda)的集成以及低成本。 Offloading static assets from your web servers to S3 also likely reduces the size and cost of your web server fleet.将静态资产从您的 Web 服务器卸载到 S3 也可能会降低您的 Web 服务器机群的规模和成本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 AWS S3 和 CloudFront 中托管的静态网站 - Static website hosted in AWS S3 and CloudFront Cloudfront 在没有公共访问的情况下为 S3 存储桶源提供通过 AWS CDK Python 创建的访问被拒绝的响应 - Cloudfront give Access denied response created through AWS CDK Python for S3 bucket origin without public Access 带 SSL 和静态网站的 S3 存储桶 - S3 bucket with SSL with static website AWS 在 S3 存储桶中找到最大文件大小 - AWS find max file size in S3 bucket Windows 中的 AWS Cli 不会将文件上传到 s3 存储桶 - AWS Cli in Windows wont upload file to s3 bucket 删除 S3 中的存储桶 - Delete a bucket in S3 如何将 AWS S3 存储桶与远程非 AWS 服务器上的文件同步? - How do I sync an AWS S3 bucket with files on a remote non-AWS server? AWS S3 存储桶通知 lambda 抛出异常(服务:Amazon S3;状态代码:404;错误代码:NoSuchKey) - AWS S3 bucket notification lambda throws exception (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey) 何时使用 Amazon Cloudfront 或 S3 - When to use Amazon Cloudfront or S3 aws firehose 到 s3 存储桶分区名称,如年=YYYY、月=MM、日=MM、小时=HH - aws firehose to s3 bucket partitioning name like year=YYYY, month=MM, day=MM, hour=HH
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM