There are a lot of factors and variables involved. First let's start with the basics...
- 0MQ version and which language binding you are using if any, along with respective version numbers. - Operating systems involved. Now in 0MQ you could send messages in two ways, either you send a message asynchronously or synchronously, in the former case if you pushed 10 messages in the asynchronous queue without blocking on the send() operation, it is very likely that you terminated the client before some messages hit the wire. A good indicator for this phenomenon is that you receive what seems to be a random number of messages at the receivers end sporadically over the number of client runs. Also code snippets would help clarify the problem. On 05/28/2012 12:58 PM, Arun Dobriyal wrote: > How do you implement queues in the ZeroMq, When I tried implementing a client > and server in Zeromq, I dont know how zeromq implements queue if explicitly.. > > I implemented the basic example for "Ask and ye shall receive", I tweaked the > example so that there is no ack messages as sent in that example (so clients > only send and server only receives), > > the client sends ten messages one by one and exits, and i made the server > slow( > made sleep time of server to 1) > > As I print what the server received, the server doesnt seem to get all the > messages sent by the client.. > > Initially I thought probably the server would queue the client requests in > some > kind of queue, but from my code, it doesnt seem to work that way (messages are > lost)!! > > Any suggestions.. > > Thanks, > > Arun > > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev -- Amr Ali
signature.asc
Description: OpenPGP digital signature
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
