Relay bindings in .NET Service Bus

Microsoft .NET Service Bus currently offers ten relay bindings, with different messaging patterns and various message options, giving developers a range of choices of service implementations. Moreover, different relay bindings fit different characteristics.

NetEventRelayBinding is preferred to enable publish/subscribe scenario; NetTcpRelayBinding is optimized for both efficiency and throughput; NetOnewayRelayBinding is the most constrained binding; and bindings from BasicHttpRelayBinding to WS2007HttpRelayFederationBinding are designed for non-WCF clients.

These ten relay bindings really took me some time to digest. For those who just start learning, I think a list of replay bindings with all messaging patterns and default message options would be helpful.


Relay Binding


Messaging Patterns


Default Message Options from Sender


BasicHttpRelayBinding


Req./Resp. Messaging


SOAP 1.1 over HTTP in plain encoding


WebHttpRelayBinding


Req./Resp. Messaging


REST over HTTP in plain encoding


WSHttpRelayBinding


Req./Resp. Messaging


SOAP with WS-* protocols over HTTP


WS2007HttpRelayBinding


Req./Resp. Messaging


SOAP with OASIS standard WS-* protocols over HTTP


WSHttpRelayContextBinding


Req./Resp. Messaging


SOAP with WS-* protocols over HTTP


WS2007HttpRelayFederationBinding


Req./Resp. Messaging


SOAP with OASIS standard WS-* protocols over HTTP


NetTcpRelayBinding


Req./Resp. Messaging


Peer-to-PeerMessaging


SOAP 1.2 over TCP in binary encoding


NetTcpRelayContextBinding


Req./Resp. Messaging


Peer-to-PeerMessaging


SOAP 1.2 over TCP in binary encoding


NetOnewayRelayBinding


UnicastOne-way Messaging


SOAP 1.2 over TCP in binary encoding


NetEventRelayBinding


MulticastOne-way Messaging


SOAP 1.2 over TCP in binary encoding

Comments