On Fri, Oct 15, 2010 at 1:08 AM, Emmanuel Lecharny <elecha...@gmail.com>wrote:
> On 10/15/10 12:37 AM, Zlatko Josic wrote: > >> Hi, >> >> I've find ExecutorFilter. Is this solution correct ? >> > Depends. It can helps if you have costly operations done at the end of the > filter's chain, that's for sure. > *Yes we have it. Write to the database. Communication to external systems.* > > But you can also chose to have more Ioprocessor on the front, depending on > how many CPU you have. > *We have it. acceptor = new SocketAcceptor(Runtime.getRuntime().availableProcessors() + 1,Executors.newCachedThreadPool());* > > Note that Executor can leads to some issue if you are under heavy load, > because all the incoming messages will be stored in memory on a queue until > a Thread is available. > *Ok. At this moment we have problem with communication to external system. We communicate with several diffrent systems. When one of these* *systems have problems in communication( holds our connection until timeout) after some time out system gets slowdown. * > > So both solution are possible. > > > > -- > Regards, > Cordialement, > Emmanuel Lécharny > www.iktek.com > > *Thank you very much. We will test this solution. It looks promising for now :)* * * *Zlaja*