title: RestAPI service call from Spark Streaming
body: <p>I have a use case where I need to call RESTAPI from spark streaming after messages are read from Kafka to perform some calculation and save back the result to HDFS and third party application.</p>
  
  <p>I have few doubts here:</p>
  
  <ul>
  <li>How can we call RESTAPI directly from the spark streaming.</li>
  <li>How to manage RESTAPI timeout with streaming batch time.</li>
  </ul>