spring-modulith
spring-modulith copied to clipboard
Detect events to be externalized not published within a transaction
trafficstars
If an event selected for externalization is published outside a transaction, the externalization does not get triggered as it's executed via a @TransactionalEventListener. As we already deploy a dedicated multicaster handling all events, we could detect that problem and issue a warning log hinting at the problem.