Multiple Builders vs. Filters
GainDeveloper opened this issue · 2 comments
Hello!
Firstly thanks so much for the effort you put into all your work - I've used UniTask extensively and am just starting to try MessagePipe.
To explain my situation, I want to be able to publish/ subscribe in specific contexts, for example I have a bunch of players and I only want to publish/ subscribe to a specific player. Currently I just use GlobalMessagePipe.
What would be the 'expected' way to handle that? It seems like I can create a BuiltinContainerBuilder for each of these contexts, however this surely has quite a lot of overhead If I'm handling 1000s of contexts?
Alternatively filters seem like they would also work, but I'm unsure if this is correct usage of them since they'd be iterating over many Messages.
Any suggestion/ advice is appreciated :)
If there are that many, it's a good idea to use Key to discriminate.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.