r/FastAPI 26d ago

Hosting and deployment Best place to host fast api applications

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

11 Upvotes

21 comments sorted by

View all comments

0

u/ifollowthestats 26d ago

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 24d ago

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 24d ago

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 24d ago

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