Elixir: Practical Concurrency Cookbook
functional.works-hub.com
functional.works-hub.com
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/9137fd1cb2368bb1b...)
Also I prefer to use `handle_continue` instead of `schedule_work()` style (which in a lot of cases pre-date the introduction of `handle_continue`).
Also I want to comment that it is awesome and I love it. It’s simple and effective. OTP being bundled into the language is really very brilliant.
The ability to add cache annotations to functions feels really clean.
There’s also the ability to have cluster wide state but we haven’t set that up yet. We will soon.
It also seems a clean way to fill the lack of integrated cache solution in ecto.