Skip to content

Commit 494dccf

Browse files
adrien-lesurodrotbohm
authored andcommitted
GH-722 - Fix broken link to Spring Data Domain Event publishing.
1 parent 5d6a7bf commit 494dccf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docs/antora/modules/ROOT/pages/events.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class OrderManagement(val events: ApplicationEventPublisher, val dependency: Ord
8989
----
9090
======
9191
92-
Note, how, instead of depending on the other application module's Spring bean, we use Spring's `ApplicationEventPublisher` to publish a domain event, once we have completed the state transitions on the primary aggregate.
93-
For a more aggregate-driven approach to event publication, see https://docs.spring.io/spring-data/data-commons/docs/current/reference/html/#core.domain-events[Spring Data's application event publication mechanism] for details.
92+
Note how, instead of depending on the other application module's Spring bean, we use Spring's `ApplicationEventPublisher` to publish a domain event once we have completed the state transitions on the primary aggregate.
93+
For a more aggregate-driven approach to event publication, see https://docs.spring.io/spring-data/commons/reference/repositories/core-domain-events.html[Spring Data's application event publication mechanism] for details.
9494
As event publication happens synchronously by default, the transactional semantics of the overall arrangement stay the same as in the example above.
9595
Both for the good, as we get to a very simple consistency model (either both the status change of the order _and_ the inventory update succeed or none of them does), but also for the bad as more triggered related functionality will widen the transaction boundary and potentially cause the entire transaction to fail, even if the functionality that is causing the error is not crucial.
9696

0 commit comments

Comments
 (0)