Newcomers to NodeJS typically find its API difficult to grasp. Luckily, many developers have created frameworks that make it easier to work with Node. Connect is one such framework. It sits on top of Node’s API and draws the line between comfort and control. Think of Connect as a stack of middleware. With every request, Connect filters through the layers of middleware, each having the opportunity to process the HTTP request. When T.J. Holowaychuk announced Connect, he said there were two types of middleware. The first is a filter.
If you want a beginner-friendly library that makes it easy to build large web apps, then Connect isn’t your solution. Connect is meant to be a thin layer on top of the raw Node API that gives you complete control over your server application. If you want a bit more, Andrew Burgess recommends Express (by the same folks, incidentally). Otherwise, Connect is a fantastic, extensible library for Node web applications.
Comments
Be the first to write a comment
You must me logged in to write a comment.