inter process communication

what is the easiest and most performant way to communicate between 2 c# applications in the same machine? one of them is a wpf app and the other one is a command line app.
3 Replies
ero
ero3y ago
There's no "easiest" or "most performant" or "best" option There are like a dozen ways to do IPC/RPC Some people recommend a web API Others named pipes MemoryMappedFiles exist, plain RPM/WPM
realivanjxツ
realivanjxツOP3y ago
my case is only for locally running apps so i dont think it is a good solution
D.Mentia
D.Mentia3y ago
That's actually still a common and good solution for local apps; one of them hosts a server on localhost, the other one sends requests and gets responses Haven't done any of the others but this sounds like the only decent solution; dealing with file I/O just to communicate between processes does not sound ideal Pipes are apparently very similar, maybe a bit easier to use, still the same concept of hosting a local server
Want results from more Discord servers?
Add your server