Best way to save a file on a server that is loaded in chunks?

I am mainly looking for the best way to store partial downloads on the server. Files will be uploaded piece by piece. Pieces can run in parallel and in random order. I need to temporarily save them somewhere in some form, and then build the complete file from the loaded chunks. I have some ideas on how to do this, but I wonder if there is any best practice already, or a standard, or some kind of RFC ..?

UPDATE:

Download occurs through HTTP.

+3
source share
1 answer

This problem has been resolved many times before. Use BITS, torrents, FTP, etc.

The basics:

> session initialization

> , , ,

> (), .

< ..

<

< (, name.status) int . ,

<

< < ,

< < , . 0%

< , name.status

, .. ,

+2

Source: https://habr.com/ru/post/1795028/


All Articles