Open kigawas opened 3 years ago
Note that the word "performance" means throughput, rather than speed Actually, async web frameworks may make some requests obviously slower (it's highly variant in latency)
[Wrk result here]
Performance: uvloop-based frameworks are on the top among Python frameworks, more specifically (req/s): Generally uvicorn > sanic > starlette > fastapi >>> flask/django
Read from db: Fastapi ~= spring (Java)
Write to db: Fastapi > spring (Java) > gin (Golang)
[Benchmark here]
asyncpg
How to solve?
Web API -> OpenAPI? OpenAPI -> Web API?
Gino -> Async SqlAlchemy
title: FastAPI and Async Sqlalchemy: the catalyst for Python web development