Subscribe to access all episodes. View plans →

#109: DynamicSupervisor and Registry

Published January 8, 2020

For this episode, let’s update our application to use a different process for each shopping cart. Instead of starting up a single CartAgent process here when our application starts, we’ll start them dynamically as users add items to their shopping carts.

In order to start children processes dynamically we’ll need to use the DynamicSupervisor behavior and Elixir’s Registry to…