I am currently planning a web application that requires constant listening to an open socket connection and writing certain things to the database.
To get to know flask (the framework of my choice) and python in general, I want to play with twitter-streaming-api.
The main problem is the same. How to implement a permanent "Connection-Listener" for both types of connections?
Is the method below suggested the best way to do this?
Streaming API Integration with Django
For some reason, I don’t like the idea of introducing a system daemon on a machine.
Change: Of course, I want to serve users through HTTP. All this should be non-blocking.
source
share