I am planning to develop a complex Node application with 30 modules which will be purely accessed thru REST services - backbone being one of the front-ends. I am not sure if I should use Express or Connect as the application does not use any views.
Asked
Active
Viewed 916 times
2 Answers
3
Express gives you everything in Connect plus:
- Views (which you don't need)
- Routing (which you probably do need), along with support for route middleware
- Ability to use multiple configurations (e.g. production vs. testing)
- Settings management, making it easy to pass settings to different modules
- Convenience methods on request objects for extracting info
- Convenience methods on response objects for sending files, setting cookies, redirecting, etc.
It sounds like you'd benefit from the routing, configuration, and settings in particular. You might want to look into restify as an alternative.

ebohlman
- 14,795
- 5
- 33
- 35
1
Express is built on Connect, and exposes many of its features in a more friendly way. The one major thing you'll get from Express is a built-in router (complete with route-specific middleware, error handling, etc); however, if you're comfortable with rolling your own routing solution and don't need the other features offered by Express, you can build on Connect itself.

Michelle Tilley
- 157,729
- 40
- 374
- 311