This post is a continuation on the works of Paweł Miech’s Making 1 million requests with python-aiohttp and Andy Balaam’s Making 100 million requests with Python aiohttp. I will be trying to reproduce the setup on Andy’s blog with some minor modifications due to API changes in the
aiohttp library, you should definitely read his blog, but I’ll give a recap.
UPDATE: Since Andy’s original post,
aiohttp introduced another API change which limited the total number of simultaneous requests to
100 by default. I’ve updated the code shown here to remove this limit and increased the number of total requests to compensate. Apart from that, the analysis remains the same.