MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/FastAPI/comments/1mq7ed8/lifespan_on_fastapi/n8qesiu/?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
Thanks, this is pretty cool. Planning on building using fastapi at work and was curious on how people use lifespans
1 u/SpecialistCamera5601 Aug 14 '25 Glad it helped! Haha, nice! Welcome to our life! Hope your FastAPI build goes smooth. :) 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 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.
Glad it helped! Haha, nice! Welcome to our life! Hope your FastAPI build goes smooth. :)
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 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.
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
Thanks, this is pretty cool. Planning on building using fastapi at work and was curious on how people use lifespans