Skip to main content

Hi guys! I could use some help here. I’m trying to implement concurrency with my Strava API calls such that I can acquire activities on various athletes concurrently instead of one by one. However, despite my best efforts, I think there may be a limitation with the Strava API which does not support asynchronous operations. I tried wrapping the read requests within async.to_thread() but that didn’t seem to work.

 

Have any of you guys bypassed this Strava limitation to get concurrency working?

 

Thanks.

Could you explain what you mean by “acquire activities on various athletes concurrently?” When you say it doesn’t work, what exactly isn’t working? Do you get an error message?

 

There aren’t any limitations of the Strava API that I know of which would limit you from having multiple requests running in parallel. As long as the request is made with a valid token for that athlete, you can make as many requests as your API limits allow.

 

Some pseudocode or more information on the specifics of how you’re implementing multiple requests would be useful to give you a more helpful answer.


Reply