title: Determine the best chunk size in spring batch
body: <p>I’m working on a spring boot project which uses spring batch. I’ve got so many questions on my mind regarding spring batch, here they are :</p>
  
  <ol>
  <li>Is there any convention of how to determine the best chunk size?</li>
  <li>What’s affected by the chunk size in term of performance? For example, the chunk size affected RAM usage or else.</li>
  </ol>
  
  <p>I’ll really appreciate any answers/opinions because I’ve searched everywhere for the answers of those questions and still I haven’t found any good answers.</p>