You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Limiting the API access rate can not only effectively allocate node resources, but also ensure the stable running of a node. Java-tron supports API rate limits, it only supports separately setting the rate limit of each interface, or setting a global rate limit for all APIs. But it not supports to configure one item to control all single API. Expected there is a configure item which can set the rate limit for all single API.
Why should this feature exist?
There are so many APIs provided by java-tron. if user wants to configure each API's rate limit to 10, he needs to configures interfaces one by one, which is too much work. So It would be great if there will be a single configure item like this.
The text was updated successfully, but these errors were encountered:
what is the relationship between the globe rate limit config and the single rate limit config? In other words, how to coordinate when both globe config and single config existed in the project, could you provide more details?
The globe rate limit setting and the single rate limit setting have been implemented by java-tron, and How is it implemented now, after adding this configure item, it is still the same, and the original logic will not be changed. The priority is not change. For example, if each API's rate limit is 100, but the global rate limit is 1000, then even the access rate of one api can reach 100, but if the global access rate has already reach 1000/s, then any access will be denied.
The reason for adding this configuration is now single rate limit setting is confiured one by one, that is so complicated. So this issue is proposed to expected one configure item can be set to modify all single APIs.
Rationale
Limiting the API access rate can not only effectively allocate node resources, but also ensure the stable running of a node. Java-tron supports API rate limits, it only supports separately setting the rate limit of each interface, or setting a global rate limit for all APIs. But it not supports to configure one item to control all single API. Expected there is a configure item which can set the rate limit for all single API.
Why should this feature exist?
There are so many APIs provided by java-tron. if user wants to configure each API's rate limit to 10, he needs to configures interfaces one by one, which is too much work. So It would be great if there will be a single configure item like this.
The text was updated successfully, but these errors were encountered: