Event Driven Architecture, Exactly One Delivery, Kafka, Message Broker, Software Development.
consumers must avoid duplicate updates when updating the storage by using transactions. Let’s take MySQL as an example. START TRANSACTION; $RET = UPDATE event SET handled = true WHERE msg_id = 123 AND handled = false; if $RET == 1: Do whatever you want; COMMIT; Please notice in the first line after