MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/FastAPI/comments/1mq7ed8/lifespan_on_fastapi/n8qh9yd/?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
Show parent comment
1
I've built a few pet projects but they are usually pretty small and the last time I used fastapi in a job they didn't have lifespans.
I'm pretty excited to get back into it and I'm sure the build won't be too intense
1 u/SpecialistCamera5601 Aug 14 '25 If you’re getting back into it, check out APIException; it makes error handling in FastAPI super clean. I use it all the time.
If you’re getting back into it, check out APIException; it makes error handling in FastAPI super clean. I use it all the time.
View all comments
Show parent comment
1
u/Gushys Aug 14 '25
I've built a few pet projects but they are usually pretty small and the last time I used fastapi in a job they didn't have lifespans.
I'm pretty excited to get back into it and I'm sure the build won't be too intense