使用 S3 全球域名的 CloudFront 来源是否比区域域名表现更好? [英] Is CloudFront origin using S3 global domain name performing better than regional one?

查看:23
本文介绍了使用 S3 全球域名的 CloudFront 来源是否比区域域名表现更好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个以 eu-west-1 中的 S3 作为源的 CloudFront 分配.

I have a CloudFront distribution that has S3 in eu-west-1 as origin.

我知道 S3 区域域名 {bucket-name}.s3.{region}.amazonaws.com 为我提供即时初始 CloudFront 初始化,无需停机.全局 {bucket-name}.s3.amazonaws.com 需要 2~3 小时来初始化(参见 https://stackoverflow.com/a/58423033/1480391).

I know that S3 regional domain name {bucket-name}.s3.{region}.amazonaws.com give me instant initial CloudFront initialisation without downtime. Global {bucket-name}.s3.amazonaws.com needs 2~3 hours to be initialized (see https://stackoverflow.com/a/58423033/1480391).

CloudFront 对于区域全球 S3 域名的性能是否相同?

Does CloudFront perform the same with regional or global S3 domain name?

关于 CloudFront 如何获取 S3 源(例如内部 DNS 域解析),区域 S3 域名是否比全局 S3 域名慢?

Is regional S3 domain name slower than global S3 domain name regarding how CloudFront fetches S3 origin (internal DNS domain resolution for example)?

推荐答案

不推荐使用全局端点

https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html

全局端点称为legacy".这意味着新方法是系统地使用区域端点.

The global endpoint is called "legacy". That means the new way is to systematically use the regional endpoint.

此外,区域端点的性能更好.为简化起见,在使用全局(旧版)S3 URL 格式时:

Also the regional endpoint performs better. To simplify, when using the global (legacy) S3 URL format:

  1. 请求全局 S3 端点.
  2. 它询问区域 S3 端点是什么.
  3. 将您重定向到区域 S3 端点.
  4. 请求区域 S3 端点.

当您使用区域(现代)S3 URL 格式时:

When you use the regional (modern) S3 URL format:

  1. 请求区域 S3 端点.

感谢 这个 reddit 答案

这篇关于使用 S3 全球域名的 CloudFront 来源是否比区域域名表现更好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆