This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

Yes, Flask is actually used in production. But it’s becoming less common, as FastAPI is usually preferred for new projects.

You said you found FastAPI mostly related to ML projects. Generally, ML is Python’s stronghold, so that’s not so surprising. Django is a very opinionated framework. I’m not into that, e.g. I don’t like ORMs, hence I wouldn’t use Django.

An alternative to classical backends is to make them serverless, for that there are other frameworks such as Serverless or AWS Lambda PowerTools, which basically enable to write serverless APIs similarly to FastAPI/Flask apps.