How to send bulk emails using Spring Batch

Imagine you had an e-commerce application where you’re implementing microservices architecture. Well, one of those microservices could be an email sending application where its only role is to send emails to the customers.