Handling Duplicate Messages (Idempotent Consumers)
“At Least Once” message guarantees that a message will be delivered to a consumer once or many times. This means that you need to develop your consumers to be able to effectively handle duplicate messages. The term for this is having idempotent consumers. Not doing so could result in some bad outcomes for your system. For example, processing a message twice that creates an order, could create two orders. That would not likely be a good outcome. Why do messages get delivered more than once? How do you handle duplicates? Here’s how to make idempotent consumers and be resilient to… Read More »Handling Duplicate Messages (Idempotent Consumers)