Re: Doing request rate limiting with NSURLSession
Re: Doing request rate limiting with NSURLSession
- Subject: Re: Doing request rate limiting with NSURLSession
- From: Sebastien Boisvert <email@hidden>
- Date: Wed, 10 Oct 2018 13:25:46 -0400
> On Oct 10, 2018, at 1:05 PM, Quinn The Eskimo! <email@hidden> wrote:
>
> Essentially my question boils down to:
>
> * Do you want to limit the time between requests?
>
> * Or limit the rate that you issue requests?
>
I would tend to answer ‘Yes’ to both, since the the rate will be determined by
how much time
there is between requests.
Essentially, I need to make sure I don’t do too many requests within a certain
amount of time,
specifically (in this example) having a minimum time between request of
1/32sec, otherwise
the service returns an error (429, “Whoa there not so fast!”) and I have to
retry again later.
The ‘average’ time between requests doesn’t matter here, as the service has
this limit as “32
connections per second max” which is translated to “minimum 1/32sec between
requests”.
There’s more details I can probably provide if needed, I just didn’t think
those details were
relevant to the original question.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden