4 ms·
Because C is faster than JavaScript, and nginx is written in C.
by charliesome 14y ago
Because C is faster than JavaScript, and nginx is written in C.
- heroic 14y agoThe reason it is advised to not load static files via Node.js is that nodejs is a single thread process, and static files will hold up this thread. Nginx on the other hand, is multithreaded, and can continue serving other assets and requests while the statics are being served.