-
Notifications
You must be signed in to change notification settings - Fork 51
Labels
- Developer -Torrust Improvement ExperienceTorrust Improvement ExperienceCode Cleanup / RefactoringTidying and Making NeatTidying and Making Neat
Description
Switch from mpsc to broadcast channel. That will allow multiple event listeners.
- mpsc: multi-producer, single-consumer channel. Many values can be sent.
- broadcast: multi-producer, multi-consumer. Many values can be sent. Each receiver sees every value.
It will make the code a little bit more complex becuase we have to handle "Lagging" but evens with one one subscriber are not very useful. They are limited for collecting global metrics or do other stuff but in a centralized way. Multiple listeners allows decoupling logic associated to events.
cc @da2ce7
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- Developer -Torrust Improvement ExperienceTorrust Improvement ExperienceCode Cleanup / RefactoringTidying and Making NeatTidying and Making Neat