Re:Write Fast Apps Using Async Python 3.6 and Redis
by netheril96 on Friday April 28, 2017 @01:58AM
(#14217142)
Is multithreading really necessary for a toy?
[ Parent
| on HN ]
Re:Write Fast Apps Using Async Python 3.6 and Redis
by mkj on Friday April 28, 2017 @02:42AM
(#14217318)
It probably is for long-polling or websockets?
https://github.com/mkj/wort-templog/blob/master/web/templog.... is my not-quite-toy example - a single process runs from uwsgi with Bottle (like Flask) and gevent. The long polling waits on a global Event variable that's updated by another request, nice and simple.