New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: server-mode streamed downloads #742
Conversation
Test Results 4 files ±0 4 suites ±0 4m 46s ⏱️ +6s Results for commit 96a590d. ± Comparison against base commit ce9b54a. This pull request removes 1 test.
♻️ This comment has been updated with latest results. |
Code Coverage (Ubuntu)
Minimum allowed coverage is Generated by 🐒 cobertura-action against 96a590d |
Code Coverage (Windows)
Minimum allowed coverage is Generated by 🐒 cobertura-action against 96a590d |
4509ff8
to
a8f3e4f
Compare
59b3bd9
to
58576d0
Compare
acc445c
to
38ca15c
Compare
streams the zip files send by the provider directly to the user without storing them in the EODAG server container
for items where links to several asset files are given those assets can now be streamed directly without storing them or they are stored and a zip file is streamed
assets retrieved from a provider via the s3 rest plugin can now be streamed directly to the client or downloaded and streamed as a zip file
ensures that the download using the catalogs endpoint works as before and changes the order of the the file separators in the dowload stream
38ca15c
to
04288c0
Compare
04288c0
to
a2e42df
Compare
Fixes #166
Description
With the changes in this pull requests the handling of downloads via the API is changed:
HTTPDownload
plugin zip files received from the provider (e.g.peps
) will be directly streamed to the user without storing them. In case we receive individual asset files from the provider (e.g.earth_search_cog
), they are also streamed and compressed on the fly streamed as a zip file.AwsDownload
,S3RestDownload
or external python APIs plugins, streaming is not implemented yet. As fallback, downloads are performed on the server and immediately deleted once transferred to the client.Here is the update download methods call graph (implemeted for
HTTPDownload
):