title: What's the best way to parallelize a REST call?
body: <p>I'm working on some java code, which processes multiple REST calls</p>
  
  <pre><code>call1()
  call2()
  call3()
  ...
  </code></pre>
  
  <p>I want to parallelize these calls, but perform my main code synchronously.
  I made a POC with lamba and a parallel stream:</p>
  
  <pre><code>List&lt;Runnable&gt; list = new ArrayList();
  list.add(() -&gt; {call1()});
  list.add(() -&gt; {call2()});
  list.add(() -&gt; {call3()});
  list.add(...);
  
  list.parallelStream()
              .forEach(Runnable::run);
  </code></pre>
  
  <p>Do you have another solution?
  I also checked to use async calls from Jersey client instead, but this would need more code changes.</p>