by easychris · 9y ago · 0 comments
I guess you're mixing up processes with Ruby threads.
You normally start as many Puma processes as your CPU/Core count with probably additional threads per workers.
Erlang, on the other hand, has a preemptive scheduler that is capable of keeping all cores hot.
But the beauty of HTTP is that you can scale simply by adding more "endpoints". That means you can add as many processes (workers) as necessary to utilize all CPUs, or even add as many servers as you can afford.
I'm not saying that Elixir does not do a better job with it's lean processes and built-in OTP stuff.
But it's not true that you can't utilize all CPUs with a Rails app.