wcy-fdu commented on PR #2143:
URL: 
https://github.com/apache/incubator-opendal/pull/2143#issuecomment-1527145783

   > I don't like current API:
   > 
   > * ~Users should be able to specify the buffer size during `write` 
operation. (maybe not true?)~
   > * There are different buffer size/limit here, we should make the behavior 
more clear.
   >   
   >   * S3's buffer size requires every write size `>= size`
   >   * GCS's buffer size requires every write size `== size` to align with 
`256 KiB`
   > 
   > For my current understanding, there are at least the following buffer 
related sizes:
   > 
   > * the `at_least_size` for write operation: every write will have at least 
`n` bytes
   > * the `exact_size` for write operation: every write will have exactly `n` 
times of bytes
   > * the `at_most_size` for write operation: storage can buffer at most `n` 
bytes before write
   > 
   > I'm also seeking for better names. Any ideas?
   > 
   > Seems we do need to add value in config, the best value cloud be different 
for services.
   
   Seem that different services need different semantics, but maybe maintaining 
three related items is a little redundant. Waiting for an exact solution(naming 
scheme).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to