The download pipeline
Similar to the previous pipeline, the download pipeline is also composed by the same four stages: Starter, RemoteStorage, Encryption, and Notifier. However, this time the Encryption stage is performed after we obtain the actual encrypted contents stored on the cloud. This pipeline starts with a download request being enqueued. Then, the Starter stage fetches this request from the queue and produces an event from it, which will be processed by the RemoteStorage stage. This stage checks whether there is already a CacheWorker process for the requested media. If that's the case, it places the clear cached contents on the event and sets the event status to :original, informing the subsequent stages that the event already ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access