Chapter 7. Completing the worker-pool application
This chapter covers
- Implementing the entire worker pool application
- Building multiple supervision hierarchies
- Dynamically creating Supervisors and workers
In this chapter, you’ll continue to evolve the design of the Pooly application, which you started in chapter 6. By the end of this chapter, you’ll have a full, working worker-pool application. You’ll get to explore the Supervisor API more thoroughly and also explore more advanced (read: fun!) Supervisor topics.
In chapter 6, you were left with a rudimentary worker-pool application, if we can even call it that. In the following sections, you’ll add some smarts to Pooly. For example, there’s currently no way to handle crashes and restarts gracefully. ...
Get The Little Elixir & OTP Guidebook 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.