Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@cr78 a *few* api calls
Basically I can get a list of elements from a single api call but to get details about the element I need to call api/<element_id> again, that's how 50000 threads were created -
@Krokoklemme the idea was to only call X Threads at once though and not all of them
-
@Krokoklemme I didn't know how at that point, doesn't matter now though, used ThreadPools and such but not working for the company anymore
Related Rants
Threaded API Calls, or rather:
How I killed five server instances in one shot..
Creating 50000 Threads sounds like a good idea in general, the bad part starts when you use start() in a for loop to run them all at once.
No further comments your honor...
undefined
wk55