Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Recently, I had to create a program to send messages between two winforms executable. I used a tool with simple built-in functionalities to prevent having to figure out all the ins and outs of this vast quantity of protocols that exist.

But now, I'm ready to learn more about the internals difference between each of theses protocols. I googled a couple of them but it would be greatly appreciate to have a good reference book that gives me a clean idea of how each protocol works and what are the pros and cons in a couple of context.

Here is a list of nice protocols that I found:

  • Shared memory
  • TCP
  • List item
  • Named Pipe
  • File Mapping
  • Mailslots
  • MSMQ (Microsoft Queue Solution)
  • WCF

I know that all of these protocols are not specific to a language, it would be nice if example could be in .net.

Thank you very much.

share|improve this question
    
are you looking on how to design a SOA (Service oriented architecture) ? –  Yusubov Jun 27 '12 at 2:37
    
@ElYusubov, No, I just looking for how all of these protocols works at a very low level in Windows specifically. –  Samuel Jun 27 '12 at 17:10
1  
Windows System Programming, Third Edition - look at that book –  Yusubov Jun 27 '12 at 19:23
    
could you accept this answer? –  Yusubov Jun 28 '12 at 0:22
add comment

2 Answers

up vote 9 down vote accepted

Most of the scenarios are supported through bindings in WCF.

For the official source you may look at WCF Feature Details, and good intro to Basic WCF Programming, and very detailed Introduction to Windows Communication Foundation is also availiable in MSDN.

Regarding books, the top rated book on this subject matter can be found here - Programming WCF Services

share|improve this answer
    
I know that WCF is a very powerful technology but in a lot of situations, it's like moving a canned food of beans with a very large boat. This is the reason why I want to have a deep explanation of each of these protocols. –  Samuel Jun 27 '12 at 17:14
    
I am afraid there is no single book that would describe all listed protocols in detail. However, you may look at "Windows System Programming, Third Edition" which has topic on Interprocess communication, featuring pipes and mailslots. –  Yusubov Jun 27 '12 at 19:22
    
@Samuel, thanks ! –  Yusubov Jul 2 '12 at 1:58
1  
Thanks to you @ElYusubov, the book explain in deep details names pipe and mail slots. –  Samuel Jul 2 '12 at 11:42
add comment

For MSMQ solution, take a look at NServiceBus. It is very easy to set up and play around with. They have plenty of examples that you can download and run.

We have used it in a number of applications and it works great so far.

There are also some similar alternatives, such as MassTransit.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.