Guide the best way to utilize single conditional flow for multiple backend url's

plvndinesh
Participant II

1.I have Create a proxy with noTarget and added conditional flow to it.

2.In conditional flow i added javascript policy at request and input a flag variable in json.

Ex:{ "flag":"one"},{"flag":"two"}

and checking condition

if(payload.flag == "one"){

servicecalloutPath ="/getdetails";

}else if(){

servicecalloutPath ="/updatedetails";

}

context.setVariable("servicecalloutPath",servicecalloutPath);

3.In service callout policy in url path i am configuring serrvicecalloutPath.(using only oneservicecallout policy in conditional flow with some response time)

Q)In multiple user utilizing the proxy with condition one,two in parallel what are the drawbacks and suggest some best practice .

Note:I should not create new proxy for it.and using spike arrest policy in proxyend point preflow request.


0 1 196
1 REPLY 1

Your question is not clear. Can you try to re-ask it?

What specifically is the question?