I am thinking of using node.js as a gateway. I want to implement several frontends (browser, apps etc.) which get served by node.js with data over websockets. Node.js cannot fetch this data directly from a database but node.js should get it from a backend through an interface which makes it easy to replace the backend. So I was thinking of using a restful layer or a publish /subscribe protocol like MQTT as interface.
Ok ... question: Is this a good idea? Can node.js act as a gateway and what modules do you recommend for such a purpose?
Copyright Notice:Content Author:「seveves」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/19844006/node-js-as-gateway