This repository contains the sample code for my talk "A Deep Dive into Spring Application Events".
The code base is organized following the three major parts of the talk
-
Fundamentals (
….fundamentals
) — contains samples of the fundamental API building blocks likeApplicationEventPublisher
,ApplicationListener
,@EventListener
. It also shows the usage of the Spring Data aggregate event publication support. -
Transactions (
….transactions
) — contains samples for using@TransactionalEventListener
. The tests contain cases for successful execution and error scenarios (see the demo rundown for details). -
Architecture (
….architecture
) — contains a comparing sample for how to replace direct component interaction with event publication.
Warning
|
Parts of this code are currently based on prototypical implementations that rely on snapshots, i.e. it might temporarily not build due to some code rearrangements. |
-
Slide deck — https://speakerdeck.com/olivergierke/a-deep-dive-into-spring-application-events
-
Moduliths — https://github.com/odrotbohm/moduliths
-
Spring Domain Events — https://github.com/odrotbohm/spring-domain-events