google-analytics icon indicating copy to clipboard operation
google-analytics copied to clipboard

Exponential Backoff

Open rchedrese-va opened this issue 10 years ago • 2 comments

I'm loving this set of components, but I frequently run into "User Rate Limit Exceeded" quota errors. I've implemented Exponential Backoff for retrying requests but I think it would be great if this functionality was part of the google-analytics-query element.

rchedrese-va avatar Jan 02 '15 17:01 rchedrese-va

@rchedrese-va that's not a bad idea and something I can definitely consider. I'm curious though, have you tried increasing your per-user rate limit? The default setting is 1 requests/second/user but you can increase it to 10 to avoid situations like this. If you're the primary user of this project or GA view, then there's no harm in raising the limit.

philipwalton avatar Jan 02 '15 20:01 philipwalton

@philipwalton I do have it set to 10 requests per second but I'm still exceeding that limit. My particular use case is for a performance dashboard for my company's products. We have 6 products and I make two queries per product to generate the dashboard. I'm not sure how common exceeding this limit is but I've run into it multiple times, and found exponential backoff to be a great solution.

rchedrese-va avatar Jan 02 '15 21:01 rchedrese-va