concept worker process in category elixir

appears as: worker process, worker processes, worker processes
The Little Elixir & OTP Guidebook

This is an excerpt from Manning's book The Little Elixir & OTP Guidebook.

When designing your own concurrent programs, you must decide which types of messages the processes should receive and send, along with the interactions between processes. In the example program, I decided to use {:ok, result} and :exit for the coordinator process and {sender_pid, location} for the worker process. I personally find it helpful to sketch out the interactions between the various processes along with the messages that are being sent and received. Resist the temptation to dive right into coding, and spend a few minutes sketching. Doing this will save you hours of head scratching and cursing!

8.2.3. Implementing the worker process

Begin with the worker process. The worker fetches the web page and computes how long the request takes. Create lib/blitzy/worker.ex as shown in the following listing.