DEV Community

Discussion on: Demystifying Elixir GenServers: Building Resilient Concurrency in Elixir

Collapse
 
jonlauridsen profile image
Jon Lauridsen

The most amazing thing about GenServers are their sheer scale. All languages can create processes, but creating MILLIONS of processes?? To spawn a process for each HTTP connection?? To spawn a live persistent process FOR EACH WEBSOCKET CONNECTION?? It's bonkers, it's wild, it's so insane to anyone new to Elixir/Erlang/OTP that this whole thing surely cannot work, and yet it elegantly and powerfully does.