node.js - Backend server app which listens to multiple Server Sent Events and saves data to DB -
what best tool/way implement server side application hear multiple server sent events(sse) , action saving values database on receiving events. number of sse listeners alter new users gets registered. considering node.js, please help me thoughts on implementing not server application development background.
i think best solution here -if considering nodejs- utilize websockets. can utilize socket.io
, set on own or utilize paas take of you, example: http://pusher.com/.
using websockets can seamlessly communicate client (browser) , and send , receive info in real time. can applied other device capable of doing http connections.
to store values utilize redis, quite fast , should give simple , basic functionality looking for. if actions need atomic, can build simple worker process write values redis database, postgresql instance.
node.js server-sent-events
No comments:
Post a Comment