Starlette and uvicorn asynchronous task prioritization

Based on the observations in this blog post I’ve tried to take a look at how uvicorn and Starlette handle many tasks in the event loop. It’s not completely conclusive yet because I can’t access the right information but I’d love to hear your thoughts/facts on whether uvicorn or Starlette do some kind of prioritization in order to complete existing requests as fast as possible.

You can see the outcome of my investigation and how I set up everything in this notebook and the accompanying repository.