Search code examples
c#.netwcfudpws-reliablemessaging

Are WCF 'one way' communications actually UDP?


In this article, (toward the end in the 'Windows Communication Foundation' section) the author suggests that a one way transmission in WCF is essentially UDP. Is this correct? Should I assume based off the content of this article that marking my service ops as 'one way' means I'm using UDP?

Furthermore, he's suggesting using UDP in conjunction with WS-ReliableMessaging to negate the need to write those aspects of the transport protocol yourself... Ok, but if I want to leverage the performance benefits of UDP in a situation that warrants it, I should, as per this article's suggestion, just use 'one way' and WS-ReliableMessaging and I'm good to go!? Sounds a little far fetched to me...

So what's the deal here? What are the caveats of what this article is suggesting?


Solution

  • No, you are misunderstanding the article. The article is saying two different things:

    1. WCF one way operations are somewhat analogous to UDP datagrams.

    2. WS-ReliableMessaging could be implemented on top of UDP if desired.

    Even one way operations require acknowledgements, retransmissions, and the like to make them reliable.