How to load balance Http traffic based on url
<p>We use a cluster of <a href="https://docs.oracle.com/javase/8/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/HttpServer.html" rel="nofollow">HttpServers (bundled with java)</a> to handle http requests. Some percentage of our traffic is critical. We classify our http traffic as critical and non-critical based on some request parameters. </p>

<p>We want to dedicate some http servers for critical traffic. What is the best way to identify http request as critical/non-critical and route the request to appropriate server ?</p>

<ol>
<li><p>Is it possible to route the http request to appropriate server without informing the caller (who invoked http request). </p></li>
<li><p>I know that we can redirect caller with http 3xx response code. Caller has to make another call - is it possible to do avoid this ?</p></li>
</ol>