Spring batch application that sends email to customers whose orders have been processed ie where status = 1
- Reader
- read all records from orders table where status = 1
- chunk size 100
- processor
- send confirmation email
- writer
- update email_sent column
- launch job from API
Dummy database can be found in test_database
directory
order_id | first_name | last_name | ... | status | |
---|---|---|---|---|---|
1 | Doro | Odda | [email protected] | ... | 1 |