Zappa icon indicating copy to clipboard operation
Zappa copied to clipboard

Add ASGI support

Open simonw opened this issue 4 years ago • 6 comments

Zappa currently only supports WSGI.

ASGI is a new standard for Python web programming with deep support for Python 3 asyncio.

If Zappa added support for ASGI, projects written using the following frameworks would all become deployable using Zappa:

The Mangum project already implements an ASGI handler for Lambda.

The work by @delijati in this fork seems to indicate that modifying Zappa to support ASGI via Mangum could be achieved with a relatively small change: https://github.com/Miserlou/Zappa/compare/master...delijati:master

simonw avatar Sep 01 '20 03:09 simonw

ASGI is mentioned in #649 and #1896 but there's no single issue advocating for ASGI support to be added directly to Zappa, so I opened this one.

simonw avatar Sep 01 '20 03:09 simonw

+1, FastAPI is growing fast and Zappa support to it would be awesome!

bratao avatar Sep 04 '20 02:09 bratao

+1, It would be great if support for ASGI will be added to new versions of Zappa .

gaurav386i avatar Sep 21 '20 05:09 gaurav386i

Has anyone tried running it with gunicorn (WSGI) but using uvicorn workers (ASGI)? ie gunicorn -k uvicorn.workers.UvicornWorker

ArcLightSlavik avatar Oct 02 '20 23:10 ArcLightSlavik

+1 , desperately need support for ASGI (FastAPI) in Zappa

ksingh7 avatar Feb 06 '21 16:02 ksingh7

@ksingh7 we should open a feature request on new Zappa repo for ASGI support , FYI no activity on zappa repo from last couple of months, try some workaround with mangum . https://github.com/zappa/Zappa

gaurav386i avatar Feb 07 '21 13:02 gaurav386i