亚马逊存储无限桶 [英] Amazon storage unlimited bucket

查看:125
本文介绍了亚马逊存储无限桶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好请问有什么版本的Amazon Web Services提供了无限的桶?

Hi is there any version of amazon web services provides unlimited buckets?

推荐答案

没有。从 S3文档

每个AWS账户可以拥有多达100桶的时间。

Each AWS account can own up to 100 buckets at a time.

S3桶价格昂贵(在资源方面),以创建和销毁:

S3 buckets are expensive (in terms of resources) to create and destroy:

亚马逊S3的高可用性工程的重点是GET,PUT列表,删除等操作。因为斗操作的工作对一个集中的,全球性的资源空间,故不宜作斗创建或删除应用程序的高可用性code道路上的调用。最好是在你不经常运行一个单独的初始化或安装程序创建或删除桶。

The high availability engineering of Amazon S3 is focused on get, put, list, and delete operations. Because bucket operations work against a centralized, global resource space, it is not appropriate to make bucket create or delete calls on the high availability code path of your application. It is better to create or delete buckets in a separate initialization or setup routine that you run less often.

还有使用大量的桶没有充分的理由:

There's also no good reason to use lots of buckets:

没有限制到可以存储在水桶的对象的数量和性能是否使用许多水桶或只是几个没有变化。您可以存储所有对象的单个桶,也可以跨多个桶组织他们。

There is no limit to the number of objects that can be stored in a bucket and no variation in performance whether you use many buckets or just a few. You can store all of your objects in a single bucket, or you can organize them across several buckets.

您要为每个用户把东西放在一个单独的空间。精细:创建一个单斗,让你的用户特定信息的< USER_ID> / preFIX。更重要的是,把它放在用户/< USER_ID> / ,这样你就可以在以后使用相同的桶等非用户特定的东西,或者改变命名方案,或其他任何你可能想。

You want a separate space for each of your users to put things. Fine: create a single bucket and give your user-specific information a <user_id>/ prefix. Better yet, put it in users/<user_id>/, so you can use the same bucket for other non-user-specific things later, or change naming schemes, or anything else you might want.

ListObjects 接受 preFIX 参数(用户/&LT; USER_ID&GT; / ),并具有特殊规定了解,可能是分层的钥匙相关的。

ListObjects accepts a prefix parameter (users/<user_id>/), and has special provisions for hierarchical keys that might be relevant.

这篇关于亚马逊存储无限桶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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