3 ms·
>Yes, to take advantage of all CPU cores you have to create more server instances. But why would they talk to the same database instance? Why not? Unless you'v
by coldtea 9y ago
>Yes, to take advantage of all CPU cores you have to create more server instances. But why would they talk to the same database instance?
Why not? Unless you've exceeded the capacity of a single DB and have a real use for sharding etc, it would not make sense to have difference DBs (+ replication overhead) for different Node processes.
- nitely 9y agoThe parent is asking how comes async I/O can handle higher volumes of requests given it's single threaded and even if it does how comes the database is still not the bottleneck. I answered both of these questions.
- coldtea 9y agoYes, and I had an objection with the answer to the second question, that it might leave the impression to the parent that sharding or replication and pooling is required to have good DB IO performance with multiple Node processes -- when in practice it might or might not be an issue. You can have a 12-processes node cluster and still not need a second db.