Hi there,
I am new why zmq and this is my first time with independent processors.
I'm not sure I can do what I want with ZMQ, that's why I would like your opinion.
Here is my case:
- First process (1): it runs continuously, it contains traffic that changes over time.
- Second process (2): it is a solver that ensures that there is no conflict in my traffic.
Currently, I use files to communicate my two processes. (1) refreshes every 10 seconds a traffic file and (2) reads it if it exists when it starts a new algorithm generation (I skip the details).
(2) very regularly updates a solution file, which (1) will read every 10 seconds.
These reads/writes are asynchronous and my current version is probably not 100% stable because you have to constantly check that there is no write when one reads and vice versa… You see.
I wanted to know if a double PUSH - PULL operations could work here, in your opinion?
A small detail bothers me: my solution file can change before (1) reads it (because a better solution is found) and therefore I would have to be able to delete elements in the queue if they have not yet been read …
Thank you in advance for your comments/advice/opinions.
Sier