express.js vs restify node.js framework.
Its just to share an experience i had while trying out restify framework in node.js. We had the requirement to build up a REST API in node.js and were looking for a lighter weight framework than express.js which probably avoid from the unwanted features and would act like a custom built framework for building REST APIs. Restify is recommended for the same case.
But the surprise came when i tried out both with a load.
I made a sample REST API on restify and flooded it with 1000 requests per sec. Surprise to me the route started not responding after a while. The same app built on express.js handled all.
May be i am wrong, "But do testify before you restify".
Written by Mithun Satheesh
Related protips
3 Responses
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/81682/e03f3a6314e7ed2bd34b7200d48742d2.jpeg)
Can you share your code for that testing?
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/16416/mau.png)
Is there a gist, or some other place where I can see how you tested your API?
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/69046/1c1e733f065ac75af0f10897480393e1.jpeg)
@h4ckm03d , @maumercado: I have the testing code here in this stackoverflow question. http://stackoverflow.com/questions/17589178/why-should-i-use-restify