jan-carreras / torrentpreviewer

Simple application that lets you generate img previews from torrents without downloading all the content
MIT License
2 stars 0 forks source link

Process only N PartialDownloads at the same time #2

Closed jan-carreras closed 3 years ago

jan-carreras commented 3 years ago

The VPS has low specs and I want to be able to limit the number of torrents downloaded at the same time, since they are memory intensive.

Probably using one existing Middleware or creating a new one will do the trick.

jan-carreras commented 3 years ago

I don't think this task makes sense:

Each job represents a partial download of a Torrent. Some torrents with GB of data will represent various jobs. Some smaller torrents might be just one job. Constrains:

Thus, I'll close this task an open another one that will store the Download Parts in a persistent datastore, and each hosts will be able to query and get the downloadPart that fits in memory.