r/FastAPI • • Dec 26 '25

Hosting and deployment Where do you deploy your FastAPI app to?

Not many edge function solutions support FastAPI. I wonder how and where you deploy your FastAPI app to?

32 Upvotes

62 comments sorted by

View all comments

21

u/ArchangelAdrian Dec 26 '25

Azure Functions & AWS Lambda. I’m a Serverless type of guy.

4

u/voidreamer Dec 26 '25

Yeah it’s crazy how cheap it can be in the beginning with small amount of users

2

u/mailed Dec 27 '25

hell yeah

1

u/Ofacon Dec 27 '25

Curious what kind of projects you’re using this solution for. Would you mind sharing?

1

u/Yersyas Dec 26 '25

With docker containers?

4

u/sebampueromori Dec 26 '25

Aws lambdas use containers in the background to deploy apps. Lambdas also supports deploying your own container images

2

u/Tiboleplusboo_o Dec 27 '25

I don't think all lambdas run on containers ? You just have a micro vm in most cases, no ? Of course you can then run a container on top of it by bringing your own image but there's a tiny overhead

1

u/sebampueromori Dec 27 '25

The aws docs talk about "isolated execution environments" which most probably are containers. Micro VMs would be too slow. And if you bring your custom image then aws uses that as the container image.

3

u/_Iv Dec 27 '25

It’s pretty well known that Lambda uses Firecracker microVM. The image you may provide isn’t actually run in a container runtime, but it is extracted and mounted inside the microVM

1

u/sebampueromori Dec 27 '25

Good to know, may I have the docs for that? I'd like to know deeper

1

u/Just_Deal6122 Dec 28 '25

You can certainly deploy docker container in Azure function.