Skip to content

Comment on Suture – Supervisor Trees for Goparent

Comments

Exactly. One of the big ideas of Erlang is to have many lightweight processes (processes in the VM, not OS).

As an example say you have a chat system, you will have a process for each user [0]. If you have a million users, you will end up with a million processes. The supervisor tree watches these processes, so if one crashes a single user may get logged out but everybody else will be unaffected.

[0] In reality you'll probably have it even more fine grained than that, so users will end up with multiple processes.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.