Good day,

I built a UDP Server using Mina, however i need to async'ed several operations; Currently, i have exactly one class extends IoHandlerAdapter called MainHandler, i wrote all of operations in this class.

Now, within Bootstrap building, i notice that there are several points that using Thread(pool),

#1 acceptor = new NioDatagramAcceptor(Executors.newCachedThreadPool());
#2 DefaultIoFilterChainBuilder chain = acceptor.getFilterChain();
chain.addLast("threadPool", new ExecutorFilter(Executors.newCachedThreadPool())); #3 Also, my SPV write a class that extends Thread to enable ThreadedMainHandler class (see above)

I can't find clear explanations of what does the different between using thread like the above, i mean, what is the DO and DON'T here;
Did i do this wrong? or maybe i dont need to do one of them?

Currently this application is running well (around 10k TPS per core, so in production, one deployment can handle around 80-100k TPS), however i would like to see the explanations of those points if anyone don't mind

Thanks
Bobby

--
-----------
Bobby R. Harsono
Software Developer
Tricada Intronik - Bandung

Reply via email to