azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

Service Bus Upgrade Scenario 5: Enable creation of new multi-property correlation filter

Open gcheng opened this issue 13 years ago • 13 comments

Dev estimate: 0 Test estimate: 5

gcheng avatar Feb 11 '13 18:02 gcheng

Previous versions of the Service Bus supported two types of filters for subscriptions. The correlation filter scales to large numbers but is limited to a single property/value: the SQL filter is limited to 2000 instances per topic. In some scenarios, you may want to add filters for supporting large number of combinations of property name/values. This feature now enables you to set a filter with multiple equality clauses on properties. For example: PropertyNameOne=’ValueOne’ AND PropertyNameTwo=ValueTwo AND PropertyNameTest=’ValueThree’ C# CorrelationFilter filter = new CorrelationFilter(); filter.Properties.Add( new KeyValuePair<string, object>("name", 10));

gcheng avatar Apr 30 '13 17:04 gcheng

basically, we need to update the schema of CorrelationFilter by adding a few properties.

gcheng avatar May 09 '13 22:05 gcheng

In addition to CorrelationId, now it supports MessageId, To, ReplyTo, Label, SessionId, ReplyToSessionId, ContentType, and Properties. all are string type, except Properties is PropertyDictionary Type.

gcheng avatar May 09 '13 23:05 gcheng

Here is the list of the properties a. CorrelationId b. MessageId c.To d.ReplyTo e. Label f. SessionId g. ReplyToSessionId h. ContentType

gcheng avatar May 20 '13 23:05 gcheng

This is the trace for the properties


<Properties><KeyValueOfstringanyType><Key>keyIsGreat</Key><Value xmlns:d7p1="http://www.w3.org/2001/XMLSchema" i:type="d7p1:string">valueIsAlsoGreat</Value></KeyValueOfstringanyType></Properties>

gcheng avatar May 22 '13 22:05 gcheng

basically, the Properties is implemented in KeyValueOfstringanyType

gcheng avatar May 22 '13 22:05 gcheng

correlationfilter What is interesting is, from .NET SDK trace, it appears that Filter was put under DefaultRuleDescription.

gcheng avatar May 23 '13 00:05 gcheng

https://github.com/gcheng/azure-sdk-for-java-pr/pull/121/files

gcheng avatar May 23 '13 01:05 gcheng

look good

xuezhai avatar May 23 '13 21:05 xuezhai

testing blocked because of issue # 359

xuezhai avatar Jun 07 '13 22:06 xuezhai

#359 is in ready for test status, move this one into ready for test as well.

gcheng avatar Jun 11 '13 23:06 gcheng

get list of properties above works now

xuezhai avatar Jun 19 '13 19:06 xuezhai

after #359 fixed

xuezhai avatar Jun 19 '13 19:06 xuezhai