Link copied
Blog › The Politeness Budget
Frameworks

The Politeness Budget

KG
Teh Kim GuanACMA · CGMA
2026-10-02 · 5 min read
The Politeness Budget

Most requests to speed up a scraper are requests to change a policy, submitted in the language of engineering.

The ask

A historical data pull was running against a public archive. The queue held tens of thousands of items. At the time of the question, roughly 82% were fetched, with about five and a half hours left.

The request was to triple the fetch rate.

It is a reasonable request. Five and a half hours is real time, the run had already survived two overnight interruptions, and tripling sounds like something that should be available. Most systems have slack somewhere.

The answer was no, with the arithmetic attached. The reasoning is worth writing down, because the same request arrives on every pipeline built against a source you do not own.

Where the time actually goes

A bar showing 98% of the 4.66 seconds per record is deliberate sleep, and a second showing 6 hours 48 minutes lost to machine sleep against 0 minutes lost to the throttle

The pipeline sleeps three seconds between requests. Measured from the log's own 200-item checkpoints, the true cost is 4.66 seconds per record: one listing page plus an average of 0.528 attachments, each paying the three-second toll.

The origin server responds in under 0.1 seconds.

That number settles the question. 98% of the elapsed time is sleeping. There is no network inefficiency to reclaim, no connection pooling win, no parallelism that recovers idle capacity, because there is no idle capacity. The pipeline is waiting on purpose.

Optimisation removes waste, and there is no waste here. Changing the sleep makes the pipeline less polite, not faster. The three seconds did not land on three by accident as a performance parameter. It is a stated position on how hard the system leans on somebody else's infrastructure, expressed in the only unit the other side can observe.

The trade, priced

Tripling saves about 5.4 hours at most, on a run that is already most of the way through.

Against that: more than 22,000 fetches had produced exactly one HTTP 403, and that one turned out to be a transient blip rather than a block. The same file served 127,293 bytes eighty-seven minutes after refusing.

So the trade is 5.4 hours of calendar time against the standing access relationship with a source that has, so far, tolerated this pipeline completely. Losing that access does not cost 5.4 hours. It costs the entire dataset, all future refreshes, and any product built on top of them.

That is a bad trade at any speed multiplier. The savings scale linearly. The downside is binary.

The second version of the same request

Once the direct speedup was declined, a different route appeared: three hosts were available on the network. Run the fetcher on all three concurrently, each keeping its own polite three-second gap.

This is the more dangerous version, because it looks compliant. Every worker obeys the rule. No individual process is impolite. The code review passes.

Three hosts at three seconds each is one second aggregate at the origin's door. That is the tripling that was just declined, obtained by distributing across IP addresses so the source cannot see it happening.

A rate limit you comply with per process but violate in aggregate is the same policy change with an extra layer of indirection, and the indirection exists to defeat the other party's ability to observe your behaviour. Naming that plainly is the whole test. If the reason for the architecture is "so they cannot tell", the architecture is the problem.

The empirical footnote that closed it

Before rejecting multi-host on principle, one probe went out from the second machine: a plain curl to the same public endpoint.

It came back 403 in 72 milliseconds.

The refusal was instant. That shows two things at once. The origin does have defences and does use them. And a second route configured slightly wrong trips the pipeline's own abort logic, which halts the whole run on any 403 from any URL.

So the multi-host plan carried an operational failure mode on top of the ethical one. It could take down a nearly finished run in order to save a few hours on it.

The general form

Every acquisition pipeline eventually faces this conversation. It takes this shape.

What gets saidWhat is being askedCorrect response
"Can we speed this up?"Reduce the sleepShow where time goes first. If it is 98% sleep, this is a policy question, not an engineering one.
"Can we parallelise it?"Same rate change, distributedCompute aggregate rate at the origin. That is the only number the other side experiences.
"Can we run it from the other box?"Same, plus IP diversityAsk why the other box. If the answer is geography or speed, fine. If it is visibility, stop.
"It's public data"Access implies unlimited accessPublic means readable. It does not mean unmetered.

The useful discipline is to force the request into its honest form before answering it. "Make the scraper faster" is an engineering request and deserves an engineering answer. "Reduce how much we defer to the source" is a policy request and deserves a decision, made deliberately, by whoever owns the relationship. I wrote about the practical side of crawling public portals in a reusable crawl pattern for government portals. The politeness interval belongs in the same category as any other limit: set it on purpose, as in sizing the fuse to the furnace.

Where the time was actually lost

Over eleven hours, this pipeline lost time twice. Neither loss came from the origin.

The machine went to sleep at 00:32 and woke at 07:20, costing six hours and forty-eight minutes. One in-flight request recorded a timeout of 24,473,682 milliseconds, which is six hours forty-seven minutes fifty-four seconds, matching the sleep window to within two seconds. Then at 10:47 the background task wrapper exited and orphaned its own child process, whose captured output had already gone dark twenty-seven minutes earlier.

Six hours forty-eight minutes were lost to a power setting. Zero minutes were lost to the throttle being three seconds instead of one.

The optimisation available for free, requiring no policy change and no negotiation with anyone, was disabling sleep on the machine and detaching the job from a session-scoped wrapper. Both were done. Both cost nothing. Neither was what anyone asked about.

When a pipeline feels slow, the throttle is the most visible number and almost never the largest one. Look at the host before looking at the policy.

The position, stated for reuse

  1. The politeness interval is a declared position, not a tuning knob. Changing it is a decision with a name attached, not a config edit.
  2. Measure aggregate rate at the origin, not per-worker rate. The origin experiences the sum.
  3. Distributing across hosts to reduce observability is the same change as raising the rate, plus concealment.
  4. Price the downside as loss of access, not loss of time. It is binary and it is total.
  5. Before touching the interval, account for every hour the run actually lost. It is usually your own infrastructure.

Part of the Operating Principles series from KG Consultancy.

About the Author
KG
Teh Kim Guan
Product Consultant · General Manager, PEPS Ventures

Strategy and technology are the same decision. Over 15 years in fintech (CTOS, D&B), prop-tech (PropertyGuru DataSense), and digital startups, I have built frameworks that help founders and executives make both moves at once. Based in Kuala Lumpur.

More from the blog
Frameworks
The Author Cannot Feel the Trust Boundary
A security scrub pulled four strings from a project I was about to share. I wrote every one on purpose, and each read as correct when I wrote it.
2026-09-04 · 5 min read
Frameworks
The Consulted Layer
Five times in four days a correct fact was written down and still acted on wrongly. The fact was in a file nobody opened when the decision was made.
2026-08-21 · 6 min read
Consulting
The Self-Sustaining Handoff: Why Every Consulting Engagement Should End with a System, Not a Report
Most consultants deliver a report. The client reads it once, implements 20% of it, and files the rest. There is a better exit: a system the client team can operate without you.
2026-05-16 · 6 min read
Work with KG

Working on a 0→1 product?

I help founders and operators go from idea to validated product. Let's talk about yours.

Get in touch →