What is the best framework and difference of nodejs framework


These days I try to develop real time application using nodejs.
That application want to update the dashboard according to api data.

I installed express and faye and try to compare what is the best and what are the differences of that two.
As I know express is a node base framework and faye is a subscriber/publisher based one.

But I think both are almost same and anyone can help me to identify the differences?
What is fast and what can be done using the frameworks like that ?

Thanks in advance.


They are not very comparable. If you want to create a real-time application, you will probably need to use both.

Express is a web framework. You will need it to serve and handle HTTP requests and responses. It will help you handle things like url routing, request/response handling middleware, interfacing with template engines, etc… Express is as fast as you’ll get.

Faye is a pub sub messaging system- It will not be capable of handling standard HTTP requests and responses. You may be able to implement a live stream of the data using Faye, however, you will still have the need to serve up your client side application using Express.

I would also look into Socket.io as an alternative to Faye- in addition to Express.

Answered By – Hyo Byun

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published