Hi All,

Am having a bit of confusion and appreciate any help from the community.

i want to manage a large number of connectors (which would connect to
different web servers). Am experimenting with Mina 2 and use the
AsyncHttpClient like code. Would we benefit in terms of performance/latency
if i were to add a ExecutorFilter ? 

and if yes, am a bit confused about how to specify the executorfilter to the
connector. There seem to be two ways to associate the socket with an
ExecutorFilter/Executors;
1.connector.getFilterChain().addLast("threadPool", new
ExecutorFilter(Executors.newCachedThreadPool()));
2. connector = new
SocketConnector(Runtime.getRuntime().availableProcessors() + 1,
Executors.newCachedThreadPool());

are they equivalent ? and shouldn't i be using the same ExecutorFilter (in
1) for every connector's filter chain that i create ?
and similarly, shouldn't i be passing the same Executor object while
creating the connector ?

thanks.
-- 
View this message in context: 
http://www.nabble.com/Managing-large-number-of-Connectors-tf4942096s16868.html#a14147575
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to