amazon cloudfront 和 amazon s3 传输加速之间有什么区别吗?

Are there any difference between amazon cloudfront and amazon s3 transfer acceleration?

我看过关于它们的文档,但我不知道它们到底有什么区别。

你能告诉我有什么区别吗?

Amazon cloudfront 和 amazon S3 都非常不同。以下是这些的用途:

Amazon S3 provides a storage service on the internet while Amazon CloudFront is a web service for content delivery. Amazon S3 uses its own global network of websites while Amazon CloudFront delivers your content through a worldwide network of edge locations. Major differences in the features of both these services are mentioned Here.

如果您想了解 S3 传输加速器,它实际上利用 Amazon CloudFront 的全球分布式边缘位置 deliver/transfer 以快速、简单和安全的方式在您的客户端和您的客户端之间的长距离传输文件一个 S3 桶。想了解更多关于 S3 传输加速器的信息,请单击 here

TL;DR:CloudFront 用于内容交付。 S3 Transfer Acceleration 用于更快地传输和更高的 S3 存储桶吞吐量(主要是上传)。

Amazon S3 Transfer Acceleration 是一项 S3 功能,可使用 AWS 边缘位置(与 AWS CloudFront 服务中的相同边缘位置)加速上传到 S3 存储桶。

但是,(a) 创建一个原点指向您的 S3 存储桶的 CloudFront 分配和 (b) 为您的存储桶启用 S3 传输加速 - 是两个不同的东西,服务于两个不同的目的。

当您创建源指向您的 S3 存储桶的 CloudFront 分配时,您可以在边缘位置启用缓存。对相同对象的后续请求将从边缘缓存提供服务,这对最终用户来说速度更快,并且还减少了源上的负载。 CloudFront 主要用作内容交付服务。

当您为 S3 存储桶启用 S3 传输加速并使用 <bucket>.s3-accelerate.amazonaws.com 而不是默认的 S3 端点时,传输将通过相同的边缘位置执行,但网络路径针对长距离大型- 对象上传。额外的资源和优化用于实现更高的吞吐量。边缘位置没有缓存。

更多信息:

如果您对这两个与将内容上传到 S3 相关的选项之间的区别感兴趣,您可能会对 Amazon's FAQ for S3 中的以下内容感兴趣:

Q. How should I choose between Transfer Acceleration and Amazon CloudFront’s PUT/POST? Transfer Acceleration optimizes the TCP protocol and adds additional intelligence between the client and the S3 bucket, making Transfer Acceleration a better choice if a higher throughput is desired. If you have objects that are smaller than 1GB or if the data set is less than 1GB in size, you should consider using Amazon CloudFront's PUT/POST commands for optimal performance.

如常见问题解答所述,如果您需要更高的吞吐量,则应使用传输加速。

根据常见问题解答:

问:S3 Transfer Acceleration 和 Amazon CloudFront 的 PUT/POST 应该如何选择?

S3 Transfer Acceleration 优化了 TCP 协议并在客户端和 S3 存储桶之间添加了额外的智能,如果需要更高的吞吐量,S3 Transfer Acceleration 将成为更好的选择。如果您的对象小于 1GB 或者数据集的大小小于 1GB,您应该考虑使用 Amazon CloudFront 的 PUT/POST 命令以获得最佳性能。

https://aws.amazon.com/s3/faqs/#s3ta

CloudFront 仅用于下载方向,因此它不提供到源的高性能上传。而带有传输加速的 S3,它将利用 CloudFront 等边缘位置进行上传和下载。