I want to make a system with several communicating processes.
The master process is going raise events. There will be different events each containing structured data. Couple of slave processes are going subscribe to the events, receive the data and invoke appropriate handlers. There are two considerations about my case.
- I am NOT concerned about security since there will be no 3rd party services.
- I AM concerned about performance.
People suggest using message queues like Zero MQ in this situation. I'm a bit confused the way it should be implemented. As far as i understood ZeroMQ can only send\recieve raw string data.
Should I pack my data into the string (e.g json or xml) on the publisher side, unpack data manually on subscriber side and filter only necessary messages?
If there is a better way to approach my problem I would by very glad to hear it.