Erix Yao wrote:
I see. But according to Scalable Java I/O, I think using a reactor pattern
and SEDA will help improve the performance.
MINA has been implemented based on the reactor pattern. The fact that
you have an executorFilter at the beginning of the chain is not related
to this pattern. It's just an enhancement.
As far as I know, the Listener interface is acting as a reactor, using
NioAcceptor provided by MINA, but the rest of the work except the network
handling are excuted in the thread pool. But the excution model is still the
first model in Scalable Java I/O. Any improvements can be done?
Tuning the number of thread accordingly with the number of processor you
use, that's pretty much all what you can do. Now, there are also most
certainly a hell lot of perf improvement we can do in MINA itself, but
this is not really related to a pattern.
Remember that a pattern by itself is not a guarantee for better
performance. It's mainly a better way to decouple concerns and allow a
better architecture.
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org