Sequence of execution of route rule

Not applicable

Is this statement appropriate:

The <RouteRule> tag in a ProxyEndpoint definition determines the target of the API proxy, and is evaluated after all policies in the PreFlow, Conditional Flows, and PostFlow of the ProxyEndpoint are processed.

As i understand all the request policies are executed and then the request is routed to target end poing and then the response policies are evaluated.

Can you please help me understand and correct me if my understanding is wrong?

0 2 703
2 REPLIES 2

Not applicable

@Raghavendra

The thing is based on the request all the policies in Preflow will be executed first, then based on condition move to conditional flow and then post flow of the proxy endpoint.

Then the flow will be moved to specific target endpoint based on the route rule mentioned.

Hi @Raghavendra

That is correct. For more info on flows, refer to this link.

For more info on RouteRules, check this link. The sequence of route rules are also mentioned there. its top down and if more than one condition is true, the first one gets executed.

Hope this helps !