Skip to content

Unlocking ASGI Innovations

How FastAPI Reaps the Benefits


The Speaker

bg:60% 70%

Marcelo Trylesinski


OSS Maintainer

### Uvicorn ![w:450](https://raw.githubusercontent.com/tomchristie/uvicorn/master/docs/uvicorn.png)
### Starlette ![w:600](https://raw.githubusercontent.com/koddr/starlette-logo/master/src/dark/svg/starlette__full_logo__with_text__dark.svg)

What is ASGI?

w:750


What is ASGI?

w:1000


Why FastAPI follows ASGI?


WebSocket Denial Response

w:900


WebSocket Denial Response

w:1000


WebSocket Denial Response

w:1000


WebSocket Denial Response

w:900


HTTP Trailers

w:900


HTTP Trailers

w:1150


HTTP Trailers

What about FastAPI?


HTTP Trailers

w:1150


HTTP Trailers

Open Source!


Client Disconnection

w:1100


w:1030


Client Disconnection

w:1100


Client Disconnection

w:1200


Client Disconnection

Uvicorn raises OSError on... WebSockets!


Client Disconnection

w:1000


Client Disconnection

Next steps...


Conclusion


Bonus: FastAPI Tips

https://github.com/Kludex/fastapi-tips


Try Logfire (PYCONPT2024)! 🚀

w:800


Thank You!

marcelotryle.com

Marcelo Trylesinski @marcelotryle Kludex