• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Doing request rate limiting with NSURLSession
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Doing request rate limiting with NSURLSession (From: Sebastien Boisvert <email@hidden>)
 >Re: Doing request rate limiting with NSURLSession (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: Doing request rate limiting with NSURLSession (From: Sebastien Boisvert <email@hidden>)
 >Re: Doing request rate limiting with NSURLSession (From: "Quinn \"The Eskimo!\"" <email@hidden>)

  • Prev by Date: Re: Doing request rate limiting with NSURLSession
  • Next by Date: Re: Doing request rate limiting with NSURLSession
  • Previous by thread: Re: Doing request rate limiting with NSURLSession
  • Next by thread: Re: Doing request rate limiting with NSURLSession
  • Index(es):
    • Date
    • Thread