Should I utilize multiple HttpClients for bulk async GET requests?

前端 未结 1 1893
离开以前
离开以前 2021-01-07 15:37

I have a scenario where I need to make a large number of GET requests in as little time as possible (think around 1000).

I know generally it\'s best to keep a singl

1条回答
  •  不要未来只要你来
    2021-01-07 16:01

    I would suggest two main changes.

    1. Remove the await so that multiple downloads can occur at the same time.
    2. Set DefaultConnectionLimit to a larger number (e.g. 50).

    0 讨论(0)
提交回复
热议问题