Skip to content
Discussion options

You must be logged in to vote

Switch your read_root function to be async.

FastAPI does a bunch of stuff with threadpool executors to serve sync methods. That plays poorly with Granian. FYI the same plays with uvicorn, if you switch to async methods RPS increase on uvicorn as well.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gi0baro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants