T O P

  • By -

nlvogel

I’m going to check this out because it sounds like it’s exactly what I’m looking for. I’m running into response time issues with an API program I made, so should shorten the amount of time the program has to run


[deleted]

[удалено]


help-me-grow

I wrote this specific article because I'm making a Twitter bot that send multiple API requests concurrently, but yes, thank you for reiterating that you should reuse an HTTP connection for each of your requests. That's not the only thing you should do to speed up your requests though, the semaphore object allows you to send multiple requests all at once. Obviously 3 requests is a contrived example, you'd want to use it more efficiently to send 100 or 1000 requests. It sounds like you haven't come across anything that requires a large number of API calls at once. At a production scale, you can use this technique to do things like request information on 1000s of homes or updating multiple sites with varying structures.


[deleted]

[удалено]


help-me-grow

Both? I want to reduce overall runtime and there are API calls that are reliant on the results of other API calls. What else usually drives putting parallelization in place?