-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
- Refactor EventService to TransactionService
- Get EventBus from Context (case 1) otherwise create new one and put in Context (case 2)
- Fire events if (case 2), "commit" events (enqueue "compensation" events, apply events to DB)
3.1. In case of failure, "rollback" transaction (execute "compensation" events, in case of error > log & panic)
3.2. In case of success, fire TransactionCommitted event - Send notifications by TransactionCommitted event
Metadata
Metadata
Assignees
Labels
No labels