| Start |
|---|
Enable gzip |
Event Loop Blocking Operation ExampleNon-Blocking IO Operation ExampleIn simpler terms, Event Loop is a single-threaded queue mechanism which executes your CPU-bound code until end of its execution and IO-bound code in a non-blocking fashion. However, Node.js under the carpet uses multi-threading for some of its operations through libuv (opens new window) Library. Performance Considerations
Node.js non-blocks IO because it offloads the work to the operating system kernel, and when the IO operation supplies data (as an event), it will notify your code with your supplied callbacks. |
Increase maxSockets BasicsNode.js by default is using Setting your own agent
Turning off Socket Pooling entirelyPitfalls |
Read Article
https://develop.horje.com/learn/1434/reference