jam
10/05/2022, 12:59 PMStream
base class. Any recommendations on how to handle this? Is the RESTStream
the place to look?visch
10/05/2022, 2:31 PMthis
is the XML data? or rate limiting?jam
10/05/2022, 2:34 PMmetrics.http_request_counter
to track how many requests we're making. I think there's a decorator I can make to sleep the method making the requests if we're rate limited. Does this sound accurate to you? Am I missing anything?visch
10/05/2022, 2:36 PMvisch
10/05/2022, 2:38 PMedgar_ramirez_mondragon
10/05/2022, 3:00 PMAPIs are always interesting is the short answer.They are indeed 😅. I’ve seen a few different implementations of rate limiting. The best imo return headers in the response to indicate how many requests you got left and, if you’ve exceeded the limit, how long until you are good to go again. The helper methods @visch linked to can be used in that case.
laurent
10/05/2022, 3:00 PMjam
10/05/2022, 4:05 PM