[erlang-questions] simple-one-for-one

Dave Smith <>
Sat May 23 16:06:12 CEST 2009


On Sat, May 23, 2009 at 7:41 AM, Kaiduan Xie <> wrote:
> What is the typical usage for simple-one-for-one restart strategy? For
> example, for a call processing server we need to spawn a process for
> each call, do we need to put it under a simple-one-for-one supervision
> tree? The same question applies to a TCP server which spawns a process
> for each incoming TCP connection.

Yup, that's how I generally use it. Any situation where you need many
(usually anonymous) instances of the same type of process is a good
fit for simple_one_to_one.

D.



More information about the erlang-questions mailing list