title: Java - Calling API for 500k rows of data. Spring batch or Websocket?
body: <p>I have two CSV files, one containing 500k+ customer records. I am attempting to convert each row to a customer object and do a POST to an API which I am also responsible for. </p>
  
  <p>This approach has the obvious problem of firing of 500k+ HTTP calls and causing maximum HTTP connections to be reached.</p>
  
  <p>I have had two suggestions thrown at me, opening up a WebSocket or using Spring Batch. Is this a good use case for opening a WebSocket and sending messages rather than opening multiple HTTP connections? Or is it better to go the more traditional route of using spring batch?</p>