<div dir="ltr">My line of thought was, if every request requires a blocking DB call, why incur the cost of switching threads within a request, if I can instead simply increase the number of IO threads without any adverse effect.<br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">--<br>Chandra Sekar.S</div></div>
<br><div class="gmail_quote">On Fri, Jul 8, 2016 at 5:54 PM, Bill O&#39;Neil <span dir="ltr">&lt;<a href="mailto:bill@dartalley.com" target="_blank">bill@dartalley.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This is exactly what the worker thread pool is built for why would you want to use the IO threads instead? The IO threads are for reading / writing to the socket of the HTTP request. All blocking operations SHOULD be dispatched to worker threads.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Jul 8, 2016 at 8:20 AM, Chandru <span dir="ltr">&lt;<a href="mailto:chandru.in@gmail.com" target="_blank">chandru.in@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><span style="font-size:12.8px">If I have a HTTP service where every request requires a blocking JDBC call, is it acceptable to increase the number of IO threads to a large value (say, 10*cores) instead of dispatching to worker thread pool on each request?</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Will configuring such a large number of IO threads lead to any adverse effect on throughput or latency?</div><div style="font-size:12.8px"><br></div><div><div data-smartmail="gmail_signature">--<br>Chandra Sekar.S</div></div>
</div>
<br></div></div>_______________________________________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br></blockquote></div><br></div>
</blockquote></div><br></div></div>