terricain / aioboto3

Wrapper to use boto3 resources with the aiobotocore async backend
Apache License 2.0
754 stars 76 forks source link

How to configure max connections? #176

Closed mojimi closed 5 years ago

mojimi commented 5 years ago

Hello, is there a parameter where I can configure max connections of aiohttp connector?

This is very useful to rate limit concurrent lambda invocations

For example, in aiohttp you can configure this :

conn = aiohttp.TCPConnector(limit=10, limit_per_host=10)
session = aiohttp.ClientSession(loop=loop, connector=conn)
terricain commented 5 years ago

I think that's best asked in aiobotocore as that makes the client.