We need to use dynamic Target Endpoints, by the configuration of percentage.
For instance, 30% of the requests will go to target1, and 70% to target2.
I should be able to change the percentage configuration on runtime.
If a request (by some field, such as client_name,userId, account number....) was sent to target1, it always go to target1 (buy this field value)
What is the best way to implement this requirement?
you can use Apigee weighted algorithm of target server load balancer configuration.
One will be weightage 3 and the other one as 7.
And the one when you have to send to a fixed target just use target.url configuration in a javascript.
User | Count |
---|---|
5 | |
2 | |
2 | |
1 | |
1 |