spring-projects / spring-projects/spring-modulith

Detect events to be externalized not published within a transaction

Open
#1,123 3 comments 1 reaction 1 assignee View on GitHub

@odrotbohm is already working on this.

Since Mar 23, 2025.

in: event publication registry type: improvement
Dominant language
Java
Stars
1.2k
Forks
222
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.