简体   繁体   English

将多个HTTP请求发送到Web服务

[英]Send multiple http requests to a web service

I want to send multiple HTTP requests to a web service using C# client, just to stress the web service. 我想使用C#客户端向Web服务发送多个HTTP请求,只是为了强调Web服务。 I tried sending the requests using Async calls and calling that method from multiple threads. 我尝试使用异步调用发送请求,并从多个线程调用该方法。 But after certain amount of threads, increasing threads is yielding in decreased requests/min. 但是,在经过一定数量的线程之后,增加线程数量会减少请求/分钟。

Note: I am trying to submit the HTTP requests with 128 KB data. 注意:我正在尝试使用128 KB数据提交HTTP请求。

Can anyone help me on which should be the best approach to achieve what I wanted.? 谁能帮助我实现目标的最佳方法?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM