Can Node JS have multiple threads serving HTTP clients on a single HTTP port? This is to handle situations where some threads are waiting for a database or doing some heavy processing. This is not supposed to interfere with other threads that are quick things like loading an image.
Share
Node doesn’t wait for the database, thats the point. Node is non-blocking, event-driven. It sets up a callback, and keeps going round, ready for the next request. It doesn’t just sit there, waiting for the database to come back with the requested info.