[zeromq-dev] match request and reply
Daniel Krikun
krikun.daniel at gmail.com
Wed Jul 4 12:22:08 CEST 2012
Hello,
I'm building a service-oriented system. A client sends a request to create
some entity on the server. The server creates the entity and then replies
with the entity's handle, so that the client can send more requests
regarding the entity (i.e. modify/delete it).
I need to match the request to create an entity with the reply containing
its handle (otherwise a client could potentially confuse between different
entities' handles).
Is there any recommended way do that in zeromq? Any 'best practices'?
If I understand that correctly, using REQ-REP socket combination ensures
that the reply will match the request, however:
1. The server is multi-threaded and does not ensures
first-come-first-served policy
2. Some request are left without reply intentionally, which is not possible
with REQ-REP, so I actually use DEALER-DEALER combination.
Regards,
--
Daniel Krikun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120704/1c2df728/attachment.htm>
More information about the zeromq-dev
mailing list