Search code examples
djangoredissocket.ioreal-time

Redis to Socket.IO


I am making a real-time webapp using Django. Django does all the heavy lifting. To make the app real-time, when a change is made in Django, it is published to redis. I then set up a node.js app that marshals the data from redis to socket.io.

So right now things look like this.

Django -> Redis -> Node.js -> Socket.IO -> Browser

I'm OK with using redis and think it is great. I looked into gevent-socketio but it is not what I am looking for. Is there a way to do:

Django -> Redis -> Socket.IO -> Browser?


Solution

  • Redis and socket.io don't communicate directly.. you need server in between, especially if You use websockets, long-polling etc.