|
|
|
|
|
by Zarathu
1884 days ago
|
|
> In particular, I was itching to learn more about handling concurrency in Elixir. This, of course, led me to GenServers. Might be a nitpicking here, but GenServers aren't useful for concurrency. They just manage state, and only process one message at a time. If you're using this as a cache, your reads will be bottlenecked by however quickly the GenServer can handle the read requests. |
|
I can dump 1000s of things into its message queue and then do something else. It'll keep working away.
It's like saying threads aren't useful for concurrency because they can only do one thing at a time.