Closed tsani closed 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.
Bulk async transcode is now in Apollo HEAD, and apollo-export uses it.
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.