[英]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.? 谁能帮助我实现目标的最佳方法?
Can you look here: 你能看一下这里吗:
Multiple HTTP request in C# C#中的多个HTTP请求
http://www.winsocketdotnetworkprogramming.com/httpgetrequestdotnetworkprogramming10i.html http://www.winsocketdotnetworkprogramming.com/httpgetrequestdotnetworkprogramming10i.html
and also can you write more about your problem? 还可以写更多有关您的问题的信息吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.