When comparing Restify vs Hapi, the Slant community recommends Hapi for most people. In the question“What are the best Node.js REST frameworks?” Hapi is ranked 2nd while Restify is ranked 5th. The most important reason people chose Hapi is:
Hapi was developed and is still being used by Walmart. Being backed by such a major company means that it will not lose support any time soon and most importantly it's being developed by professionals and that you will always get support for it.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Automatic DTrace support
DTrace helps you with troubleshooting and building robust RESTful applications.
Pro Specialized for Restful APIs
As the name suggests, Restify is devoted solely to creating an elegant REST API. The API is the core of your site or service, so it makes sense to use a framework that excels at that.
Pro Backed by a major corporation
Hapi was developed and is still being used by Walmart. Being backed by such a major company means that it will not lose support any time soon and most importantly it's being developed by professionals and that you will always get support for it.
Pro Consistency across applications
Hapi's philosophy is that configuration is more important than code. This is especially useful for very large teams because it helps developers maintain consistency and reusability throughout their code.
Cons
Con Performance is not very optimum
As most of the benchmarks have already revealed, for large inflows of traffic, apps powered by Restify perform below par and are easily beaten by Express.js in terms of load time (in heavy traffic).
Con Requires too much boilerplate
Hapi seems to be made with large applications in mind. The sheer amount of boilerplate code it requires is simply not practical for a small web app. This also means that there are few examples of Hapi applications around for beginners to learn from.
