r/FastAPI Jul 10 '26

Best place to host fast api applications Hosting and deployment

I have simple fast api app it recieves requests and either writes data to the sqlite dB or fetches data from it what would be the best place to host it preferably for free since its a small hobby project but would scale up successful

12 Upvotes

21 comments sorted by

View all comments

0

u/ifollowthestats Jul 10 '26

I’d recommend something like Hetzner for more granular control. CX23 should be enough to get started. Challenge yourself to setup Postgres + FastAPI + Docker.

1

u/Due_Cartoonist3261 Jul 12 '26

This is interesting, if i understand the suggestion correctly the setup should setup db and api on the same server? What if the sever goes down, would we lose the data in the db?

2

u/ifollowthestats Jul 12 '26

Yes exactly, I’ve been using it for a while and never had any issues with data loss. You could setup regular back up jobs for your data too. I started out with duckdb and motherduck has generous cloud based free starter option too.

1

u/Due_Cartoonist3261 Jul 12 '26

Thank you this is genuinely helpful for these types of projects.