5 ms·
> One of the strengths of GenServers is that they allow us to spin one up per user very easily, so they don't become a bottleneck where the Agent does. Agent i
by manusachi 5y ago
> One of the strengths of GenServers is that they allow us to spin one up per user very easily, so they don't become a bottleneck where the Agent does.
Agent is a special case of GenServer[1]. With the same luck we could spin up an agent per user.
[1] [Agent.start_link/2](https://github.com/elixir-lang/elixir/blob/9137fd1cb2368bb1bc3a9c590440dffc9f5fed62/lib/elixir/lib/agent.ex#L271 https://github.com/elixir-lang/elixir/blob/9137fd1cb2368bb1b...)