tsani / apollo

HTTP MPD integration for Labcoders Radio
MIT License
4 stars 0 forks source link

Bulk transcode #13

Closed tsani closed 7 years ago

tsani commented 7 years ago

Music export now issues one transcode request per track. This wastes a lot of time on HTTP round-trips in the (current) best-case scenario where most (or all) of the tracks already have transcodes.

Implementing a bulk transcode mechanism would mean sending only one (large) request containing the complete list of tracks to transcode. Then checking that they exist can be done in one large loop.

tsani commented 7 years ago

On the other hand, bulk transcode has a major disadvantage: the request will take a long time to process, and we can't show any kind of progress to the user. That is, if the transcoding is processed synchronously with the request.

We might want to look into a system for performing background jobs with an internal messaging system using chans.

tsani commented 7 years ago

Bulk async transcode is now in Apollo HEAD, and apollo-export uses it.