But Does It Work?
Explore how to run and test an Elixir GenServer application using the Duper project. Understand starting supervisors and workers, managing message passing, and using the mix run command with no halt for continuous operation. Learn to modify worker parameters and measure performance while detecting duplicate files.
We'll cover the following...
Use the Duper application
Let’s see where we are. We’ve implemented four GenServer and two supervisors. When the application starts, it’ll start the top-level supervisor, which in turn starts Results, PathFinder, WorkerSupervisor, and Gatherer.
When Gatherer starts (and it’ll start last), it tells the WorkerSupervisor to start a number of workers. When each worker starts, it gets a path to process from PathFinder, hashes the corresponding file, and passes the result to ...