개요 파이썬에서 fastapi가 점점 많이 사용되고 있다보니 자연스럽게 async를 사용해서 코딩을 하게 되는 것 같습니다. async에서 제일 착각하기 쉬운게, async 함수를 연속으로 사용하면 비동기로 동시에 처리될 것이라고 생각할 수 있는데요. 아래 코드를 실행해보면, 총 2초가 걸리는 것을 확인할 수 있습니다. import time import asyncio async def method1(): await asyncio.sleep(1) async def method2(): await asyncio.sleep(1) async def main(): await method1() await method2() if __name__ == "__main__": start = time.time() asynci..