bootiful-media-mogul / mogul-service

0 stars 1 forks source link

Extract out NotificationEvents #20

Closed joshlong closed 3 months ago

joshlong commented 3 months ago

Basically it’s a utility class whose one instance is managed by spring and stores its references (ApplicationEventPublisher) in static atomic variables.

it can have methods to publish notifications in the current transaction or via an Executor#call(Runnable) that in turn has a TrabsactionTemplate so it starts a tax in a separate thread. This way the Modulith mechanism that ties code to a TX synchronization won’t matter

I need this all to support #13