So when you either send messages you will take them from a queue and when you read messages you will put them in a queue?
This seems reasonable, but I feel that I am missing someting here. On Fri, Nov 14, 2008 at 8:22 PM, Boubennec Aurelien <[EMAIL PROTECTED]> wrote: > Hi all, > > I am new at Mina. > > On both server and client side, there is a loop running at a certain > frequency. > > I just wonder which way is the best to read received messages on both sides > to get a pretty low latency. > > > What I plan to do is to add the messages into a SynchronizedQueue . > I would read the messages by adding a "readQueue()" method in the loops. > I would also set a maximum amount of time for "readQueue()" for polling so > the loop-frequency isn't disturbed. > > Is it a good idea or anyone has a better solution ? (I guess my solution is > pretty naive though) > > > Thanks a lot in advance for your help. > > orel > > >
