[zeromq-dev] Asyncronous clients

Harald Achitz harald.achitz at gmail.com
Sun May 7 08:05:03 CEST 2017


if messages can come out of order but orders matter for you than add a
message id at the end, or between the address package and the message
package of the multi part message

2017-04-24 22:31 GMT+02:00 Андрей Олейник <andrey.oleynik at me.com>:

> Justin,
>
> Identity determine socket. In my case it is DEALER socket which connects
> to ROUTER sockets with the same identity.
> DEALER wouldn't receive messages unless identity set correctly. So I
> think, I'm using correct address.
>
> The problem is that I don't know how to match request with response on the
> same socket in case when order of responses is not defined.
>
> Andrey
>
> пн, 24 апр. 2017 г. в 21:54, Justin Karneges <justin at karneges.com>:
>
>> Hi Andrey,
>>
>> ROUTER sockets read the first part of the message as the recipient
>> address. Is it possible you're using the wrong address when sending?
>>
>> Justin
>>
>> On Mon, Apr 24, 2017, at 01:08 AM, Андрей Олейник wrote:
>>
>> Hello,
>>
>> I have a chat application that receives messages through WebSockets and
>> processes them on workers connected by a DEALER-ROUTER pattern. Chat sends
>> and receives ZMQ messages through one DEALER socket. It has been working
>> until I added second worker (ROUTER socket). From now there is not guaranty
>> that client will receive its own response.
>>
>> As I understand the solution could be to use separate DEALER socket for
>> each WebSocket connection or use one socket with a wrapper that will handle
>> sharing across WebSockets connections.
>>
>> What is the best way to have it done?
>>
>> Thank you,
>> Andrey
>>
>> *_______________________________________________*
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20170507/f11b5f1b/attachment.htm>


More information about the zeromq-dev mailing list