Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chat application using django

If i devlop a chat application using django will it have some performance problem? Can i do server push in django? I want to have PM and room discussions as well.

like image 777
user223541 Avatar asked Jan 19 '10 13:01

user223541


4 Answers

I released a Django app on Pypi and Github that provides a multi-user web chat. It's based on Gevent: works well in multithreaded environments, but not in pre-forked ones such as gunicorn running more than 1 worker. I'm just writing the documentation. The repo is: https://github.com/qubird/django-chatrooms

like image 184
qubird Avatar answered Oct 11 '22 22:10

qubird


How about using tornado? I tried demo chat application of Tornado. And also Tornado claims to have a better performance than django.

Let me know your thoughts.

like image 45
abhiomkar Avatar answered Oct 12 '22 00:10

abhiomkar


grono.net has chat and PMs (although there are no rooms) and is built on django. Performance is pretty well, so I believe you should be able achieve the same performance. It depends, on how much connections you are expecting. grono.net is pretty big and it uses some caching and server distribution to perform well. But it all is doable on Django.

like image 1
gruszczy Avatar answered Oct 11 '22 22:10

gruszczy


I think for a chat application you can use other technologies, such as AMQP(RabbitMQ, etc), Comet, etc. But, for develop user profile, PMs, and other you can use Django.

Do not forget that performance still depends on server configuration (web server software, cache, db)

like image 1
Vadim Chernysh Avatar answered Oct 12 '22 00:10

Vadim Chernysh