Loading lesson…
Level 1 · Apprentice0 XP
@Scheduled, @Async, and safe background jobs when you run several instances.
Step 1 / 5
ProblemA nightly job sends invoices. The app scales to four instances, and each one runs the job. Customers get four emails.
← → step
Before this: Reactive Spring with WebFlux
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Write a nightly job that sends reminders, protected with ShedLock, and make it idempotent with a 'sent_at' column. Simulate a crash halfway and show the rerun skips sent items.