Real time notifications for web applications using nodejs, socket.io and redis pubsub

Recently I was working on a real time workflow for a module. I found it really difficult to find good tutorial for the same. I struggled with Flask, gevents and lot of other things and finally settled down to nodejs and socket.io and redis pubsub.

I have written a tutorial for the same https://github.com/roshansingh/realtime-notifications.

The beauty of nodejs is that everything was accomplished in less than 50 lines of code :). Read it and let me know if you have any feedback.

 

Twitter0Facebook0Google+0Email
  • micheal

    roshan thanks for your article, i wanted to do similar project,
    my requirement is i should start the jobs, that is once the job is started, stored procedure must be executed frequently and update this results to the dashboard.
    and wanted to use mysql instead redis, is it possible
    please help?
    thanks

    • http://roshansingh.in/ Roshan Singh

      Who executes the stored procedures?

  • micheal

    node.js should call the stored procedure and reterive the result to the user