RPC rate limits: serving apps without melting the node
A node that serves applications is a node that takes traffic it did not ask for. One badly written client in a retry loop, one application that caches nothing, one launch that triples overnight — any of them can turn a healthy node into a throttled, unresponsive one. Rate limits are the control that keeps serving from melting the node, and designing them well means deciding what the node protects first: its own health, or the applications it serves.
What melts a node under serving load
- Unbounded query fans. Applications that fire many queries per page load, or that poll instead of subscribing, multiply node work invisibly. The node answers every call until it cannot.
- Retry storms. When a node slows, well-meaning clients retry — adding load exactly when the node is weakest. Retries without backoff turn a slowdown into a collapse.
- Expensive queries at scale. Range queries over long spans, heavy filters, and unindexed lookups are cheap alone and fatal in aggregate. Rate limits that count calls without counting cost miss the real load.
- Bursts nobody planned. Launches, migrations, and batch jobs arrive as traffic spikes. A node sized for steady state has no headroom for them unless limits shape the burst.
The rate-limit design that works
- Limit per client, not just globally. Per-application quotas stop one bad client from consuming the node's capacity. Global limits alone let a single misbehaving app starve everyone else.
- Weight by cost. Cheap calls get generous limits; expensive queries get tighter ones or separate pools. A limit that treats a balance check and a month-long range query as equal protects nothing.
- Queue or shed bursts deliberately. Decide in advance whether burst traffic queues, gets shed with a clear error, or gets a reserved allowance. Undecided bursts become incidents.
- Enforce backoff on the client side too. Retry budgets and exponential backoff are part of the contract between app and node. A node that limits and a client that ignores the limits have not agreed on anything.
- Watch the limits themselves. Rejected-request rates are a leading indicator: rising rejections mean an app is growing past its quota, and the conversation should happen before the app breaks.
The conversation with application teams
Rate limits are a product decision, not just an operations one. Applications need to know their quotas, their cost weights, and what happens when they exceed them — before they build against the node. Teams that publish limits and review them with app owners get cooperative growth; teams that discover limits through errors get retry storms and support tickets.
The takeaway
RPC rate limits protect the node from the traffic it serves: per-client quotas, cost-weighted limits, deliberate burst handling, client-side backoff, and monitoring on rejection rates. Limits decided in advance keep serving from melting the node; limits discovered during an incident are just a slower way to fail. The node that serves everyone should first be able to survive any one of them.