Quantcast

Gevent based ASGI server

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Gevent based ASGI server

Jon Pry
I modified Daphne and the ASGI layer to get the one of the examples to run under gevent. 

Code is here:

https://github.com/jonpry/thyme

Code is not as clean as it needs to be. But imho it works better than daphne, none of this hot polling stuff going on anymore. In any case it's interesting to see where exactly the ASGI model needs to be tweaked a little. 

Cheers,

Jon Pry

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/5edc94e8-39c8-4d15-aa40-8646c7cc0a2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gevent based ASGI server

Andrew Godwin-3
Hi John,

You are talking about a lot of ideas I want to bring into the main redis transport (improved polling, connection handling, using the channel name local part for routing, etc.), which are separate from using gevent, really; would you be open for contributing this kind of stuff back to the main asgi_redis transport? It would improve performance on asyncio or twisted as well.

Andrew

On Sun, Mar 12, 2017 at 9:54 PM, Jon Pry <[hidden email]> wrote:
I modified Daphne and the ASGI layer to get the one of the examples to run under gevent. 

Code is here:


Code is not as clean as it needs to be. But imho it works better than daphne, none of this hot polling stuff going on anymore. In any case it's interesting to see where exactly the ASGI model needs to be tweaked a little. 

Cheers,

Jon Pry

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/5edc94e8-39c8-4d15-aa40-8646c7cc0a2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAFwN1uq-Le44BzKty4M1qVzgwMsiANFoB8rSyKyniSNnCppNVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...