GitHub user Xuanwo added a comment to the discussion: How to use opendal to 
implement  breakpoint resume upload and   Incremental upload ?

> client may upload parts not sequentially.

`opendal::Writer` does work in this way as long as you can hold this struct in 
memory. All parts are uploaded concurrent in the background.

For example:

```rust
let w = op.writer_with(path).concurrent(16).await?;
w.write(bs).await?;
w.write(bs).await?; // no need to wait here.
w.close().awaiit?; // wait until all parts finished.
```

> client may modify the tail of the large file, he only needs to upload the 
> last part, no need to upload all parts again.

S3 does not allow modification of an existing file. The only way I know to 
reuse previously uploaded parts is by using MultipartUpload-Copy.

If you are referring to changing the content during the upload process (before 
the file is completed), that feature is not currently supported. If you have a 
design proposal, feel free to submit it.


GitHub link: 
https://github.com/apache/opendal/discussions/5875#discussioncomment-12609876

----
This is an automatically sent email for dev@opendal.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@opendal.apache.org

Reply via email to