<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rate-Limits on Brian Faust</title><link>https://vacua.dev/tags/rate-limits/</link><description>Recent content in Rate-Limits on Brian Faust</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 01 Jan 0001 00:00:00 +0000</lastBuildDate><atom:link href="https://vacua.dev/tags/rate-limits/rss.xml" rel="self" type="application/rss+xml"/><item><title>A Rate Limit Belongs to All the Workers Sharing It</title><link>https://vacua.dev/thoughts/a-rate-limit-belongs-to-all-the-workers-sharing-it/</link><pubDate>Sun, 01 Jul 2018 00:00:00 +0000</pubDate><guid>https://vacua.dev/thoughts/a-rate-limit-belongs-to-all-the-workers-sharing-it/</guid><description>&lt;p&gt;One polling job receives a 429 response saying to try again in fifteen seconds.
It releases itself for fifteen seconds.&lt;/p&gt;
&lt;p&gt;During that pause, twenty other workers poll the same provider. They have not
seen the response, so each sends another request into the closed window.&lt;/p&gt;
&lt;p&gt;The first job obeyed the limit. The application did not.&lt;/p&gt;
&lt;h2 id="find-the-scope-before-choosing-the-delay"&gt;Find the scope before choosing the delay&lt;/h2&gt;
&lt;p&gt;A rate limit applies to some shared identity: an API credential, account,
tenant, endpoint family, source address, or a combination of them. Every worker
using that identity spends the same remote capacity.&lt;/p&gt;</description></item></channel></rss>