You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several of the full data set serialisations are growing at an alarming rate and we'll likely soon hit the limit of what we can safely send through to clients. These interfaces are currently only used by myself for inbound and outbound pipelines (notably the largest serialisations are for generating the Asklepian dataset). These endpoints should stream their reply to clients with StreamingHttpResponse.
The text was updated successfully, but these errors were encountered:
I've implemented a draft StreamingHttpResponse for get_task in Ocarina and Majora and the performance is absolute garbage. I've been waiting over an hour to stream the Asklepian payload. I'll try the FileResponse tomorrow.
I've skipped bothering with FileResponse as it's unlikely to be suited for our needs. Instead, I've read up about our options specifically with the S3 backend, it turns out we can use the S3 API to generate very short lived temporary access URLs for resources in our Celery result bucket. SamStudio8/majora2@8d504b9 takes advantage of this, generating an URL for a valid result, opening it in situ with requests with stream=True and then emitting the response.raw through to StreamingHttpResponse. It's several orders of magnitude quicker and doesn't require heavy memory usage on Majora, seems like a neat solution. Will play more with it later this week.
Several of the full data set serialisations are growing at an alarming rate and we'll likely soon hit the limit of what we can safely send through to clients. These interfaces are currently only used by myself for inbound and outbound pipelines (notably the largest serialisations are for generating the
Asklepian
dataset). These endpoints should stream their reply to clients with StreamingHttpResponse.The text was updated successfully, but these errors were encountered: