Building a pool manager, part 1.5
July 10, 2018Implement worker checkin and checkout.
We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Implement worker checkin and checkout.
Make the worker supervisor start workers when it initializes.
Add the (dynamic) worker supervisor and have our pool supervisor start it; convert our code into an OTP application.
Implement the pool manager and have our pool supervisor start it.
Create a new mix project, add a worker and pool supervisor.
This series of posts will guide you in writing an OTP application that will manage pools of processes. In particular, it will do so using features introduced in Elixir 1.6 such as the DynamicSupervisor and the Registry.
Keep on piping with anonymous functions.
with
failed matches
Tagged tuples allow finer control for with
match failures.
Elixir’s pattern matching is great, but make sure it’s not reducing your code’s readability.
An elegant way to process keyword lists elegantly via reduction.