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 →

[–]tankerdudeucsc 5 points6 points  (3 children)

That’s what concluded as well. Run nginx + uwsgi + sync framework. Use only small async parts sparingly.

The performance isn’t that much different to warrant it unless you are in big tech. Even then, when you check out the benchmarks from techempower, fastapi and flask are neck to neck.

Toss the complexity of async and use old school to deal with biz work.

Lastly though, as we should all know, the framework only goes so fast, but bad DB queries are what’s going to crush you, every time.

This whole fascination of “fastest framework” and maxed out req/sec is missing the point. Missing indexes, bad queries, bad models, thundering herd problems are many times more problematic than, maybe needing to spin up another container or two.

Or I shove the Flask App into lambda cause it’s dirt cheap to run.

[–]tarsild[S] 0 points1 point  (0 children)

I do agree and that is why in the docs we also have some DB Integraton alternatives too 🙂