Is there a way to improve performance of a RegEx protection policy?

I am testing performance on test on one of our proxy. we have Thread Protection policy is part of that proxy which consumes 50ms-100ms of time. Would like know if there is a way to improve the performance of thread protection policy.

Solved Solved
1 1 129
1 ACCEPTED SOLUTION

Unfortunately, there's no way to improve the performance in this case via the policy configuration. This policy extracts information from a message (for example, URI Path, Query Param, Header, Form Param, Variable, XML Payload, or JSON Payload) and evaluates that content against predefined regular expressions. So, the entire message has to be parsed to look for patterns.

Also, Apigee Edge follows the same Regex rules as the classes in the java.util.regex package in the Java language.

View solution in original post

1 REPLY 1

Unfortunately, there's no way to improve the performance in this case via the policy configuration. This policy extracts information from a message (for example, URI Path, Query Param, Header, Form Param, Variable, XML Payload, or JSON Payload) and evaluates that content against predefined regular expressions. So, the entire message has to be parsed to look for patterns.

Also, Apigee Edge follows the same Regex rules as the classes in the java.util.regex package in the Java language.