How to write a simple Python push server implementation using django?

I would like to write a simple server-based implementation using a long pool or comet that integrates into the server.
I do not want to use a network infrastructure such as twisted, because I want to learn how everything is done internally.
What exactly should I find out? What specifications should I look at?
I prefer something that is suitable for Apache, so is a longer pool better? Is there a way to implement such a thing without any external structure like Stackless Python ?

+3
source share
1 answer

Using Django is not possible because django works behind a standard HTTP server. To click, you need to write a server that supports a large number of parallel connections. For starters, I recommend reading the Orbited source code. Read server code (python) and client code (javascript).

0
source

Source: https://habr.com/ru/post/1758271/


All Articles