Loading lesson…
Level 1 · Apprentice0 XP
Publish events, consume them safely, and handle failures with retries and dead-letter topics.
Step 1 / 6
ProblemAn order service saves an order and then sends an event. Sometimes the app crashes in between: the order exists but no event. Sometimes a consumer processes the same event twice and ships two parcels.
← → step
Before this: Scheduled jobs and async work
🛠️ 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.With Testcontainers Kafka, publish OrderPlaced events keyed by order id, consume them with @RetryableTopic and a dead-letter handler, and prove a duplicate event creates only one parcel.