Have you heard of the observer pattern?
The observer design pattern is one of the patterns we're often exposed to early on in programming.
This pattern allows observers to observe observables.
(Clear as mud, right?)
Said another way, the different components of your system can listen for notifications, changes, and events by following this pattern!
Check out the article:
https://www.devleader.ca/2023/11/17/examples-of-the-observer-pattern-in-c-how-to-simplify-event-management/