Always download files from remote servers and keep them in a queue. Then process downloaded files from the queue.
Always download files from remote servers and keep them in a queue. Then process downloaded files from the queue.