Spawn and spawn from spawned

If I spawned a new process, if would it be a good practice to spawn yet other processes from that spawned process? Any downsides?

We spawn processes from processes all the time… Spanning up the supervision tree is nothing else but spawning processes in a hierarchy.

Starting a task is nothing but spawning a process.

It’s bad practice though to not supervise them. Also I’d tend to not use the space function at all unless building a high-level abstraction from the low level building blocks or to learn how the OTP abstractions work internally.

2 Likes