Am 15.08.2014 08:22, schrieb Alexander Christian:
Personally, I think it's a good idea to keep the code in IoHandler very small and simple, and forward the "work" to a dedicated thread-pool/executor-service.

In my code, all the IoHandler is doing, is to check which kind of message is received and decide what to do next. The actual work on the message is done in a thread pool. So my IoHandler is just a kind of message-dispatcher. Small, simple and efficient. This ensures - at least in my scenario - the highest possible message throughput on MINA side of the code.

br,
Alex
And to give some numbers: My code - a kind of RMI replacement - is able to process almost 40k method invocations per second. And because a method call requires sending one message and receiving the invocation result, it's 40k messages beeing sent, and 40k messages beeing received. 80k messages processed within 1sec on server side...

For more details, see: http://dev.root1.de/projects/simon/wiki#Performance

So all in all: I'm very happy with the performance of Apache MINA.

br,
Alex

Reply via email to