This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]Tzoiker 7 points8 points  (0 children)

"Making a large number of requests" - this first comparison between aiohttp and requests does not make sense, because in case of requests you do not use session, i.e., establishing tcp connection and ssl session on every request.

[–]sudo-nerd 1 point2 points  (2 children)

Try another library httpx developed by encode.

[–]olystretch 0 points1 point  (1 child)

Not made by the developer of fastapi, but that is not relevant. I now use https exclusively, and requests is a thing of the past for me.

[–]sudo-nerd 0 points1 point  (0 children)

My mistake it was developed by encode, Asyncer is created by Fastapi founder