Resource Tuner
|
#include <RateLimiter.h>
Public Member Functions | |
int8_t | isRateLimitHonored (int32_t clientTID) |
Checks if rate limit is honored. | |
int8_t | isGlobalRateLimitHonored () |
Checks if the Global Rate Limit is honored. | |
Responsible for Tracking Client Behaviour, and Protect against System Abuse.
Definition at line 38 of file RateLimiter.h.
int8_t RateLimiter::isGlobalRateLimitHonored | ( | ) |
Checks if the Global Rate Limit is honored.
Resource Tuner sets a cap on the number of Active Requests which can be served concurrently. If the current Count of Concurrent Active Requests hits this threshold, then any new Requests shall be dropped.
int8_t RateLimiter::isRateLimitHonored | ( | int32_t | clientTID | ) |
Checks if rate limit is honored.
RateLimiter uses the notion of Client Health (initialize to 100), which changes based on Client Behaviour (through Reward or Punishment). If this value Reaches 0, then any further Requests from the Client shall be dropped.
clientTID | TID of the client |