Hi. Is it possible to give a little bit more insight on how these properties work?
What I see from code, we get remainingNumberOfPermits as initial_number - threshold.
Each time event is sent, remainingNumberOfPermits is decreased by 1 and when remainingNumberOfPermits == 0, new_permits request is sent.
What is happening between “new_permits requests” ?
What are the optimal values to get max throughput ?