Starlette and uvicorn asynchronous task prioritization

Based on the observations in this blog post https://nullprogram.com/blog/2020/05/24/ 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. https://github.com/Midnighter/starlette-delay/blob/master/notebooks/response_times_and_delay.ipynb

Thanks!