title: Perform operation by reading file in Spring Boot
body: <p>I have an action script(flat text file) in which every line is one operation. I would like to read this file line by line and trigger a operation for each line to perform the action defined in the file.</p>
  
  <p><strong>Question</strong> </p>
  
  <p>Is there any design pattern or architecture perfectly suitable for this purpose ? Or whats the best way to do this?</p>
  
  <p>I was thinking about creating thread for each single operation. Is that over killing the system?</p>
  
  <p><strong>NOTE</strong></p>
  
  <p>Some operation defined in file are very resource intensive while others are not.</p>