Discussion about uses for Agent Processes

I’m actually quite curious as to how it is used. A GenServer passes a single state argument to all callbacks, which seems no different from a pid for an agent, you can pass both sets to functions to mutate the data within and return it, it just seems like a lot of overhead and extra code so I am curious as to the benefit?

1 Like