echojs icon indicating copy to clipboard operation
echojs copied to clipboard

x-ratelimit-remaining

Open konsumer opened this issue 11 years ago • 1 comments

Great & simple library. Thanks for making it.

I am attempting to deal with concurrency, in realtime, using the x-ratelimit-* headers that are sent back with all requests.

I am unsure of where to start, but would love to use your module as a start to that, so I don't have to just hope for proper concurrency of ~120 calls per minute (which, in my experience, has been pretty unreliable.) It'd be neat if I could use the headers directly to throttle the client. Any suggestions? here is an example set of headers from track/profile that pertain to ratelimit:

{
    "x-ratelimit-remaining": "19",
    "x-ratelimit-limit": "20",
    "x-ratelimit-used": "1",
}

konsumer avatar Apr 07 '14 02:04 konsumer

maybe this should be a question for rem?

konsumer avatar Apr 07 '14 02:04 konsumer