amazon s3 - Can I use transactional file remove/upload on AWS S3 with aws-sdk-ruby? -
i find activerecord::base.transaction
effective in complex methods.
i wondering if possible upload/remove files aws s3 within transaction like:
s3object.transaction # write files # raise exception end
after exception raised every action should rolled on s3. possible s3object?
although s3 api has bulk delete functionality, not support transactions each delete operation can succeed/fail independently of others.
the api not provide bulk upload functionality (through put or post) each upload operation done through independent api call can succeed or fail.
as result, ruby api client or other api clients can not provide transactional support s3 operations.
Comments
Post a Comment