hagsteel / swampdragon

swampdragon
Other
557 stars 74 forks source link

Synchronize Swampdragon in django cluster #191

Closed ZuSe closed 8 years ago

ZuSe commented 8 years ago

Given the setup that I have multiple boxes, each running an instance of swampdragon besides django. Alll swampdragon instances make use of the same redis database, all django instances run against the same pgql cluster.

I have router for notifications about changes of a users online status. Each user subscribes at login to this route. The related model is implemented as SelfPublishModel.

When now the online status of a users changes all active users should receive the status update (unicast to channel subribers). What happens is that only users connected to the same server as the user who's status is changing receive the message.

So my question: How can I achieve that all users (also the ones subscribed with other sd instances) get the notification? Has someone dealt with this before? The setup is not about performance but availability so using one django or one sd instance is no solution :/ Actually I thought it would be handled by tornado/redis automatically.

I would really appreciate any advice on this issue