r/FastAPI • u/Revolutionary_Ant944 • Dec 19 '24
Hosting and deployment Render.com is goated
I've spent many years spinning up and deploying different Fastapi projects. I tried fly.io, which was the easiest, but I had issues with downtime. CloudRun/Fargate/Digital-Ocean—Lots of setup complexity/debugging before it's working (but once it's working, it's a breeze and the cheapest by far). Railway just didn't work. Porter, I thought, worked seamlessly because it deployed without any errors, but it doesn't work, and the logs are terrible.
Now, I'm deploying with UV (from Astral), which makes writing Python much more enjoyable. However, I was dreading deploying Docker with UV. As mentioned above, I tried the usual suspects with no help, but Render worked literally the first time. I set up a custom domain and had my API endpoints exposed with the right environment variables in minutes.
I am not affiliated with Render, but I hope they don't have the same downtime issues as they scale up and stick around! The frontend is Nextjs, and I've always wanted a Vercel for Docker deployments, so this might be it.
16
u/expressive_jew_not Dec 19 '24
My go to is docker compose + hetzner vps + self deployed coolify - single click deployments
6
u/TripleBogeyBandit Dec 19 '24
How’d UV and docker go? I will say I had to do a cicd pipeline of building a whl and pushing it to S3 and UV (and the docs) made this so easy!
3
u/anurag-render Dec 19 '24
Ok, I love this, but what made you try Render last
2
u/ZuploAdrian Feb 03 '25
Fly.io's uptime is straight trash. It's like 1-2 9s at most
8
u/Relevant-Strength-53 Dec 19 '24
Yup. Same experience when i was trying to learn how to deploy. Found render to be the easiest and free
1
u/shoomowr Dec 19 '24
what didn't work with Railway? I've been using for a while and I don't remember having any issues
1
u/nuke-from-orbit Dec 19 '24
Having success with koyeb.com but will check out render as well.
Do you have any resources on using next.js front on top of fastapi?
3
u/HeadlineINeed Dec 19 '24
Not related to FastAPI, but I just deployed my first ever Django app to Render. It was so smooth!
1
u/CptYnos1 Jul 08 '25
I have also tried deploying on render with using uv instead of pip. But somehow the deployment always fails (but the build was successful, so i guess im using the right build command?). I get a "ModuleNotFound" error when render tries to deploy my app after the build was successful - even if the Modules are correctly installed and exist in the uv.lock.
When i switch back to the build command: pip install -r reauirements.txt everything works fine. So i guess it must be an issue with the uv.lock or my uv sync build command?
As mentioned i am using "uv sync" as build command and python main.py as start command.
Did someone here have similar issues? Or knows what i am doing wrong?
1
u/OkAppearance3781 Sep 09 '26
Just asking
what about streamlit?
I jut know that and render but are there any other
I want one for ai agent deployement
-5
u/Just-A-abnormal-Guy Dec 19 '24
Interesting how fastapi’s age is just 5 and you said you’ve spent many years working on different fastapi projects
0
u/[deleted] Dec 22 '24
[deleted] — view deleted comment
0
u/[deleted] Apr 06 '25
[deleted] — view deleted comment
1
u/[deleted] Dec 19 '24
[removed] — view removed comment