-
I'm working on live stream encoder and I want to control my uploads by time. In my scenario, small video files are queued to upload in every 3 seconds but if upload speed gets very slow for some reason, several files are queued. If upload speed does not recover, I have to give up uploading some old files to catch up the stream. So I have to abort uploading files when upload is not completed in 30 seconds, e.g., and restart from a new file. I use What is the best strategy for this situation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You could try overloading RetryStrategy to make it fit your use case, but I'm not sure this is the best/easiest solution for you. How large/small are your video files? I would recommend that you try using s3-crt as that might be more optimized for your use case. You can see how to use s3-crt |
Beta Was this translation helpful? Give feedback.
theres a client configuration called lowSpeedLimit if you are using a curl http client.
curl documentation. this will abort a request and return a error if the overall transfer rate drops too low.
alternatively for windows there is requestTimeoutMs.