Why are FaultRules checked bottom to top in ProxyEP and top to bottom in TargetEPs?

mail-2
Participant IV

(https://docs.apigee.com/api-platform/fundamentals/fault-handling#execution)

Edge evaluates the FaultRules in either the ProxyEndpoint or TargetEndpoint, depending on where the error occurred:

  • ProxyEndpoint - Edge starts with the bottom <FaultRule> in the configuration XML and works its way up, evaluating the <Condition> of each <FaultRule> (the "outer" condition, not the "inner" <Step> conditions).
  • TargetEndpoint - Edge starts with the top <FaultRule> in the configuration XML and works its way down, evaluating the <Condition> of each <FaultRule> (the "outer" condition, not the "inner" <Step> conditions).

---

If I'm not mistaken this is the only case where a sequence of items is checked in different ordering depending on context.

Steps in Flows, Conditional Flows and RouteRules are all checked top to bottom - always (correct me if I'm wrong).

What is the reasoning for this asymmetry (which I happen to find rather confusing)?

0 0 114
0 REPLIES 0