Slow Python GIL and idiot design compared with Node JS
Python Asyncio Notion
Python Asyncio Usage
Coroutines and Tasks
This section outlines high-level asyncio APIs to work with coroutines and Tasks. Coroutines, Awaitables, Creating Tasks, Task Cancellation, Task Groups, Sleeping, Running Tasks Concurrently, Eager ...
https://docs.python.org/3/library/asyncio-task.html

streamlit-async_demo.py
streamlit-async_demo.py · GitHub
https://gist.github.com/wfng92/0cc6673e9ce4e8b880e6a38c134ed0cf

파이썬 코딩 도장
asyncio(Asynchronous I/O)는 비동기 프로그래밍을 위한 모듈이며 CPU 작업과 I/O를 병렬로 처리하게 해줍니다. 동기(synchronous) 처리는 특정 작업이 끝나면 다음 작업을 처리하는 순차처리 방식이고, 비동기(asynchronous) 처리는 여러 작업을 처리하도록 예약한 뒤 작업이 끝나면 결과를 받는 방식입니다. async def 키워드는 파이썬 3.5 이상부터 사용 가능 asyncio_async_def.py 실행 결과 Hello, world! 실행을 해보면 'Hello, world!'가 출력됩니다.
https://dojang.io/mod/page/view.php?id=2469

asyncio에 대한 회의
파이썬의 asyncio에 회의가 조금씩 들고 있다. asyncio 자체는 훌륭하다. 이벤트 루프의 유행을 끌고 온 node.js나 과거 reactor 패턴에만 의존하던 twisted와 달리 async/await 로 제법 세련되고 심플해보이는 프랙티스를 정립했다. 여기까지는 굿. 하지만, real world에서는 그리 간단치 않다. 기존의 수많은 라이브러리들과 별거해야 하기 때문이다. 이벤트 루프의 프로토콜에서 실행된 코드에서 단 하나라도 blocking IO를 하는 순간 이벤트 루프는 정지하고 concurrency는 망가진다.
http://youngrok.com/asyncio%EC%97%90%20%EB%8C%80%ED%95%9C%20%ED%9A%8C%EC%9D%98

Seonglae Cho