Re: Fiber based HTTP client for load testing

2020-09-30 Thread ikod via Digitalmars-d-learn
On Thursday, 1 October 2020 at 03:10:32 UTC, ikod wrote: On Thursday, 1 October 2020 at 00:35:49 UTC, Arun wrote: I have a REST client that can do load test of my REST void main() { auto urls = ["http://httpbin.org/";, "http://httpbin.org/image";]; foreach(url; urls) { r

Re: Fiber based HTTP client for load testing

2020-09-30 Thread ikod via Digitalmars-d-learn
On Thursday, 1 October 2020 at 00:35:49 UTC, Arun wrote: I have a REST client that can do load test of my REST services. It uses ikod's dlang-requests under the hood. https://github.com/ikod/dlang-requests At the moment I use a thread pool to dispatch the runtime operation and send the reques

Re: Fiber based HTTP client for load testing

2020-09-30 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/30/20 8:35 PM, Arun wrote: As seen, the downside is that the more threads we use the more memory the app consumes. Is there a way to replace the threads with fibers in this particular case so that instead of spawning 1000 threads, we spawn 1000 fibers with just 1 thread? Right on the

Fiber based HTTP client for load testing

2020-09-30 Thread Arun via Digitalmars-d-learn
I have a REST client that can do load test of my REST services. It uses ikod's dlang-requests under the hood. https://github.com/ikod/dlang-requests At the moment I use a thread pool to dispatch the runtime operation and send the requests to the server. /// Iterates over the enum members