Agents and Tasks
Explore how agents and tasks in Elixir manage state and enable concurrency through supervised processes. This lesson helps you grasp these fundamental concepts essential for making the functional transition and handling fault tolerance in distributed applications.
We'll cover the following...
We'll cover the following...
Supervised processes
Processes play a crucial role in Elixir. We have seen how processes model state changes. Processes are also used to enable concurrency and provide fault tolerance.
Elixir provides two abstractions, called agents and tasks, that are specializations of those use cases. Agents and tasks are supervised processes.
Agents
An agent is a process that ...