Good afternoon Dear,
The problem itself is not coding but rather to define a process well and then codify it.
I have the present situation, I must refer or delegate tasks to x or and webService according to a defined percentage. Example:
Send 80% of the requests to the webService "X" and 20% to the webService "Y" that percentage must be configurable, but it is not what is bothering me at this moment. I do not know how to proceed to optimize this "Balancing".
I plan to specify a minimum threshold of example 10 requests and then start counting 8 requests for "X" and 2 requests for "Y" or the opposite to cover first the lowest percentage and then the highest percentage.
As they recommend me to perform this type of balancing.
Thank you very much in advance.