0Pricing
Elixir & Phoenix: Scalable Backend Development · Lesson

Concurrent Work with Task and Agent

Run code concurrently and manage simple shared state using the Task and Agent abstractions built on top of OTP.

Beyond Raw spawn

You can start processes with spawn, but OTP gives higher-level tools. Task runs concurrent work and collects results cleanly.

Fire-and-Forget Tasks

Task.start/1 runs a function in a new process when you do not need the result.

Task.start(fn -> IO.puts("running in background") end)

All lessons in this course

  1. Elixir Processes and Message Passing
  2. Implementing GenServer Behavior
  3. Supervisors and Application Structure
  4. Concurrent Work with Task and Agent
← Back to Elixir & Phoenix: Scalable Backend Development