alsadi
Joined 10 years ago
Joined 10 years ago
https://gist.github.com/muayyad-alsadi/3a1e1cdbafca34df8b178...
The assumption that nginx is always there no longer hold, specially in microservices, ex. Running behind haproxy (does not service static files) or running bechind cloud provides like AWS ALB.
Again if you think I was not fair to fastapi, suggest a change to the fastapi part. Do not cripple the competing solution.
If you want believe the time is wasted by the introduction of uvicorn layer as opposed to pure python implementation, I can run the fastapi in pure python ASGI without that layer, it would be worse. Because you uvicorn is one of the best implements.
https://peps.python.org/pep-3333/#optional-platform-specific...
https://bcksp.blogspot.com/2024/03/how-to-disable-xz-backdoo...