Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-975

Aggregate event publication should happen after the interaction with the repository

    XMLWordPrintable

    Details

    • Sprint:
      Ingalls GA

      Description

      We currently publish events before we actually invoke the save(…) operation on the repository. This leaves the risks of event listeners trying to lookup the aggregate again and not see the pending changes to its state.

      We should flip those operations to make sure an exception thrown by the repository method would already prevent the event publication.

        Attachments

          Activity

            People

            Assignee:
            olivergierke Oliver Drotbohm
            Reporter:
            olivergierke Oliver Drotbohm
            Last updater:
            Oliver Drotbohm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: