Handle Duplicate Messages With Idempotent Consumers | Idempotency
☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt 📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ 🚀 Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic In this video, I will show you how to implement idempotent event handlers with MediatR. We will use the Decorator pattern to introduce our Idempotent event handlers on top of existing event handlers. The idempotent event handlers will first check if the event has been processed and only proceed if it wasn't. Idempotent Consumer - Handling Duplicate Messages https://www.milanjovanovic.tech/blog/idempotent-consumer-handling-duplicate-messages Join my weekly .NET newsletter: https://www.milanjovanovic.tech Subscribe for more: https://www.youtube.com/c/MilanJovanovicTech?sub_confirmation=1 Chapters 0:00 What is Idempotency? 0:47 Multiple domain event handlers 2:31 The solution: Outbox message consumer 3:17 Implementing IdempotentDomainEventHandler 6:48 Configuring the Decorator pattern 7:34 How it works
☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt 📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ 🚀 Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic In this video, I will show you how to implement idempotent event handlers with MediatR. We will use the Decorator pattern to introduce our Idempotent event handlers on top of existing event handlers. The idempotent event handlers will first check if the event has been processed and only proceed if it wasn't. Idempotent Consumer - Handling Duplicate Messages https://www.milanjovanovic.tech/blog/idempotent-consumer-handling-duplicate-messages Join my weekly .NET newsletter: https://www.milanjovanovic.tech Subscribe for more: https://www.youtube.com/c/MilanJovanovicTech?sub_confirmation=1 Chapters 0:00 What is Idempotency? 0:47 Multiple domain event handlers 2:31 The solution: Outbox message consumer 3:17 Implementing IdempotentDomainEventHandler 6:48 Configuring the Decorator pattern 7:34 How it works