-
Notifications
You must be signed in to change notification settings - Fork 344
0006 execution to broadcast events
This ADR has been recorded retrospectively.
Accepted
During execution, we need to handle reporting and re-run functionality. Reporting and re-run functionality is tightly coupled with execution. As and when there is a change in reporting or re-run functionality, execution also needs to change.
Remove this tight coupling between execution and reporting/re-run functionality. Instead use publish-subscribe pattern.
Gauge needs to broadcast events that occur during execution. Reporting and re-run can subscribe to relevant events and perform their respective functions. This removes their tight coupling with execution package.
Any functionality can now subscribe to events published during execution. Execution need not change to accommodate any new functionality.
Copyright © ThoughtWorks Inc.