Let’s Build a Web Server. Part 2
ruslanspivak.com
ruslanspivak.com
> 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?
Plenty of evented servers in java,ruby,python already (netty,celluloid,event machine, twisted python...)
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.
Keep it up.