Making 1 milion requests with aiohttp/asyncio - literally

后端 未结 2 1480
后悔当初
后悔当初 2021-02-03 15:11

I followed up this tutorial: https://pawelmhm.github.io/asyncio/python/aiohttp/2016/04/22/asyncio-aiohttp.html and everything works fine when I am doing like 50 000 requests. Bu

2条回答
  •  感动是毒
    2021-02-03 15:33

    asyncio is memory bound (like any other program). You can not spawn more task that memory can hold. My guess is that you hit a memory limit. Check dmesg for more information.

    1 millions RPS doesn't mean there is 1M tasks. A task can do several request in the same second.

提交回复
热议问题