Python has had async for 10 years – why isn't it more popular?
tonybaloney.github.io
Python has had async for 10 years – why isn't it more popular?
1–10 of 305 posts
Re: Python has had async for 10 years – why isn't it more popular?
#2Re: Python has had async for 10 years – why isn't it more popular?
#3Re: Python has had async for 10 years – why isn't it more popular?
#4Eventually I wrote an "image sorter" that I found was hanging up when the browser was trying to download images in parallel, the image serving should not have been CPU bound, I was even using sendfile(), but I think other requests would hold up the CPU and would be block the tiny amount of CPU needed to set up that sendfile.
So I switched from aiohttp to the flask API and serve with either Flask or Gunicorn, I even front it with Microsoft IIS or nginx to handle the images so Python doesn't have to. It is a minor hassle because I develop on Windows so I have to run Gunicorn inside WSL2 but it works great and I don't have to think about server performance anymore.
Re: Python has had async for 10 years – why isn't it more popular?
#5Reminds me of how long it took some to go from Python 2 to Python 3.
Re: Python has had async for 10 years – why isn't it more popular?
#6I personally blame low async adoption in Python on 1) general reduction in its popularity vs Typescript+node, which is driven by the desire to have a single stack on the frontend and backend, not by bad or good async implementations in Python (see also: Rails, once the poster child of the Web, now nearly forgotten) 2) lack of good async stdlib. parallelism and concurrency are distant thirds.
Re: Python has had async for 10 years – why isn't it more popular?
#7Not worth the trouble. Shell pipelines are way easier to use. Or simply waiting —no pun intended— for the synchronous to finish.