如何在 S3 中的单个事务中复制对象 [英] How to copy objects in single transaction in S3

查看:18
本文介绍了如何在 S3 中的单个事务中复制对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在单个事务中将 S3 中某个目录中的对象或子目录列表复制到另一个目录?

Is it possible to copy a list of objects or sub-directories in a directory in S3 to another directory in a single transaction?

我在java中需要这个

I need this in java

推荐答案

不,这是不可能的.单个写入(对象创建和复制)是原子的——它们要么成功,要么不成功——但 S3 不是事务性的.每个复制操作都是针对一个对象的,所以复制多个对象需要多次操作,每个操作的成功或失败都与其他操作无关.

No, this isn't possible. Individual writes (object creation and copy) are atomic -- they either succeed or they don't -- but S3 is not transactional. Each copy operation is for a single object, so copying multiple objects requires multiple operations, and each one succeeds or fails independently of the others.

这篇关于如何在 S3 中的单个事务中复制对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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