why do people persist in mangling django into doing websocket persitent concurrency when there are better py or otherwise well suited tools to such tasks...
Because it's a popular, well-written framework with a huge volume of existing code, and integrating WebSockets into Django means you don't have to maintain two codebases if you want to have a realtime Django app.
The C10K problem[1] is about real clients accessing real web servers, not about writing short strings over WebSocket.
I'll associate "C10K" and "Django" when I'll see a dynamic web page being served using the template system, the standard middleware and the ORM (with the default behavior of creating and destroying a database connection for each request).
The C10k problem was originally about serving static files -- quoting the page you linked to: "take four kilobytes from the disk and send them to the network".
The demo could certainly be extended to send larger amounts of data -- left as an exercise for the reader.
I'm not sure to understand your second paragraph -- if I used this system in a real application, I would serve the pages with the traditional handler (with template rendering, middleware, etc.) and then exchange messages over the websocket. These are different roles.
Regarding database connections, the default behavior isn't the one you're describing any more; I implemented persistent connections in Django a few weeks ago.
[+] [-] bayesianhorse|13 years ago|reply
[+] [-] hoov|13 years ago|reply
[+] [-] kapilvt|13 years ago|reply
[+] [-] LeafStorm|13 years ago|reply
Also, it's fun.
[+] [-] _fs|13 years ago|reply
[+] [-] est|13 years ago|reply
[+] [-] hoov|13 years ago|reply
In practice, debugging is an unpleasant experience. If you're doing anything slightly out of the ordinary, you should take care.
[+] [-] fafhrd91|13 years ago|reply
[+] [-] lucian1900|13 years ago|reply
[+] [-] eliben|13 years ago|reply
[+] [-] stefantalpalaru|13 years ago|reply
I'll associate "C10K" and "Django" when I'll see a dynamic web page being served using the template system, the standard middleware and the ORM (with the default behavior of creating and destroying a database connection for each request).
[1] http://www.kegel.com/c10k.html
[+] [-] mYk|13 years ago|reply
The demo could certainly be extended to send larger amounts of data -- left as an exercise for the reader.
I'm not sure to understand your second paragraph -- if I used this system in a real application, I would serve the pages with the traditional handler (with template rendering, middleware, etc.) and then exchange messages over the websocket. These are different roles.
Regarding database connections, the default behavior isn't the one you're describing any more; I implemented persistent connections in Django a few weeks ago.
[+] [-] vampirechicken|13 years ago|reply