Skip to content

Replace Gunicorn+uvicorn with Granian for FastAPI#502

Merged
antonputra merged 2 commits into
antonputra:mainfrom
ondrados:feat/optimize-python-asgi
Dec 31, 2025
Merged

Replace Gunicorn+uvicorn with Granian for FastAPI#502
antonputra merged 2 commits into
antonputra:mainfrom
ondrados:feat/optimize-python-asgi

Conversation

@ondrados
Copy link
Copy Markdown
Contributor

Swapped out gunicorn + uvicorn for granian (Rust-based ASGI server). Since we're mostly doing I/O, the Rust runtime helps. Saw decent gains in local wrk tests.

Copy link
Copy Markdown
Owner

@antonputra antonputra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ondrados for the PR. Would you mind creating Dockerfile.granian instead and keeping the original as is?

@ondrados
Copy link
Copy Markdown
Contributor Author

@antonputra Makes sense — updated 👍

Copy link
Copy Markdown
Owner

@antonputra antonputra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@antonputra antonputra merged commit 6026742 into antonputra:main Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants