Visitors to this site

Rule Syntax in TurmericSOA

Turmeric‘s next release will provide two new rule patterns for Rate Limiting Policies, which allow to limit calls for any XACML Subject or Subject Group. With them, grows the rules flexibility as well as its throwput.

Recalling those years developing a Motohealth protocol, I cleaned up the dust from my writing capabilities in EBNF 🙂 , then, this is how the Rule syntax looks:

128.10.10.4:hits>1000: Limit that IP after 1000 calls*HITS>10000: Limit any call after 10000 calls, regardless what and who made them*MyService:my_operation.count>150: Limit any call to my_operation after 150 calls, regardless who made them*MyService.count>100: Limit any call to myService after 100 calls, regardless the caller and the operation*

new ones….MyService:my_operation.SubjectGroup.count>500: Limit any call to my_operation after 500 calls, made by a Subject Group*
MyService:my_operation.SubjectGroup.Subject.count>500: Limit any call to my_operation after 500 calls, made by each Subject member of a Subject Group*

(*) Limiting action acts based on on the specified Effect action field.

Don’t forget Subject and SubjectGroup must be targets on the RL Policy definition. (FMI refer the Turmeric 1.0.0 wiki)