Last post Feb 03, 2019 12:12 PM by mgebhard
Feb 03, 2019 11:40 AM|varoulscuprens|LINK
I am reading book Professional WCF 4, written by Pablo Cibraro, Kurt Claeys, Fabio Cozzolino, Johann Grabner. There is a passage in the book:
In many cases, the sender of a message does not always know where to send the message. The actual receiver is not known by the client so a routing mechanism determines the real address of the endpoint. The route can perform
different kinds of processing during the routing.
This decision can be influenced by the content of the message in combination with a set of business rules. Or the actual endpoint can just be hardcoded. In all cases, the idea is to decouple the senders from receivers across
the organization in a flexible way.
When the actual endpoint is determined by a value or combination of multiple values in the content of this message, it is called content-based routing.
It’s often a business requirement that data be sent to one of the possible multiple receivers which are interested in this data and can fulfi ll the request while other receivers cannot.
Could you please clarify the concept that mentioned above? Thanks in advanced.
Feb 03, 2019 12:12 PM|mgebhard|LINK
WCF has routing capabilities. Basically, the WCF clients connect to a WCF router and the router connects to the target WCF service. There's a bunch of ways to configure how the messages are routed. The client has no idea that that message is routed.
The client only sees the endpoint.
The WCF docs cover the details.