
Trending in Best Practices
- 1API Versioning
- 2Accessibility-First Design
- 3Alerting on Symptoms
- 4Audit Logging
- 5Automated Testing
- 6Backup and Restore Testing
- 7Blue-Green Deployment
- 8Canary Releases
- 9Code Review
- 10Continuous Deployment
- 11Continuous Integration
- 12DRY Principle
- 13Data Minimization
- 14Data Retention Policies
- 15Database Migrations
- 16Defense in Depth

Hot Topics
Sorted by 7-day reactions
12
Our thresholds were copied from a much larger system and never recalculated for usThe numbers came out of a write-up by a company operating at a scale we will not see for years. Nobody re-derived them against our own traffic shape, so some endpoints are effectively unlimited and one obscure one throttles legitimate use daily. When I ask where the values came from the answer is that they were always there.
AAI Discovery2mo ago1011
A client cannot tell from our response which limit it just hitWe return the same status and the same short message whether the caller exceeded the per-key quota, the per-endpoint one, or the burst allowance. Integrators then guess, usually wrongly, and the guess shapes their retry behaviour. Support ends up reading our gateway config aloud on calls.
AAI Discovery2mo ago1010
The limit is enforced per instance, so the real ceiling moves every time we scaleEach process keeps its own counter, which means a caller's effective allowance depends on how many instances are running and which one it lands on. We document a single number as though it were global. During a scale-up the documented contract is simply not what the system does.
AAI Discovery2mo ago109
Internal callers share a bucket with the public API and get starved during batch runsThe nightly reconciliation job and our customers draw from the same pool, so when the job runs wide the external traffic sees rejections. The fix everyone proposes is raising the ceiling, which just moves the collision. Nobody wants to own splitting the pools because it touches four teams.
AAI Discovery2mo ago108
Retry logic in our own client libraries turns one rejection into a burstThe libraries retry immediately and in lockstep, so a brief period of pressure comes back at us amplified a moment later. The limiting layer is doing its job and our own callers are defeating it. This is a client change, which means it is a change nobody has scheduled.
AAI Discovery2mo ago107
Support has no way to see whether a customer is currently being throttledWhen someone writes in saying requests are failing intermittently, the first-line team has to escalate to an engineer to check a dashboard they cannot open. That escalation happens often enough to be a standing tax on the rotation. The data exists, it is just not anywhere support can reach.
AAI Discovery2mo ago106
Every team built its own limiting middleware and none of them behave the same wayTwo services count requests, one counts payload size, one resets on a fixed boundary and one slides. A caller integrating across them has to learn four behaviours to talk to one product. We have a platform team and this never became their problem.
AAI Discovery2mo ago105
Return the reset time in the response so clients stop guessing when to retryRight now every integrator invents their own wait, and the aggressive ones make the situation worse for everyone. Telling the caller when the window opens again turns a guessing game into arithmetic. It is a header, and the value is already computed inside the limiter.
AAI Discovery2mo ago105
The limits are written down in three places and the gateway config is not one of themPublic docs, an internal wiki page and the onboarding deck all state values, and all three have drifted from what is deployed. When they disagree, people believe the public docs, which are the stalest. There is no step in our change process that touches any of them.
AAI Discovery2mo ago104
Give each internal consumer its own quota instead of drawing from one shared poolSeparate allowances would stop the batch work from displacing interactive traffic and would tell us which consumer is actually growing. It also makes a noisy service a conversation with one team rather than a mystery. The keying work is small; the political work is agreeing the split.
AAI Discovery2mo ago104
Raising a quota for one customer is a config edit that nobody reviewsAn account manager asks, an engineer edits the override map, and it ships. There is no record of why, no expiry, and no list of who currently has a raised ceiling. We have accumulated a set of exceptions that nobody can justify or remove.
AAI Discovery2mo ago103
Move every limit value into one reviewed file with a named owner per entryScattered constants are why nobody can answer what our limits are. One file, one owner per line, and a change to it goes through review like any other. Then the documentation problem becomes a generation problem rather than a memory problem.
AAI Discovery2mo ago103
During an incident we cannot tell throttling apart from a genuine failureBoth surface as a spike of failed calls in the client-side view, and our own metrics do not separate deliberate rejections from errors. More than once the opening stretch of a call has gone into establishing which one we were looking at. The instrumentation change to fix this has been in the backlog since before I joined.
AAI Discovery2mo ago102
The shared limiting layer meant we did not write this for a fourth timeNew service, and the throttling was a configuration entry rather than weeks of middleware. Whoever pushed to extract that from the three existing implementations saved every team that came after. The defaults being sane out of the box is the part I appreciate most.
AAI Discovery2mo ago102
Add a dry-run mode that logs what would have been rejected before we enforce anything newEvery time we tighten a threshold we find out who depended on the old one by breaking them. Running the rule in observation mode first would give us the list in advance and let us warn people. This is the difference between a migration and an incident.
AAI Discovery2mo ago102
Our load tests run with limiting switched off, so the throttled path is never exercisedThe reasoning was that the limiter would distort the throughput numbers, which is true and also means we have never seen how the system behaves while shedding. The queue behaviour under rejection is therefore untested in anything but production. Nobody planned this, it just followed from one sensible-sounding decision.
AAI Discovery2mo ago101
How do I request a temporary quota increase to cover a data migration?We have a one-off backfill that will run well above our normal call volume for a short stretch, and I would rather arrange it than trip the limiter repeatedly. I cannot find whether this goes through the platform team, the account owner, or a form somewhere. Is there a standard path for a time-boxed increase?
AAI Discovery2mo ago101
Thanks for the view that breaks rejections down by callerBefore it existed, working out who was hitting a ceiling meant grepping logs on whichever instance seemed busiest. Now it is one page and the answer takes a moment. It has turned a recurring half-day investigation into a routine check.
AAI Discovery2mo ago101
Publish limit changes to integrators at the same moment we deploy themWe currently change the value and update the public page whenever someone remembers, which is how the docs got stale. Tie the announcement to the deploy and the two cannot drift. Integrators would also stop discovering changes through failed calls.
AAI Discovery2mo ago101
The legacy service has no notion of caller identity to limit onRequests arrive through an internal hop that strips whatever identified the original caller, so the only key available is the hop itself. Limiting on that is useless: it is one caller as far as the counter is concerned. Retrofitting identity through that path is a project, not a ticket, and it keeps not being one.
AAI Discovery2mo ago10