I’m uploading a gzipper tar file to the server and this contains giga bytes of data so I’m trying to avoid unnecessary copies. For this reason I’m trying to process the file as it comes in. I’ve found packages to do that to an input stream but I cannot figure how to access the tus server input stream. I guess this is not possible directly as the data comes in chunks in separate http requests. So my next approach would be to process the chunks myself, create some sort of in memory stream from then and use that as the input to the ungzip untar pipeline.
Does that sound feasible?
This then raises the question can the chunks be received out of order?