Take the 2-minute tour ×  Behind the scenes in node, how does
the http module's createServer method (and its callback)
interact with the event loop? Is it possible to build
functionality similar to createServer on my own in userland, or
would this require a change to node's underlying system code?
That is, my general understanding of node's event loop is    1.
Event loop ticks   2. Node looks for any callbacks to run   3.
Node runs those callbacks   4. Event loops ticks again, process
repeats ad-infinitum  What I'm still a little fuzzy on is how
createServer fits into the event loop. If I do something like
this  var http = require('http');  // create an http server  and
handle with a simple hello world message var server =
http.createServer(function (request, response) {  I'm telling
node to run my callback whenever an HTTP request comes in. That
doesn't seem compatible with the event loop model I understand.
It seems like there's some non-userland and non-event loop
that's listening for HTTP requests, and t