EventAggregator and 0MQ/ZMQ

Topics: Prism v4 - WPF 4
Oct 11, 2012 at 4:37 PM

Hello everybody,

I just want to ask if anybody thought about it or already modified/extend the EventAggregator to solve this issue.

It would be great if an Event can be published using 0MQ.
For example:

LAN1
.. PC1
.... Application1.Module1.Publish<HelloEvent>("Hello From PC1");
.... Application1.Module2.Subscribe<HelloEvent>(OnHello);
.... Application2.Module1.Subscribe<HelloEvent>(OnHello);
.. PC2
.... Application1.Module1.Subscribe<HelloEvent>(OnHello);
LAN2
.. PC1
.... Application1.Module1.Subscribe<HelloEvent>(OnHello);

Means we can Publish/Subscribe through AppDomains and further.

Any suggestions are appreciated.

Kind regards

 

 


 

Developer
Oct 11, 2012 at 6:56 PM

Hi,

Based on my understanding, 0MQ/ZMQ is a library designed to send messages asynchronously in distributed or concurrent applications (that is, external communications between other process or computers.)

I am not aware of any work regarding a modified version of the EventAggregator to be compatible with 0MQ, but in my opinion, as the objective of the current EventAggregator implementation (that is, sending messages between loosely coupled components inside an application) is very different from the objective of the 0MQ library, it might not be possible to adapt the EventAggregator to this purpose.

Rather than modifying the EventAggregator, I believe it could make more sense to implement a completely new service to use the 0QM library and build a bridge between the EventAggregator and the service to translate events to 0QM messages and backwards.

Regards,

Damian Cherubini
http://blogs.southworks.net/dcherubini

Oct 12, 2012 at 9:03 AM

Thank you. That´s the point.

Regards,
Carlo