2 ms·
That is solved by a weighted queue based on an individual and rate limiting based on budget. E.g. The Pentagon will answer 100,000 requests per month, each ind
by fweespeech 11y ago
That is solved by a weighted queue based on an individual and rate limiting based on budget.
E.g. The Pentagon will answer 100,000 requests per month, each individual will have a spot in the queue, when a request is received the next request from that individual is at (N requests * -1) in weight.
So:
X, Request 1, 0
N, Request 2, 0
Z, Request 3, 0
A, Request 5, 0
Q, Request 7, 0
X, Request 4, -1 [will be weighted 0 for next month]
X, Request 6, -2 [will be weighted -1 for next month]