dependency-track icon indicating copy to clipboard operation
dependency-track copied to clipboard

Make notifications transactional

Open nscuro opened this issue 2 years ago • 1 comments

Current Behavior

Notifications are currently not transactional, meaning that in certain situations notifications may be dispatched despite the persistence operation that triggered them failed. In case the persistence operation is retried, duplicate notifications may be sent. Both situations could cause consistency issues in systems that consume notifications.

Proposed Behavior

First and foremost, decide whether this is a problem that we need or want to tackle. Fire-and-forget notifications are very low in complexity, everything we do to bind them to transactions will introduce new complexity that simply may not be worth it.

A common pattern to solve this issue is the transactional outbox.

Checklist

nscuro avatar Apr 15 '23 17:04 nscuro

Implemented for v5: https://github.com/DependencyTrack/hyades-apiserver/pull/1508

nscuro avatar Oct 27 '25 13:10 nscuro