Microservices, Microservices Pattern, Transactions, Transaction Management, Distributed Systems.
events and database writes must be idempotent (as in every microservice regardless of the pattern you are using). Listen to Yourself Pattern — https://medium.com/@odedia/listen-to-yourself-design-pattern-for-event-driven-microservices-16f97e3ed066 - The risk of consistency is more since db write