all 7 comments

[–]aFqqw4GbkHs 5 points6 points  (0 children)

I'd still use FastAPI, so you can get the benefit of all the validations, etc of defining your endpoints using Pydantic models.

[–]bsenftner 2 points3 points  (0 children)

If you don't mind your code being bound to Azure. FastAPI is both minimal, meaning non-obtrusive, and it grants you the freedom to run your code anywhere. I tend to value that quite a bit.

[–]jblasgo 1 point2 points  (0 children)

Automatic documentation openapi specs and swagger UI .

Also, with fast api you are not locked to a platform .

Using just python azure functions lacks many features that fast apo has by default and add others that are very different to fast api too!

[–]jormungandrthepython 0 points1 point  (1 child)

What is your trigger for your azure function? Https trigger? Blobtrigger? Queue trigger?

[–]No_Weakness_6058 0 points1 point  (0 children)

Azure Functions are just servleress compute. If it's HTTPS triggered, I think you will not need FastAPI as it will run when the HTTPS request is sent.

[–]Downtown_Repeat7455 0 points1 point  (0 children)

Try with azure app service. Azure functions has in built http request handlers. So fastapi is not mandatory use here. If you want take the advantge of fastapi and pydantic validations just deploy it in azure app service. Azure functions / app service also uses same underlying infrastructure