Handling heavy tasks in Netty

Benoit Perroud benoit at noisette.ch
Fri May 13 01:34:41 EDT 2011


To handle heavy tasks (take long time to execute) you should add an
ExecutionHandler in the pipeline. This will free the I/O workers and
you will have a dedicated ThreadPool that you can fine tune to execute
your heavy tasks, just like in SEDA
(http://en.wikipedia.org/wiki/Staged_event-driven_architecture)



2011/5/13 Albert Nikola <albert.nikola at gmail.com>:
> Hi All,
>
> I'm fairly new to Java and my research led me to Netty. I read that Netty
> uses same design pattern with MINA and xSocket. Does this mean the Netty is
> complete reactor pattern NIO framework and is concurrency and
> synchronization issue in threading already taken care of? I'm wondering that
> if the task to process message is heavy then how should I handle this?
> Please help me to get enlightened. Thanks.
>
> Albert
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>


More information about the netty-users mailing list