[zeromq-dev] Design Suggestion for simple app using zmq
Diffuser78
diffuser78 at gmail.com
Fri Jul 6 17:08:24 CEST 2012
There is no particular requirement for the ACKs to be async. The only
requirement is that I should be able to may server's ACK to the message
that client had sent ? Is there a deterministic way to do that ?
I am not planning to use multiple threads.
Any other thoughts are welcome.
Many thanks.
On Thu, Jul 5, 2012 at 7:52 PM, Joshua Foster <jhawk28 at gmail.com> wrote:
> Are the ACK's async? If they are not, you can use the REQ socket instead.
> Are you using multiple threads?
>
> Joshua
>
> On Jul 5, 2012, at 7:58 PM, Diffuser78 wrote:
>
> Anyone ?
>
> On Thu, Jul 5, 2012 at 8:23 AM, Diffuser78 <diffuser78 at gmail.com> wrote:
>
>> I have a client and a server app. Client needs to send 1000 lightweight
>> (5KBs) messages per second to the server. Client also wants an ACK from
>> server that server got the msg that client sent.
>>
>> Here is what I have designed. Please let me know your thought in case you
>> see incorrect usage of the patterns.
>>
>>
>> CLIENT (*DEALER* socket)
>>
>> Do the following in while loop
>>
>> 1. Get messages to send
>> - Send then using zmq_send()
>> 2. zmq_poll() for fds ready for reading
>> - Use zmq_recv() to receive the messages
>>
>>
>> SERVER (*ROUTER* socket)
>>
>> Do the following in while loop
>>
>> 1. zmq_poll () for fds ready for reading
>> - Use zmq_recv() to receive the messages
>> 2. Perform Processing (Business Logic)
>> 3. Get messages to send
>> - Send then using zmq_send()
>>
>>
>> Thanks.
>>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120706/bee3cbad/attachment.htm>
More information about the zeromq-dev
mailing list