0% found this document useful (0 votes)
17 views

Fastapi Tiangolo Com Deployment

Deploying a FastAPI application makes it available to users by putting it on a remote machine with a high-performance server. There are several deployment strategies like deploying the server yourself with tools, using a cloud service, or containers. Key things to consider for deployment include deployment strategies, running servers manually or with tools like Uvicorn and Gunicorn, and deploying to cloud providers or containers with Docker.

Uploaded by

sohel.shaikh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Fastapi Tiangolo Com Deployment

Deploying a FastAPI application makes it available to users by putting it on a remote machine with a high-performance server. There are several deployment strategies like deploying the server yourself with tools, using a cloud service, or containers. Key things to consider for deployment include deployment strategies, running servers manually or with tools like Uvicorn and Gunicorn, and deploying to cloud providers or containers with Docker.

Uploaded by

sohel.shaikh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

sponsor

Subscribe to the FastAPI and friends newsletter 🎉


FastAPI Search tiangolo/fastapi

FastAPI Features Learn Reference - Code API FastAPI People Resources About Help Release Notes

Learn FastAPI Learn Deployment Table of contents


Python Types Intro What Does Deployment Mean
Concurrency and async / await Deployment Deployment Strategies
Tutorial - User Guide

Deploying a FastAPI application is relatively easy.

What Does Deployment Mean


To deploy an application means to perform the necessary steps to make it available to the users.

For a web API, it normally involves putting it in a remote machine, with a server program that
provides good performance, stability, etc, so that your users can access the application efficiently
and without interruptions or problems.

This is in contrast to the development stages, where you are constantly changing the code,
breaking it and fixing it, stopping and restarting the development server, etc.

Deployment Strategies
There are several ways to do it depending on your specific use case and the tools that you use.

You could deploy a server yourself using a combination of tools, you could use a cloud service
that does part of the work for you, or other possible options.

I will show you some of the main concepts you should probably keep in mind when deploying a
FastAPI application (although most of it applies to any other type of web application).

You will see more details to keep in mind and some of the techniques to do it in the next sections.

Advanced User Guide

Made with Material for MkDocs Insiders


Deployment
About FastAPI versions
About HTTPS
Run a Server Manually - Uvicorn
Deployments Concepts
Deploy FastAPI on Cloud
Providers
Server Workers - Gunicorn with
Uvicorn
FastAPI in Containers - Docker
How To - Recipes

You might also like