WSGI and ASGI
The interfaces between Python apps and web servers: WSGI is synchronous; ASGI supports async, WebSockets and long-lived connections.
Intermediate
Flask and classic Django use WSGI (served by Gunicorn); FastAPI and Starlette use ASGI (served by Uvicorn).
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.