Variants of interaction between processes

I need to subscribe inside one application for an event opened by another application. I noticed that many people think that using these WCF pipes is best practice. Is it right that if I select WCF Named Pipes, I have to use IIS?

And by the way, what are my options at all?

+6
source share
2 answers

Named pipes are one of the fastest ways to make IPC (interprocess communication) on a single computer. They existed for a long time (was NT4 the first OS?) And are not specific to WCF.

I would, however, not use WCF / Named pipe through ASP.NET, since IIS does not use named pipes for communication. this means that your application will close if IIS has not received HTTP requests for a while.

How you should host your IPC depends on the type of application. If you want your server to always work, you must host it on a Windows service. Otherwise, you can simply include it in your desktop application.

You don’t have to use WCF, you can directly use named pipes (look at the link at the beginning of my post). It all depends on how complicated your communication is.

+5
source

I am right, if I choose WCF Named Pipes, I will have to use IIS. And by the way, what options do I have at all?

No, not at all. Although this is an option, you have other options. How,

  • Self-Hosting Your Service
  • Windows Services Hosting
  • Internet Information Services (IIS) Hosting

    which you can read in detail here .

Named pipes existed before WCF and WCF were, of course, not the only way to use them.

+3
source

Source: https://habr.com/ru/post/952482/


All Articles