Rate Limit sharing between Shards?
I'm unsure if this is the default behavior or not, but when you use RESTOptions#globalRequestsPerSecond, is this handled per-shard or is that state shared between all shards? I.e., does it behave as one may expect given its name in a sharded bot? (All shards respecting the same global rate limit)
2 Replies
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Does that only imply to internal sharding? I.e. not using the sharding manager/process sharding
To be clear Iβm asking about the rest capabilities built in to the Client instance when rest options are passed, which I know uses /rest
So when using process sharding/the sharding manager does the limit still work/will it disallow all shards from collectively exceeding 50 req/sec
Does djs provide any mechanisms for keeping that safety when using process sharding? Itβs very helpful and if not it feels like something worth noting on the guide
Alright, I understood that much of how it worked. I just wanted to clarify that it still works with process sharding. Thank you π