Re:How JavaScript works: Event loop and the rise of Async pr...
by nitely on Saturday October 14, 2017 @07:15PM
(#15474859)
The 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.
Re:How JavaScript works: Event loop and the rise of Async pr...
by coldtea on Saturday October 14, 2017 @07:52PM
(#15474991)
Yes, 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.
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.