MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/FastAPI/comments/1mq7ed8/lifespan_on_fastapi/n989qze/?context=3
r/FastAPI • u/[deleted] • Aug 14 '25
Hey guys, been enjoying fastapi for a bit now. How much do you use lifespan on fastapi and on what purposes have you used it on?
18 comments sorted by
View all comments
2
In FastSQLA, it is used to setup async db engine at app startup. In al the apps I've written, it is where configuration of the app gets done.
View all comments
2
u/hadriendavid Aug 17 '25
In FastSQLA, it is used to setup async db engine at app startup. In al the apps I've written, it is where configuration of the app gets done.