Support boolean expression rule for gray release
For now there are 4 matching rules: match, =, regEx, like. A new customized rule with parameters will make gray release more flexible. The previous discussion can be found at https://github.com/dromara/soul/issues/1288

I suggest that we add a boolean expression rule, if the expression is true then the query will be routed to the new version.
The provision may like:
- Set the parameter(from URI or Header), like 'user_id'.
- Set the expression, like ${user_id}%5=0 , ${user_id} in (1,2,3)
With this rule, users can simply control the new version proportion by adjust the expression instead of design the URI or Header.
Maybe we could use groovy script parse the expression, or something else.
Tasks list:
- [x] Support SpEL condition
- [x] Support Groovy condition
The groovy script is more flexible
groovy script
The groovy script is more flexible, but user shoud be programmer .we need to consider the cost of study.
The groovy script is more flexible, but user shoud be programmer .we need to consider the cost of study.
Agree. I wonder how to parse a common expression, any suggestions?
Spring Expression Language (SpEL)
Spring Expression Language (SpEL)
good idea
The groovy script is more flexible
good idea
groovy script + SpEL ?
groovy script + SpEL ?
the two strategy