My Obsidian Notes

Home

❯

Tech notes

❯

Computer Languages

❯

Programming Languages

❯

General Purpose Languages

❯

Python

❯

Specs

❯

WSGI vs ASGI

WSGI vs ASGI

Jul 17, 20251 min read

  • tech
  • python
FeatureWSGIASGI
Request HandlingSynchronous (Blocking)Asynchronous (Non-blocking)
WebSockets SupportNoYes
Best forREST APIs, Web AppsReal-time Apps, WebSockets
Used inFlask, Django, PyramidFastAPI, Django (ASGI mode), Starlette

As their name suggests, WSGI is great for traditional web apps, while ASGI is better for async applications.


Graph View

Created with Quartz v4.5.1 © 2025

  • GitHub