directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oscar Herrera" <>
Subject RE: [mina] Upgrading from Netty 2.1 to Mina
Date Wed, 14 Sep 2005 18:13:53 GMT
Hello Jullien. Thank you so much for your interest, I was wondering if in the case of your
server you had some cases where for one request could be more than one response, I mean the
client sends one message, and the server sends a response for that message and for example
two more messages at the same time (this is what I say is sequential on my code, this is were
I think is the problem, many messages getting to Netty, then it takes many channels to send
all them, so I have no guarantee that they get to the client on the right order.

Thank you so much in advance,

Oscar Herrera

-----Original Message-----
From: Julien Vermillard [] 
Sent: Wed, Sep 14, 2005 10:42 AM
To: Apache Directory Developers List
Subject: Re: [mina] Upgrading from Netty 2.1 to Mina

Le mercredi 14 septembre 2005 à 09:51 -0400, Oscar Herrera a écrit :
> Hello everybody. Actually starting this year we decided to use Netty
> to support a server we are currently building, about eight months
> later when we were building the first application to run into this
> server we realized we are having problems with the message ordering, I
> mean, code is written in a sequential order, but anyway events are
> being triggered in a random order. Analyzing the issue we realized the
> problem is related to the threading pool Netty uses, actually it is
> something like many events being triggered in a synchronous way, but
> when they get to Netty it might use all available resources to send
> all the answers for all the events by different channels (network
> connections), so this is causing the client application to receive the
> messages in the wrong order. I changed the number of IoThreads and
> this solved the issue, but at the same time this reduced the
> performance of the server as I think it was expected. 
> So basically we have 2 approaches to solve this issue: modify Netty
> classes trying to link each client application with one channel (with
> all the considerations this might lead), or upgrading Netty by Mina.
> So here is where my question arises, have any one have any experience
> like this or know if the latest version of Mina might solve this
> issue?. Actually the answer to this question is very important because
> of the time each approach might take, so we'd like to have some
> confidence about the way we decide to proceed to give a solution to
> this issue.
> Thank you so much for your help,

Hello, I think you should try to use the netty2 codec for Mina 0.7 it
never procduced the behaviour you are reporting on my application.


View raw message