Settings

Theme

Ask HN: Should Python web frameworks care about ASGI?

8 points by prollyjethi 2 years ago · 2 comments · 1 min read


Hey Everyone

I am the author of a Python framework called Robyn. Robyn is one of the fastest Python web frameworks with a Rust runtime.

Robyn offers a variety of features designed to enhance your web development experience. However, one topic that has sparked mixed feelings within the community is Robyn's choice of not supporting ASGI. I'd love to hear your thoughts on this. Specifically, what specific features of ASGI do you miss in Robyn?

You can find Robyn's documentation here(https://robyn.tech/documentation). We're aiming for a v1.0 release soon, and your feedback will be invaluable in determining whether introducing ASGI support should be a priority.

Please avoid generic responses like "ASGI is a standard and should be supported." Instead, I request some tangible insights and evidence-based arguments to help me understand the tangible benefits ASGI could bring to Robyn or the lack of a specific ASGI feature that will hinder you from using Robyn.

Looking forward to your input!

Robyn - https://github.com/sparckles/robyn Docs - https://robyn.tech/documentation

westurner 2 years ago

If Robyn is not an instrumented SSL terminating load balancer with HTTP/3 support, there must still be an upstream HTTP server that could support ASGI.

ASGI (like WSGI) makes it possible to compose an application with reusable, tested "middleware" because there's an IInterface there.

awesome-asgi: https://github.com/florimondmanca/awesome-asgi

ASGI docs > Implementations: https://asgi.readthedocs.io/en/latest/implementations.html

  • prollyjethiOP 2 years ago

    > If Robyn is not an instrumented SSL terminating load balancer with HTTP/3 support, there must still be an upstream HTTP server that could support ASGI.

    See I'd like to believe that. However, there is no ASGI-compliant server that supports this properly(at least in the Python world).

    And when the community demands/needs the feauture, I see no reason why I won't bake the above features in Robyn itself.

    > reusable, tested "middleware" because there's an IInterface there.

    Robyn has a drop-in replacement for these. So, these should not be a problem.

    Having said that, I feel I could document these facts a bit boldly to clear out the doubts.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection