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 ...

Get Mastering Elixir now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.