Search code examples
c#.netremotingappdomain

How best to communicate between AppDomains?


I have an application that needs to send a moderately high volume of messages between a number of AppDomains. I know that I could implement this using remoting, but I have also noticed that there are cross-domain delegates. Has anyone looked at this kind of problem?


Solution

  • I have had good success using WCF with a named pipes binding. Using named pipes creates no network traffic and uses binary encoding, so it should be pretty fast without sacrificing the ability to distribute in future scaling scenarios.

    EDIT: Refer here for more detailed information including a link to an implementation example.