Difference between Promoted Property and Distinguished Field in Biztalk Server
- S.NoPromoted PropertyDistinguished Field
1 Whether it is used for routing ?
Used for routing (subscription mechanism)
IsPromoted = true
Whether it is used for routing ?
Do not participate in routing
IsPromoted = false
2 Whether it is used for tracking ?
Used for tracking
Whether it is used for tracking ?
Not used for tracking
3 Size Limit:
Restricted to 255 characters
No size limitation
4 Whether it requires Property Schema ?
Require property schema
Whether it requires Property Schema ?
Do not require property schema
5 Whether it used by standard / custom Pipeline Components ?
Used by standard pipeline components
Whether it used by standard / custom Pipeline Components ?
Accessible only by custom pipeline component which would explicitly access them
7Where it can be accessed ?It can be accessed both in orchestration code and in the messaging configuration (e.g.filters on send ports).Where it can be accessed ?It can be accessed only in code in orchestrations.i.e., Distingished fields are light weight and can be accessed only in Orchestrations. 8Storage:A promoted property is stored in the message context.Storage:Only run-time access. 9Routable:Yes, as they are attached to the message Context they can be used for routing.Routable:No 10 Whether it should be constrained by message contents ?
No, any type value can be promoted in a pipeline (there is no need for the value to be contained in the message).
Whether it should be constrained by message contents ?
It should be constrained by message contents Yes,only values within the message may be accessed.
Yes, even if they are never used they are always read and inserted into the message context. As the message is passed through the MessageBox and Orchestration the context needs to be copied and stored.In Short,the more Promoted Fields we have the more costly the subscription process is.
12.XSD type support:Less than Distinguished Field supports..XSD type support:More than promoted property supports. 13 Whether it visible in HAT ?
Whether it visible in HAT ?
14 When we should go for Promoted Property ?
Promoted Property should be used for routing, correlation and/or tracking.
When we should go for Promoted Property ?
Distinguished fields should be used when a particular message element is commonly manipulated in one or more orchestration.