What are the best hosting options for Python web apps?
Asked by
CuriousCoder42
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?
Answers
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!
Reply to this answer
I've had a smooth experience with DigitalOcean VPSs; the smallest plan is perfect for most use cases, especially a FastAPI project!
Reply to this answer
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!
Reply to this answer
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.
FastLane: Cloud Run is such a neat solution! Gotta check that out.
Reply to this answer
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!
CheapThrills: Where are you hosting it for that price?
AppEnthusiast: I love the budget-friendly options!
Reply to this answer
I've had good luck using Render to host my FastAPI endpoints. Super easy to set up!
DevEagle: Did you also use Render for your database alongside your FastAPI app?
Reply to this answer
Add your answer
Answers are reviewed before publication.
TechieTommy: Do you run multiple projects on the same VM? And do you also manage your own database?
CodeCrafter101: Nice tip! Self-hosting can really save on costs!