<div>Hi all,</div>
<div> </div>
<div>I guess my fundamental question here is if, in theory at least, Netty provides a better asynchronous mechanism than the concurrent java package from java.util.concurrent.* in terms of performance. Does internally Netty use multi-threading, java.nio, or both, or neither?</div>

<div> </div>
<div>If Netty does better than java.util.concurrent.* for performance, is there any example, tutorial, which can guide me a little for replacing my current multi-threading process which I described in that previous email?</div>

<div> </div>
<div>Many thanks to you for sharing your expertise,</div>
<div>Jason<br><br></div>
<div class="gmail_quote">On Wed, Sep 2, 2009 at 12:11 PM, J. Mi <span dir="ltr">&lt;<a href="mailto:jmi258@gmail.com">jmi258@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi folks,</div>
<div> </div>
<div>Currently, my application&#39;s process flow logic is like this:</div>
<div> </div>
<div>-&gt; A controlling process receives one request for data which will be fetched from multiple online sources.</div>
<div>-&gt; The controlling process spawns multiple threads. Each of these threads will (1) use Apache synchronous commons httpclient to fetch the data; (2) parse the data; and (3)</div>
<div>    return the data to the controlling process.</div>
<div>-&gt; The controlling process joins all threads and return the combined data to the requestor.</div>
<div> </div>
<div>So basically, each thread uses a synchronous httpclient to fetch the data and then parse it.</div>
<div> </div>
<div>
<div>In reading org.jboss.netty.example.http.snoop package, I have the following question:</div>
<div>If I just replace the Apache&#39;s synchronous httpclient with Nettty&#39;s org.jboss.netty.handler.codec.http.* as the example does, will I be benefited performance-wise? I heard something about blocking I/O hurts multi-threading. If so, should Netty&#39;s package work better for me?</div>

<div> </div>
<div>Or should I actually get ride of the existing multi-threading by using Netty&#39;s framework? If so, which of your examples can be better referenced for my purpose?</div>
<div> </div>
<div>Thanks for your in advance,</div>
<div>Jason</div>
<div> </div>
<div> </div></div></blockquote></div><br>