first describe the background of the problem: we have made a video-like personal network. The solution is to upload the video to the backend of the project (on Ali"s ECS CVM) in the browser and upload it to oss at the backend. When playing the video, the ECS intranet downloads the video on the oss and stores it on the server. Finally, the path where the video is stored is returned to the foreground for video playback. The folder where videos are stored on the server is temporary and is deleted regularly in the early hours of every morning.
ECS configuration: minimum, 1G 1G 1Mbps (128k/s)
problem: uploading and playing videos are limited by bandwidth, which is too slow and too slow. Uploading 10m is still acceptable. For example, 30m is unbearable. Uploading to oss has already done sharding, but it takes too long from the foreground to the backend to fully receive the video and enter the backend request method. Local testing is very fast, and deployment to the server will cause this kind of problem. If you just give up this piece of content because of bandwidth problems, what you do before giving up this piece of content becomes the response you want
: optimized solution (try not to upgrade the server hardware, it"s too expensive. (I have two servers of my own)
Thank you again