title: How to speed up processing multiple HTTP request
body: <p>I am working on a <code>Java</code> server which needs to send multiple <code>HTTP get</code> requests to another server and process the responses and wrap them up. Currently I am using <code>synchronous</code> way to do this like in <code>Java</code>:</p>
  
  <pre><code>for(Request request: requestList){
      Response response = client.send(request);
  }
  </code></pre>
  
  <p>This works, but it takes a long time if the <code>requestList</code>'s size is big, since it is doing it sequentially: send a request, wait for the response and then send next.</p>
  
  <p>I am wondering, is there a way to speed this up? I am thinking if using multiple thread to send multiple request will do the trick? Or maybe not, since the total response time is fixed for a certain amount of requests.</p>
  
  <p>Any idea or explanation, why or why not this will work will be helpful. I am using <code>Java</code>.</p>