Let’s Build a Web Server. Part 2
ruslanspivak.com
Let’s Build a Web Server. Part 2
1–9 of 9 posts
Re: Let’s Build a Web Server. Part 2
#2> Other languages have similar interfaces too: Java, for example, has Servlet API and Ruby has Rack
No mention of node.js. I get the impression that there is less struggle with node because it has a http server built in. Is that ideal, or would node benefit from a WSGI-like interface? Is anybody working on that?
Or, if a node-style built-in server is better for performance and compatibility, is anybody implementing one for Python, Ruby, or Java?
Re: Let’s Build a Web Server. Part 2
#3I'm trying to get a better idea of the landscape here. > Other languages have similar interfaces too: Java, for example, has Servlet API and Ruby has Rack No mention of node.js. I get the impression that there is less struggle with node because it has a http server built in. Is that ideal, or would node benefit from a WSGI-like interface? Is anybody working on that? Or, if a node-style built-in server is better for p…
Re: Let’s Build a Web Server. Part 2
#4I'm trying to get a better idea of the landscape here. > Other languages have similar interfaces too: Java, for example, has Servlet API and Ruby has Rack No mention of node.js. I get the impression that there is less struggle with node because it has a http server built in. Is that ideal, or would node benefit from a WSGI-like interface? Is anybody working on that? Or, if a node-style built-in server is better for p…
Plenty of evented servers in java,ruby,python already (netty,celluloid,event machine, twisted python...)
Re: Let’s Build a Web Server. Part 2
#5I'm trying to get a better idea of the landscape here. > Other languages have similar interfaces too: Java, for example, has Servlet API and Ruby has Rack No mention of node.js. I get the impression that there is less struggle with node because it has a http server built in. Is that ideal, or would node benefit from a WSGI-like interface? Is anybody working on that? Or, if a node-style built-in server is better for p…
Re: Let’s Build a Web Server. Part 2
#6Re: Let’s Build a Web Server. Part 2
#7Oh wow, he knows HTTP layer 7 protocol. Quick, write a blog post.
Re: Let’s Build a Web Server. Part 2
#8I'm trying to get a better idea of the landscape here. > Other languages have similar interfaces too: Java, for example, has Servlet API and Ruby has Rack No mention of node.js. I get the impression that there is less struggle with node because it has a http server built in. Is that ideal, or would node benefit from a WSGI-like interface? Is anybody working on that? Or, if a node-style built-in server is better for p…
There is JSGI, but not sure if it is used widely. http://wiki.commonjs.org/wiki/JSGI/Level0/A
Connect is a middleware framework for node's http module and IIRC became the basis of Express (which is now entirely independent of Connect but remains compatible with Connect middleware). Express is (still) the most popular Node.js web framework.
I think the problem with JSGI is that it's not built into Node.js and the Node.js community tends to favour smaller, specialized libraries. JSGI just seems like an unnecessary layer of indirection from that point of view.
Re: Let’s Build a Web Server. Part 2
#9Keep it up.