DEV Community

Discussion on: The Three Python ASGI Servers

Collapse
 
memark profile image
Magnus Markling

It would be helpful to have some guidance on when to choose which server!

Collapse
 
bowmanjd profile image
Jonathan Bowman

Good question. Personally, I just use uvicorn. But any will give you a decent ASGI experience.

Collapse
 
__masashi__ profile image
Masashi

Uvicorn is the GoTo solution for most people because it came out to be famous. It is genuinely good and really fast, but the other options are severely overlooked.
Use Hypercorn since it supports HTTP/2 and HTTP/3. (Uvicorn is yet to support HTTP/2. I don't know is they have any plans for HTTP/3 suppy).
You can use Daphne also. Daphne is the server after which the ASGI specs are modelled.
You can also use a lesser known option: granian.
For more details, check the ASGI ref

Collapse
 
bowmanjd profile image
Jonathan Bowman

I will admit I have tried granian, and kinda fell in love with it. If you are open to something new and developing, you might like it.

Thread Thread
 
__masashi__ profile image
Masashi

I haven't tinkered much with granian except for when i used it once. I am really open to new and developing since they also have a scope of doing something significant and useful. I tried Granian while testing my ASGI framework with different ASGI servers.

Collapse
 
memark profile image
Magnus Markling

Thanks, great reply!