Aug 24, 2017 · 1 min read
Thank you for your feedback!
> Processes are slow to create and destroy.
> Do you have any links/benchmarks backing that statement?
Here are my benchmarks https://gist.github.com/exAspArk/abd3aca53b1497156cc7761cfa1e452e. On my laptop, spawning threads is 130x times faster than processes.
> I suspect that the main reason why EventMachine exists is actually the “too expensive from a resource usage point of view” reason. I don’t think it’s much related to dealing with threads manually being hard.
Perhaps you’re right. The primary reason to use EM is to get maximum throughput with minimum resources. With EM you don’t have to use multiple threads, so there is no need in multithreaded programming as a side effect.
