Can Reactive Extensions (Rx) be used across process or machine boundaries?

后端 未结 7 1560
名媛妹妹
名媛妹妹 2021-02-08 03:48

Vaguely remember seeing some discussions on this quite a while back but haven\'t heard anything since. So basically are you able to subscribe to an IObservable on a remote machi

7条回答
  •  南旧
    南旧 (楼主)
    2021-02-08 04:12

    Yes.

    Check out Pushqa.

    • Its easy to use. I was up and running in about 5 minutes.
    • It works with C# .NET, WPF, ASP.NET or Javascript. SignalR is built into ASP.NET, but it works for any C# .NET project if you add the right NuGet package.
    • It is superior to RX over .NET remoting (see my other answer), as we can have one server and many subscribers (it is a true pub/sub model, just like RX).
    • The queries are compiled into expression trees, and executed on the server (which minimizes network traffic, as only relevant results are returned from the server).
      • If we want queries to be filtered client side, then its easy - just do a client side filter on the results returned from pushqa.
    • Its literally 1% of the pain, 1% of the boilerplate code, and 10x the usability of Tibco. I wrote RX wrappers for Tibco and it was a nightmare to get it correct (Tibco has more corner cases than a tub of dodecahedrons). Unless you need to connect to legacy mainframe clients, or want to multicast to hundreds of clients over UDP, or want to waste a kings random in licensing fees, this solution is far superior to Tibco.
    • Its free.
    • Its open source.

    enter image description here

提交回复
热议问题