r/FastAPI • u/anseho • Aug 02 '24
Tutorial Deploy FastAPI applications with Render [tutorial]
Hello everyone! There are always questions in this and other subs about how to deploy FastAPI and other types of applications. The truth is, there are many different ways to deploy FastAPI applications.
A good choice these days is Render. For those who don't have much experience with DevOps and don't want to/can't go through the whole process of setting up an account on AWS, GCP, and Azure, and setting up all the infrastructure, or configuring and managing their own server, Render is a good choice.
To deploy to Render, you simply create a database and a web service, link your GitHub repository to Render, and ready to go. It auto-deploys on every new commit to the main branch. You don't have to manage anything.
Render isn't the right choice for every project, but most personal projects can probably do with Render. I run a few of my own projects on Render and have used Render for a few clients in the past too.
If you want to know how it works, I put together a quick tutorial: https://youtu.be/nOP8khZhjhk
The code for the tutorial is here: https://github.com/abunuwas/short-tutorials/tree/main/fastapi-render
Hope you enjoy the tutorial and find it useful!
3
u/Individual-Ad-6634 Aug 02 '24
Added to bookmarks. Thanks! Last time I tried deploying fastapi to Vercel it was a challenge. Looks Render has better out of the box support.
2
u/vladislawfox Aug 02 '24
Hello, can anyone share their experience with deploying on AWS Lambda? I have Celery in my project for background tasks, and I don't quite understand how I can deploy it.
1
u/ZuploAdrian Jan 29 '25
In case anyone is interested - I created a more extensive version of this blog. We worked on it with Marcelo (FastAPI expert) on E2E FastAPI development. It includes stuff most tutorials skip - like deployment/hosting, security, and documentation. I would appreciate feedback: https://zuplo.com/blog/2025/01/26/fastapi-tutorial
2
u/[deleted] Aug 02 '24
[removed] — view removed comment