I have N machines to which i want distribute some Big file. I have bootstrap node, which will act as initiator.
A have golang application on each physical machine (node), which is connected to some queue mechanism.
So when i want to distribute some file, i add it to IPFS on bootstrap node and send to all subscribers message over queue to notify about new file. All information to start download will be provided in that message. So after getting the message, each node can start downloading the file.
The thing is, that each node should provide progress of downloading the file in any possible format, percentage, of course, preferred.
Then i should have an option to stop downloading the file and delete it. Also i should have an option to download multiple files.
Here are the questions:
- How do i add downloading background job. Right now running
ipfs get <filehash>will run synchronous process;
- How do i track progress of background downloading jobs?
- How can i stop background downloading jobs?