We are trying to upload 1GB file, with chunk size of 25MB, everything is going fine until last chunk. The last chunk is taking more than previous chunks, i.e more than 5 sec, the entire upload fails as we have API gateway timeout with 5 sec,
Is there any optimisation or tuning in TUS framework can be done specific to last chunk?
Also, I am curious to understand, what exactly is taking time while processing the last chunk.
Regards,
Bhanu
Hi, without client and server integration code we can only guess what’s going on.
As Merlijn mentioned, without knowing what server and configuration you use we cannot help you much but guess.
As an example, tus servers that upload to S3 do so in multiple parts. Once the tus upload is done, they instruct the S3 service to effectively concatenate these parts, which can take time depending on the provider.