Inspired by Andy Balaam's blog
Creating huge amount of asynchronous tasks all at once would encounter memory error. This repo provides a way to make 100 million plus requests using asyncio and aiohttp. We limits the concurrent requests with a simple semaphore to prevent CPU or memory exhausting.
Python 3.6
Server
python server.py
Client, e.g., make 100,000,000 total requests, 1,000 concurrent requests
python client.py -n 100000000 -c 1000