IPC Mechanisms in C# - Usage and Best Practices

前端 未结 6 2080
南笙
南笙 2020-11-22 12:58

I have used IPC in win32 code a while ago. [Critical sections, events & semaphores]

How is the scene in .NET enviroment? Are there any tutorial explaining all av

6条回答
  •  再見小時候
    2020-11-22 14:01

    Apart from the obvious (WCF), there is a ZeroMQ binding for C#/CLR which is pretty good:

    http://www.zeromq.org/bindings:clr

    Does message-oriented IPC, pub/sub and various other strategies with much less code and config than WCF.

    It's also at least an order of magnitude faster than anything else and has less latency if you require low latency comms.

    With respects to semaphores, locks, mutexes etc. If you share by communicating rather than communicate by sharing, you'll have a whole load less hassle than the traditional paradigm.

提交回复
热议问题