2
submitted 11 months ago by cuenca@lemm.ee to c/programming@lemmy.ml

One needs to send 1 mln HTTP requests concurrently, in batches, and read the responses. No more than 100 requests at a time.

Which way will it be better, recommended, idiomatic?

  • Send 100 ones, wait for them to finish, send another 100, wait for them to finish… and so on

  • Send 100 ones. As a a request among the 100 finishes, add a new one into the pool. “Done - add a new one. Done - add a new one”. As a stream.

you are viewing a single comment's thread
view the rest of the comments
[-] deegeese@sopuli.xyz 6 points 11 months ago

LOL your last post got helpful answers until you were super rude and an admin deleted it.

[-] GammaGames@beehaw.org 4 points 11 months ago
[-] cuenca@lemm.ee 2 points 11 months ago

I knew that you'd like it.

[-] cuenca@lemm.ee 1 points 11 months ago* (last edited 11 months ago)

ZOG yes. Until you came in it.

this post was submitted on 03 Dec 2023
2 points (100.0% liked)

General Programming Discussion

7809 readers
2 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 5 years ago
MODERATORS