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.
Not enough info. What are you trying to actually accomplish here? If you’re stress testing and trying to measure how fast a server can process all those requests, use something like jmeter. You can tell it to do 100 concurrent threads with 10000 requests each, then call it a day.
Not enough info. What are you trying to actually accomplish here by asking me this question?
It’s called an XY problem. Google it
What the “it” you refer to?
Google what an XY problem is. Do you have reading comprehension problems?
You aren’t aware of the task in whole I’ve described . What I’ve described is 20% of it. You and @falsem@kbin.social are 2 fucking sorry-ass advisers.
You’re SO CLOSE to getting it
Yes, exactly.
Jfc, they’re trying to help YOU specifically and you’re being a prick?
They did the same a few days ago and deleted the post before reposting
Kmz, I’m JUST trying to GET help but they’re being a bunch of cocks?
They’re trying to work out what problem you’re trying to solve, so they can give you actually useful advice for your - frankly - very vague question
“What are you trying to achieve” is a perfectly reasonable question to ask about a deeply under-specified problem
Edit: here’s my theory:
This is a homework or interview question you’ve been asked, that depends on specific context that you haven’t included (because you don’t know what context is even relevant)
You don’t want to admit that’s why you’re asking, because you know that defeats the point of you being asked in the first place.
Hence, you’re being absurdly hostile to someone trying to help, because you can’t answer their question without admitting you’re trying to cheat
I’m trying to GET HELP but they’re being a bunch of cocks.
No, they aren’t.
If you ask “should I make brownies or lemon drizzle cake”, it’s perfectly reasonable for them to ask “is this for an event? do the people it’s for have any preferences or allergies?”
What the shit kind of response is this. We’re trying to get enough info to answer your question
What the shit kind of response is this. I’m tryintg to GET help for my question.
Yeah, and we need more info to help