My requirements
- Clients from different threads in the same process
- Server in a separate thread in the same process
- Clients produces messages to Server
- Server consumes messages by printing them out in the send-order by world clock on the source side, transparent to threading and any scheduling.
Answers to questions like
- zmq: can multiple threads PUSH in a simple PUSH-PULL pattern
- Pulling requests from multiple clients with ZMQ
give different opinions. So should I simply ask clients to PUSH to a single inproc PULL server created in another thread or use a router-dealer pattern?
And in one of the comments of the second question, I get STREAMER
pattern that seems to exist in pyzmq, but I'm not sure if it's the right solution or is it available with C API at all?
Aucun commentaire:
Enregistrer un commentaire