I'm working on a small FastAPI project and trying to figure out the best places to host it. I've previously hosted Ruby apps on platforms like EC2, Heroku, and a VPS, but I'm curious about what's popular among the Python community. Any recommendations?
6 Answers
I've had good luck using Render to host my FastAPI endpoints. Super easy to set up!
For smaller API apps, a VPS is really easy to manage, especially when scaling isn't a concern. I have a FastAPI app running for just £2.50 a month! Pretty cost-effective!
Where are you hosting it for that price?
I love the budget-friendly options!
For Python web apps, don’t overlook platforms like AWS Lambda with Mangum for FastAPI; it’s a powerful combo for minimizing costs and deployment hassle! Plus, Cloud Run and Fly.io offer similar benefits.
Cloud Run is such a neat solution! Gotta check that out.
For hobby projects, Oracle's free tier VPS is fantastic. You get 4 ARM cores and 24GB RAM without any costs, which is great for running a Python app. Just be mindful of their idle policy!
I've had a smooth experience with DigitalOcean VPSs; the smallest plan is perfect for most use cases, especially a FastAPI project!
If you don't mind self-hosting, I've found it best to run everything myself until I need to scale. For small projects, using Docker on something like a Raspberry Pi can work great. Plus, with tools like Cloudflared, managing ports becomes way easier!
Do you run multiple projects on the same VM? And do you also manage your own database?
Nice tip! Self-hosting can really save on costs!
Did you also use Render for your database alongside your FastAPI app?