#Asyncio
Should I add the `async` keyword to my API methods that call opensearch, redis, postgres, & other microservices?
context:
#connexion + #starlette + #uvicorn + #gunicorn + supervisord, #python 3.12
Archived poll
- No! Stay in line3 votes
- Do, Yes! it!8 votes
- Nothing will change, because GIL, or something2 votes
- What?1 votes
14 voters
And yes, I understand I'd need to call the async version of opensearchpy, etc.
♡ 0 ↻ 0I don't let LLMs make my architectural decisions, I let underpowered Mastodon surveys do it.
♡ 3 ↻ 0
Reading some old news before I add the async keyword before my API controllers
**point**: #asyncio is slow
https://calpaterson.com/async-python-is-not-faster.html
**counterpoint**: well yeah, if you do it wrong.
https://blog.miguelgrinberg.com/post/ignore-all-web-performance-benchmarks-including-this-one