Async-native file download routes for Girder, bypassing WSGIMiddleware buffering
Project description
Girder Async Routes
Problem description
When running Girder with gunicorn girder.asgi:app -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8080, large file downloads experience producer-consumer rate mismatch issues. This occurs because:
- Architecture Flow: File downloads → CherryPy (WSGI) → WSGIMiddleware → Starlette (ASGI) → Uvicorn
- Sync Generator Issue: The synchronous generator in
filesystem_assetstore_adapter.pydoesn't properly communicate backpressure to the async framework - Buffering Problems: WSGIMiddleware may buffer entire responses in memory, causing:
- High memory usage for large files
- Slow downloads
- Potential timeouts
- Worker hangs
This plugin adds support for asynchronous routes in Girder to circumvent these issues and improve performance for large file downloads.
Usage
gunicorn girder_async_routes.asgi:app -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8080
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file girder_async_routes-0.1.4.tar.gz.
File metadata
- Download URL: girder_async_routes-0.1.4.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2e13076263cd1f95207436576bb1fffd603d07d79c13bc3b1621a47d2e83da9
|
|
| MD5 |
01fa9d3eeb8ea7335af447412e455460
|
|
| BLAKE2b-256 |
433c667216eb51ad6ad3f699de19739719d8b15016d79effade1dd9961325e3d
|
Provenance
The following attestation bundles were made for girder_async_routes-0.1.4.tar.gz:
Publisher:
release.yml on Xarthisius/girder-async-routes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
girder_async_routes-0.1.4.tar.gz -
Subject digest:
c2e13076263cd1f95207436576bb1fffd603d07d79c13bc3b1621a47d2e83da9 - Sigstore transparency entry: 1372918131
- Sigstore integration time:
-
Permalink:
Xarthisius/girder-async-routes@743fc6dabbd018c9791c088abc94428612ce5800 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/Xarthisius
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@743fc6dabbd018c9791c088abc94428612ce5800 -
Trigger Event:
push
-
Statement type:
File details
Details for the file girder_async_routes-0.1.4-py3-none-any.whl.
File metadata
- Download URL: girder_async_routes-0.1.4-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
513d7cd61830a658d858ae226e464ae54a8c37fef62f568cfd56668bc0274a76
|
|
| MD5 |
92ec978d28074bf5b64c5a037e943118
|
|
| BLAKE2b-256 |
ed005c7737a1d76ce93c7c339d2445622714b81961d233ef96ef150b9abfbed1
|
Provenance
The following attestation bundles were made for girder_async_routes-0.1.4-py3-none-any.whl:
Publisher:
release.yml on Xarthisius/girder-async-routes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
girder_async_routes-0.1.4-py3-none-any.whl -
Subject digest:
513d7cd61830a658d858ae226e464ae54a8c37fef62f568cfd56668bc0274a76 - Sigstore transparency entry: 1372918234
- Sigstore integration time:
-
Permalink:
Xarthisius/girder-async-routes@743fc6dabbd018c9791c088abc94428612ce5800 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/Xarthisius
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@743fc6dabbd018c9791c088abc94428612ce5800 -
Trigger Event:
push
-
Statement type: