The second option. With the first option you’ll end up in situations where you have spare compute/network resource that isn’t being utilised because all the remaining ones in the current batch of 100 are being handled by other threads / worker processes.

@cuenca@lemm.ee
creator
link
fedilink
1
edit-2
10M

That’s what I concluded too.

@catacomb@beehaw.org
link
fedilink
English
210M

Where did you get 100 from? I’m just asking if it’s a real limit or a guess at “some manageable number” under one million.

It can be worth experimenting and tuning this value. You might even find that less than 100 works better.

Gamma
link
fedilink
English
510M

Careful everyone, they didn’t specify programming languages! Don’t even THINK of providing a few lines of Python that would answer the question 🐍

@cuenca@lemm.ee
creator
link
fedilink
110M

Booooooom!

@dark_stang@beehaw.org
link
fedilink
English
1910M

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.

@douglasg14b@beehaw.org
link
fedilink
1
edit-2
10M

For most users jmeter is difficult to approach.

Something like autocannon or ddosify may be nicer

@cuenca@lemm.ee
creator
link
fedilink
110M

Not enough info. What are you trying to actually accomplish here by asking me this question?

@Fal@yiffit.net
link
fedilink
English
2210M

What the shit kind of response is this. We’re trying to get enough info to answer your question

@cuenca@lemm.ee
creator
link
fedilink
1
edit-2
9M

What the shit kind of response is this. I’m tryintg to GET help for my question.

@Fal@yiffit.net
link
fedilink
English
29M

Yeah, and we need more info to help

@cuenca@lemm.ee
creator
link
fedilink
19M

Yeah, we need to know why you need it.

xor
link
fedilink
English
2210M

Jfc, they’re trying to help YOU specifically and you’re being a prick?

@cuenca@lemm.ee
creator
link
fedilink
19M

removed by mod

xor
link
fedilink
English
5
edit-2
9M

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

@cuenca@lemm.ee
creator
link
fedilink
19M

removed by mod

xor
link
fedilink
English
39M

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?”

Gamma
link
fedilink
English
49M

They did the same a few days ago and deleted the post before reposting

@cuenca@lemm.ee
creator
link
fedilink
1
edit-2
9M

removed by mod

falsem
link
fedilink
910M

It’s called an XY problem. Google it

@cuenca@lemm.ee
creator
link
fedilink
1
edit-2
9M

What the “it” you refer to?

@Fal@yiffit.net
link
fedilink
English
29M

Google what an XY problem is. Do you have reading comprehension problems?

@cuenca@lemm.ee
creator
link
fedilink
1
edit-2
9M

You aren’t aware of the task in whole I’ve described . What I’ve described is 20% of it.

You and @falsem are 2 fucking sorry-ass advisers.

falsem
link
fedilink
29M

You aren’t aware of the task in whole I’ve described . What I’ve described is 20% of it.

Yes, exactly.

You’re SO CLOSE to getting it

@cuenca@lemm.ee
creator
link
fedilink
19M

We’re SO CLOSE!!!

@Hirom@beehaw.org
link
fedilink
2
edit-2
10M

Rewrite the application to be less greedy in the number of requests it submit to the server, make (better) use of caching. That’ll probably lower the number of concurrent request that have to be handled.

That’s not 1M concurrent requests.

That’s 100 concurrent requests for a queue of 1M tasks.

Work queue and thread pool is the normal way, but it’s possible to get fancy with optimizations.

Basically you fire 100 requests and when one completes you immediately fire another.

Op is a Putin bootlicking troll please disregard post

Create a post

All things programming and coding related. Subcommunity of Technology.


This community’s icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

  • 1 user online
  • 7 users / day
  • 7 users / week
  • 14 users / month
  • 121 users / 6 months
  • 1 subscriber
  • 296 Posts
  • 2.15K Comments
  • Modlog