Real time and Django - approaches

75 views
Skip to first unread message

Aaron Reabow

unread,
Feb 20, 2015, 7:37:56 AM2/20/15
to django...@googlegroups.com
Hi.

I wanted to see what the Django community thought about realtime circa 2015.

My impression (and I could be very wrong) is that if you want real time, you should build your own stack up from scratch.  There are frameworks - like swampdragon/socketio - that promise to do the hard yards for you, but ultimately are either based on older versions of the underlying tech, or too green to be in production.

So which stack to build?  There is the gevent route which looks promising as it keeps it all in the python family.  (Stack would be something like - django/redis/gevent/gunicorn)

From what I have read, gevent becomes opaque and throws up hard to understand errors.  Without a strong community behind this, debugging is either for the advanced, or extremely dedicated.

Another stack option is to use Node.  I quite like this, despite the challenges.  The stack would be django/apache +redis/socetio/node/celery.  I think the hardest part would be managing oauth2 between the two servers.  On the upside, django can do all the regular web stuff, with node handling realtime components.

So I have just stated my own views from what I could glean from blog posts.  I was interested if people had alternate understandings.

What I am building definitely does need pubsub at the least, and to be as near to realtime as possible would be an advantage.

many thanks,

Aaron


Carlos Aguilar

unread,
Feb 20, 2015, 10:04:48 AM2/20/15
to django-users
I build something related with realtime using gevent-socketio more than 1 year ago and works really well.

Best Regards

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a5923d8e-54a4-46ab-8df0-fdbb25ad076b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Carlos Aguilar
Consultor Hardware y Software
DWD&Solutions
http://www.dwdandsolutions.com

Aaron Reabow

unread,
Feb 21, 2015, 3:13:18 AM2/21/15
to django...@googlegroups.com
Thanks Carlos.

How did you find the implementation?  Was it quite smooth, or did you hit a lot of problems along the way?
Reply all
Reply to author
Forward
0 new messages