Persist FSA partial downloads more frequently #182
Labels
No labels
backend
bug
CI
dependencies
design
documentation
duplicate
enhancement
frontend
github_actions
good first issue
help wanted
invalid
javascript
question
refactoring
security
tooling
UX
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
NBIS/sda-download-ui#182
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Please describe the feature
As a user on an unreliable connection (e.g. bad wifi), I want partial download progress to be flushed to disk frequently, so that a dropped connection loses seconds of transfer rather than potentially hundreds of MB.
Detailed description
In the current implementation of #149, folder downloads are persisted to disk every 512 MB. On slow or unstable links a connection can die before the first flush, forcing the whole chunk to be re-fetched on resume.
The File System API supports a native flushing mechanism that avoids the inherited open/close bottlenecks of the crswap used by FSA API. However
flush()is only available for OPFS. So, this issue implies a migration to OPFS workers for the download.AC
Notes
Follow-up to #173 .
Mentioned in #193 which includes a detailed description as to why the current implementation creates bottlenecks.