Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best choice for .NET inter-process communication? [closed]

Tags:

c#

.net

process

ipc

Should I use Named Pipes, or .NET Remoting to communicate with a running process on my machine?

like image 291
mrbradleyt Avatar asked Sep 17 '08 16:09

mrbradleyt


People also ask

Which is the best IPC mechanism?

Shared memory is the fastest form of interprocess communication. The main advantage of shared memory is that the copying of message data is eliminated.

Which among the following can be used for inter-process communication?

Explanation: Message Passing system allows processes to communicate with each other without sharing the same address space.

What are the two types of interprocess communication?

There are two primary models of interprocess communication: shared memory and. message passing.


1 Answers

WCF is the best choice. It supports a number of different transport mechanisms (including Named Pipes) and can be completely configuration driven. I would highly recommend that you take a look at WCF.

Here is a blog that does a WCF vs Remoting performance comparison.

A quote from the blog:

The WCF and .NET Remoting are really comparable in performance. The differences are so small (measuring client latency) that it does not matter which one is a bit faster. WCF though has much better server throughput than .NET Remoting. If I would start completely new project I would chose the WCF. Anyway the WCF does much more than Remoting and for all those features I love it.

MSDN Section for WCF

like image 190
Eric Schoonover Avatar answered Sep 20 '22 23:09

Eric Schoonover