Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

119
Views
How to maximize amount of NestJS/NodeJS requests to another server?

I want to make a service (for training purposes) for throwing a resource of some kind with a large number of requests, like this: GET example.com/someResource

I tried this:

for (let i = 0; i < 10000; i++) {
  this.http.get('example.com/someResource').toPromise();
  // that's a NestJS so it's a HttpService of HttpModule (Obvservable, so we need to transform it to Promise using 'toPromise()')
} 

But this does not seem to work, because the requests take too long and a small ratio of time/number of requests is obtained (in 4 seconds only 500 requests, at the same time on python about 1200 requests per second can be squeezed out) How can we improve this and send more requests? Help, please, the course is on))

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!