Turn your Flask App into Async using Quart
summary
Claims Quart is a superset of the Flask API so a Flask app can be migrated by swapping imports and making handlers async; demonstrates replacing Flask with Quart and adding async/await to endpoints (replace Flask with Quart and add async). Builds a small sunrise/sunset app that calls external HTTP APIs and measures wall time: synchronous batch runs in about six seconds for 20 items, async version runs roughly 1.8 seconds — a multi× speedup with working code.
AI-written summary · about
chapters (6)
- 0:00Start
- 4:47WHY ASYNC ?
- 7:40ASYNC FOR SCALIBILITY
- 11:54UNDERSTANDING GENERATOR
- 17:59LETS EXPLORE ASYNCIO
- 21:20PRODUCER AND CONSUMER APP - ASYNC VERSION
related talks
26mYour app is async so take advantage of it for development!
28mWhy Should Async Get All The Love Advanced Control Flow With Threads
30mLet's get you started with asynchronous programming
05mFlask in Five
25mAdd your first asynchronous API to your app in 30 minutes
56mLeveraging Async and Await in Modern Python
08mLightning Talk: Using Flask to Build a Super-Fast Volunteer Time Tracking App
18mBuilding Lightning-Fast Apps With asyncio
