Asgi
Why Use WSGI/ASGI When We Have Nginx?
· β˜• 4 min read
Why use ASGI/WSGI between Python application and nginx when Python application can directly communicate to nginx? Why is that middle man needed? These were the questions that came to my mind when I was dabbling with FastAPI and I have to install uvicorn to host the Python application. Whereas Python itself can open a port and listen to incoming request.
https://d2kbulfv42d43j.cloudfront.net/2023/Q1/why-use-asgi-wsgi-layer-between-python-app-and-nginx.png