Apidays New York 2024 - The value of a flexible API Management solution for O...
BizTalk Messaging Fundamentals
1. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
Microsoft BizTalk Server
Messaging Fundamentals
Manoj Kumar
manoj.kumar@neudesic.com 18 April 2013
2. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
2009 2010 2007 2008
August 2010
Ranked as one of the top
technology solution providers
in America by CRN Magazine
for the past 4 years.
The Trusted Technology Partner in
Business Innovation
August 2010
Ranked as one of the top
technology solution providers
in America by CRN Magazine
for the past 4 years.
July 2010
Named Microsoft Partner of
the Year Finalist in 2 separate
categories
June 2010
CRN Magazine's list of the
largest solution providers in
North America
3. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Messaging Architecture
4. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Messaging: Commonly used terms
Message: Data file in any format like Flat file or XML. Immutable.
Multi-part message: Message is made up of zero or more parts. One of these parts
identified as the body part. Each part consists of a binary chunk of data.
Messaging: Flow of message from receive port to send port thru pipelines and adapters.
Translation: Changing format of the instance message (via pipelines).
Transformation: Creating a correspondence between source and target schema (via Maps)
5. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Messaging: Commonly used terms
Message Correlation: Ability to relate a message being received to an already running orchestration instance.
Routing: Moving messages to subscribers thru subscription/filtering.
Content based routing: Route message based on envelop or receive port configuration properties.
Routing Failure: No subscription exists for a published message.
Message Box: Message persistence and routing engine. There can be multiple MB, but one MB acts as master.
Message context: Set of promoted properties available for routing or distinguished fields in Orchestration.
6. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Messaging : Receive and Send port
Receive/Send port: It is collection of receive locations.
Receive/Send location: These consist of pipelines and adapters.
Send Port Group: Collection of send ports just like email list.
Endpoint Manager: The service responsible for managing send and receive ports
and acts as the intermediary between the ports and the Message Box.
Adapter: For transport and communication between two systems. Example
adapter for HTTP, WCF, SQL, Oracle etc.
7. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Messaging : Port components
8. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Messaging : Pipelines
0 or more pipelines for receive or send
Numerous pipeline components ship out of the box and Can write custom
pipeline component
Pipeline is a series of components which executes in sequence. Steps like
Decoding/encoding, disassembling/assembling, decryption/encryption,
parsing, or validation. These prepare message so that it can be published to
Message Box or sent out from BTS.
In Pass Thru: Message directly passes to Message box
9. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Messaging : Default pipelines
10. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Messaging : DEMO - 1
Receive Port
Receive Location
Adapter
Pipelines
Sent Port Group
Sent Port
11. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Message Processing
An adapter create a message as Microsoft.BizTalk.Message.Interop.IBaseMessage and IBasePart
Adapter writes or promote properties into message context
Adapter passes message to Transport proxy (managed by endpoint manager)
Processing thru receive pipeline: Deals with message content (handled in decoding, disassembling
and validating stages) and context (all stage)
Message Transformation: inbound mapping or mapping in Orchestration
Endpoint manager passes the message to Message Agent for publishing to Message Box
Message routes to Send port or to Orchestration
When message ready to be sent from BTS all steps are applied in reverse order of receive port
Messages go to out after mapping and processing thru send pipelines
12. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk Messaging – Promoted properties
Promotion of message properties creates decision points
These become part of message context
Whole message must be loaded to be interrogated for promoted ones
Limited to 255 characters
Used for routing, correlation and/or tracking
13. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk Messaging – Distinguished properties
A lighter way to access message property in orchestration
Message elements that are written into the message context
A reference is added as
MessageName.RecordName.ChieldRecordName.DistinguishedFieldName
Distinguished fields should be used when a particular message element is
commonly manipulated in one or more orchestration
14. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk Messaging – Promoted Vs Distinguished properties
PROMOTED FIELDS/ PROPERTIES DISTINGUISHED FIELDS
Used for routing (subscription mechanism)
IsPromoted = true
Do not participate in routing
IsPromoted = false
Used for tracking Not used for tracking
Restricted to 255 characters No size limitation
Available for use in orchestrations Available for use in orchestrations
Require property schema Do not require property schema
Used by standard pipeline components
Accessible only by custom pipeline component
which would explicitly access them
15. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Message Publishing and Routing
Steps:
Message ready to publish to MB (Message Box)
MA (Message Agent) inserts promoted properties and
predicate values from message context into MB
MA asks MB to find subscription for current batch of
message being published
MA inserts after validating subs
The message ID, subscription ID, service ID, and other
subscription information are inserted into the
application specific queue table for each subscription
Message and its body parts inserted into SPOOL table
Each subscriber thru dequeueing threads keep polling
MB
Host instance gets lock to handle
Send port or Orchestration invoked
Host releases reference to message
If no other service has reference then message can be
deleted.
16. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Message Publishing and Routing
Publishers: Receive ports and Orchestration
Subscribers: Orchestration and Send Port
Subscription ways:
– Activation subscription: A new instance of the subscriber is created
when a message is received.
– Instance subscription: Routed to an already-running instance of
the subscriber. Unique instance ID is stored in the subscription
table in the master Message Box.
17. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Messaging : DEMO - 2
Message Routing thru subscription (Applying Filters)
End to end: Copying an XML message from pick up to
drop directory thru BTS
Routing failure: Finding and debugging the issue
Use of Inbound and Outbound maps
18. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
Thank You
Manoj Kumar
manoj.kumar@neudesic.com