tracking: add idiomatic bounded-memory local-file transfer APIs to bindings

Open
#8,254 3 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
go, java, node.js, python, rust

Research direction

Start by inventorying the best public paths in Python, Java, Node.js and Go, using the OpenDAL API inventory at commit b6cf44f7b8a1523409e0e998e478c996ac970f03 and the AWS CLI s3handler.py reference. Compare native file APIs with the existing stream and io.Copy paths, then define the required mutation, publication, durability, cancellation, retry, metadata and memory semantics. Done means an agreed API proposal and validation plan comparing integrity, completion time, CPU, memory and temporary-disk cost.

Written by the indexing model from the issue text.

Description

enhancement
Feature Description

Track the gap between generic stream primitives and a complete local-file upload/download workflow in language bindings.

Problem and Solution

AWS CLI 2.33.15 provides a concrete application: its upload/download submitters pass a filename to the native transfer manager. The file destination allows the manager to own scheduling and writes; the application does not reconstruct an ordered array of Range responses. OpenDAL applications should have an idiomatic, bounded-memory way to complete the same file task without assembling another service-specific transfer manager.

Scope:

  • Inventory the best existing public path in Python, Java, Node.js and Go before adding APIs. Existing stream wrappers and io.Copy remain valid capabilities (#8248); do not claim they are absent.
  • Prioritize a native file-input path where it removes language-level copying or source preparation, and a file-output path where positioned writes can exploit independent ranges.
  • Reuse core Reader/Writer, file-service and existing transfer capabilities as appropriate. Keep generic stream transformations supported.
  • Specify source mutation/replay, destination overwrite/temporary-file publication, close/durability, cancellation, retry ownership, metadata and memory limits before finalizing method names.
  • Let an actual caller and a measured capability gap justify each binding addition. Avoid introducing a binding-specific S3 scheduler solely to satisfy a benchmark.

Validation must compare the same final file/object result using the SDK native file API and OpenDAL best public path. Preserve integrity and include the agreed local I/O and completion semantics. Separate time to completion, CPU, memory and temporary-disk cost. No speedup is asserted by this tracking issue.

Related: #8251, #8246, #8248 and #8250.

Additional Context

Source reference. OpenDAL API inventory was checked at b6cf44f7b8a1523409e0e998e478c996ac970f03.

Dominant language
Rust
Stars
5.5k
Forks
869
Avg merge
8h 2m
Merged PRs (30d)
862

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/opendal

All issues in apache/opendal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.