Hello,
I would like to write a simple server-push implementation either using long pooling or comet that integrates into the server.
I don't want to use a networking framework like twisted because I want to learn how everything is done internally.
What exactly should I learn?
What specifications should I look at?
I prefer something that fits to apache so long pooling is better right?
Is there a way to implement such a thing without any external framework like Stackless Python?
views:
101answers:
1
A:
Using Django it is not possible, because django works behind standard http server. To push you need to write a server supporting large number of paralell connections. To start with, I recommend reading Orbited source code. Read both server (python) and client (javascript) code.
Uszy Wieloryba
2010-08-05 22:21:57
so creating something that uses only their messaging middleware and some sockets is not possible? I would really like to not depend on a special server for this but to relay on something that can run on any server as long as it can run python (so I can deploy on any possible setting)
the_drow
2010-08-05 23:10:38
I don't believe that this is entirely true. I could imagine that, behind (for example) gunicorn, it could be done.
David Wolever
2010-08-06 03:09:33
David Wolever: How? Got any sources you can point at?
the_drow
2010-08-09 08:00:01