How can I do ratio based or percentage based routing in Apigee as provided in Zuul and istio

Not applicable

I need to create a service proxy which will route the traffic based on some conditions and configurations.

for example service calls which have header {clientId : XXXX} should be routed 95% to legacy service and 5% to new service.

This feature is available in Zuul and Istio. How we can implement the same in Apigee

Solved Solved
0 3 522
1 ACCEPTED SOLUTION

I've done this with JavaScript.

An example is here: https://github.com/DinoChiesa/ApigeeEdge-BlueGreen-1

View solution in original post

3 REPLIES 3

Not applicable

I've done this with JavaScript.

An example is here: https://github.com/DinoChiesa/ApigeeEdge-BlueGreen-1

thanks Dino for your post. I can see that the weights and targets are selected in a random selection manner. do we have any way to select the targets based on weights provided in configuration.

For example: The first request should go to legacy system and next 4 requests should go to new microservice, and then next again to legacy and next 4 to new microservice