Concept Flow - ASGI vs WSGI
Client sends HTTP request
WSGI Server receives request
WSGI calls Django app synchronously
Django processes request and returns response
WSGI sends response back to client
Client sends HTTP or WebSocket request
ASGI Server receives request
ASGI calls Django app asynchronously
Django processes request (HTTP or WebSocket)
ASGI sends response back to client
This flow shows how WSGI handles synchronous HTTP requests only, while ASGI handles asynchronous HTTP and WebSocket requests.