Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<h2>Dynamic requests</h2> <p>node.js is very good at handling at lot small dynamic requests(which can be hanging/long-polling). But it is not good at handling large buffers. Ryan Dahl(Author node.js) explained this one of <a href="http://nodejs.org/jsconf2010.pdf">his presentations</a>. I recommend you to study these slides. I also watched this online somewhere.</p> <h2>Garbage Collector</h2> <p>As you can see from slide(13 from 45) it is bad at big buffers.</p> <p><strong>Slide 15 from 45:</strong></p> <blockquote> <p>V8 has a generational garbage collector. Moves objects around randomly. Node can’t get a pointer to raw string data to write to socket.</p> </blockquote> <h2>Use Buffer</h2> <p><strong>Slide 16 from 45</strong></p> <blockquote> <p>Using Node’s new Buffer object, the results change.</p> </blockquote> <p>Still not that good as for example nginx, but a lot better. Also these slides are pretty old so probably Ryan has even improved this.</p> <h2>CDN</h2> <p>Still I don't think you should be using node.js to host static files. You are probably better of hosting them on a CDN which is optimized for hosting static files. <a href="http://en.wikipedia.org/wiki/Content_delivery_network#Content_delivery_service_providers">Some popular CDN</a>'s(some even free for) via WIKI.</p> <h2>NGinx(+Memcached)</h2> <p>If you don't want to use CDN to host your static files I recommend you to use <a href="http://www.igvita.com/2008/02/11/nginx-and-memcached-a-400-boost/">Nginx with memcached</a> instead which is very fast.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload