谷歌云存储交易? [英] Google Cloud Storage transactions?

查看:22
本文介绍了谷歌云存储交易?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GCS 似乎没有任何事务机制.这是正确的吗?

It does not appear that GCS has any transaction mechanism. Is this correct?

我希望能够进行长期交易.例如,如果我可以启动事务并指定过期时间(如果未在 X 时间内提交,它会自动回滚),那就太好了.然后我可以使用这个句柄插入对象、撰写、删除等,如果一切顺利,发出 isCommitPossible(),如果是,则提交().

I would like to be able to have a long lived transaction. For example, it would be great if I could start a transaction and specify an expiration time (if not committed within X time it automatically gets rolled back). Then I could use this handle to insert objects, compose, delete etc. and if all goes well, issue a isCommitPossible(), and if yes, then commit().

这可能吗?

推荐答案

对象写入是事务性的(完整的对象及其元数据被成功写入并且对象变得可见;或者失败而不变得可见).但是没有跨越多个 GCS 操作的事务机制.

Object writes are transactional (either the complete object and its metadata are successfully written and the object becomes visible; or it fails without becoming visible). But there's no transaction mechanism spanning multiple GCS operations.

迈克

这篇关于谷歌云存储交易?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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