Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(scaling): qualify the shared throttle bucket on forwards

Yudhi Armyndharis42f88443f1a9
diff --git a/docs/13-horizontal-scaling.md b/docs/13-horizontal-scaling.md
index dfb6daac1..700dd07c4 100644
--- a/docs/13-horizontal-scaling.md
+++ b/docs/13-horizontal-scaling.md
@@ -127,8 +127,10 @@
> the older node keeps renewing. Running every node in `TZ=UTC` (the image default) removes it.
>
> **A forwarded request is throttled on both nodes.** The receiving node counts it before
-> forwarding, and the owner counts it again on arrival; with `REDIS_ENABLED=true` both counts land
-> in the same shared bucket. Size the rate limits with that in mind for a routed deployment.
+> forwarding, and the owner counts it again on arrival; with `REDIS_ENABLED=true`, and each peer
+> node listed in the owner's `TRUSTED_PROXIES` (below), both counts land in the same shared bucket.
+> Without that, the owner counts every request forwarded by a peer in one bucket keyed on that
+> peer's address. Size the rate limits with that in mind for a routed deployment.
>
> Forwards carry the client address in `x-forwarded-for` (inbound chain preserved, the
> observed peer appended). For an `allowedIps`-restricted key or the per-IP throttler to see