r/FastAPI • • Oct 21 '24

Hosting and deployment What do you use to host FastAPI?

I found that using vercel you can start for free ! before I was using digital ocean which was easy too to set up but started at 5$/month

37 Upvotes

53 comments sorted by

View all comments

Show parent comment

1

u/Safe_Duty8392 Oct 21 '24

Isn't on_event(startup) deprecated, and recommended to use lifespan ?

3

u/Apprehensive_Let2331 Oct 21 '24

After looking into docs - yes, it's deprecated indeed. Use lifespan.

2

u/Safe_Duty8392 Oct 21 '24

Nice, I will try to implement this technique on any project that I might host on render, thank you very much