|
|
|
|
|
by mnutt
5293 days ago
|
|
I want to scale my app on modern, multi-core computers. I know, I'll write everything so that it all runs in a single thread! This is the same fallacy that gets repeated every time node is mentioned. If you're scaling up past a single machine you have to figure out how to share state between multiple machines anyway, so you may as well run a process per core. Then you have a single way to share state, rather than one way between cores and another between machines. So unless you're writing a desktop app that needs to scale up but only to all of the cores of a single machine, you're sometimes better off simplifying the state-sharing logic. |
|