AWSS3上载视频的存储桶位置的最佳策略是什么? [英] AWSS3 What are the best strategies of bucket location for video uploading?

查看:225
本文介绍了AWSS3上载视频的存储桶位置的最佳策略是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Amazon上配置了存储桶,并且使用了CloudFront.我在上面上传图片和视频.

I have configured a bucket on Amazon and I use CloudFront. I upload images and videos on it.

即使我的视频最长不超过15秒,并且我在发送视频之前将其压缩(AVAssetExportPreset640x480格式的AVAssetExportSession + shouldOptimizeForNetworkUse设置为true),上传似乎也太长(有时超过1秒) ,5分钟).

Even though my videos are max 15 sec and I compress them (with AVAssetExportSession in AVAssetExportPreset640x480 format + shouldOptimizeForNetworkUse set to true) before sending them, it seems too long to upload (sometimes more than 1,5 min).

我想知道是否应该在世界上的多个位置配置多个存储桶,以便将用户视频上传到最近的存储桶并减少上传时间.

I was wondering if I should configure several buckets in several locations in the world in order to upload the user video to the nearest bucket and reduce the upload time.

任何其他建议都是值得欢迎的.

Any other suggestion is very welcome.

推荐答案

可以尝试的几种方法:

  1. 您可以在s3存储桶上启用"S3传输加速".在下载/访问图像时,CloudFront很有帮助.这将有助于上传.当存储桶位置离上传位置很远时,这会带来更多好处.

  1. You can enable "S3 Transfer acceleration" on you s3 bucket. CloudFront is helpful when downloading/accessing images. This will help in uploading. This gives more benefit when bucket location is far off from uploading location.

第二个解决方案可以按照您的建议进行.然后,您可以在存储桶上创建规则以自动转移到另一个全局存储桶.但这会导致上传异步,即,即使您已将视频上传到存储桶中也是如此;仍然有些用户可能会在一段时间内看不到视频.并且此全局存储桶应位于最接近您的MOST用户的区域中.另外,您需要在此处使用CloudFront连接到全局存储桶.

Second solution can be as u suggested.. And then you can create rules on bucket to automatically transfer to another Global bucket. But this makes upload asynchronus i.e. even though you have uploaded video into the bucket; still some users might not see video for some time. And this global bucket should be in region which is closes to your MOST users. Also, you need to use CloudFront here which connects to global bucket.

这篇关于AWSS3上载视频的存储桶位置的最佳策略是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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