Skip to Main Content
Mastering Elixir
book

Mastering Elixir

by André Albuquerque, Daniel Caixinha
July 2018
Intermediate to advanced content levelIntermediate to advanced
574 pages
14h 7m
English
Packt Publishing
Content preview from Mastering Elixir

Defining and starting a supervisor

We'll now see an example of a supervisor. For now, we'll put the CacheWorker module to the side, as that will be used in the next section, where we'll be using dynamic supervisors. In this example, we'll be creating the upload pipeline supervisor. In our application, we'll create two pipelines, one for downloads and another for uploads, which will be used when a user of our application performs the respective action. These pipelines contain a set of steps that will be executed for every download or upload operation. One of these steps is the encryption/decryption step, which will encrypt the uploaded file before saving it on remote storage, and decrypt the downloaded file.

The modules we'll be showing in ...

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.
Start your free trial

You might also like

Testing Elixir

Testing Elixir

Andrea Leopardi, Jeffrey Matthias

Publisher Resources

ISBN: 9781788472678Supplemental Content