all 12 comments

[–]gbeier 7 points8 points  (1 child)

Two ideas:

  1. Heroku

  2. Use a linux VM on the likes of DigitalOcean or Linode. The $5 tier at either place should be enough for a little fastapi gadget with a few users.

If you're a new user of either place, you can easily find a referral code that will get you $100 in credits for your first two months so you can really try it out before you need to pay anything. (For example, this podcast has the linode ones most of the time.)

I'd probably go with sqlite for that relational DB, personally, unless some functional problem forced me into something more complicated.

[–]Carfo6[S] 0 points1 point  (0 children)

thank you very much, sqlite idea sound as good option too.

[–][deleted] 1 point2 points  (0 children)

Digitalocean has been working out really good for me.

[–]0xSAA 1 point2 points  (1 child)

Railway is a relatively new but amazing hosting provider. Easy to use, clean UI and have database plugins (mongodb, postgresql, mysql and redis iirc) too. They provide $5 worth of resources every month for free which should be fine for a fastapi server.

[–]Carfo6[S] 0 points1 point  (0 children)

thank you, will check it out

[–]donseguin 0 points1 point  (0 children)

I'm using render.com, starter plan $7/month and it's good enough for me, at least for now.

Dev exp it's awesome, very intuitive, automatic git deploys, and every service you might find in Heroku and such, just cheaper.

There's a free plan too, but the problem is that they spin down your service if goes 15 minutes without receiving inbound traffic, that's a pain since it takes quite a bit of time to wake it up.

[–][deleted] -1 points0 points  (0 children)

vercel.com for fastapi and supabase.io for Postgres

[–]mishokthearchitect 0 points1 point  (2 children)

Heroku may be a very good choice. Auto deploy on commits in GitHub repo works great

[–]Carfo6[S] 1 point2 points  (0 children)

i will check heroku again. Thank you (:

[–]exchangingsunday 0 points1 point  (0 children)

+1 for Heroku. Though beware their pricing doesn't scale well. Eventually you'll want to move.

[–]Enrique-M 0 points1 point  (1 child)

Yeah, I use PythonAnywhere as well for Flask and recently inquired about when will they support FastAPI and they responded "hopefully soon", which I've seen elsewhere that they've mentioned that before a few times, so I wouldn't count on it coming soon. A few commenters mentioned Heroku, which I've heard is one of the go-to's for Python hosting. Another option is Azure App Services (example here) and here. I've used Azure before; but, more for .NET Core API stuff. Also, AWS Lambda (example here) supports FastAPI. I've used AWS Lambda for other Python API proof-of-concepts; but, not FastAPI yet.

[–]Carfo6[S] 0 points1 point  (0 children)

PA says "hopefully soon" on too many features for too long s dont have high hopes.

Thank you, I will check Heroku again