0
votes

I'm looking at using a shared core.async pub channel as the primary communication layer for my app as a way to introduce some indirection between components. I'm concerned about the behavior of pub, though, specifically the way that it silently drops items if there is no matching sub for a given topic. In a large system, this seems like it could be a real headache to debug. Is there any way to detect that an item got dropped, or at least to throw an exception in this case?

1
Why a pub opposed to a regular channel? - Alejandro C.
@AlejandroC. in order to enable routing messages to different components based on topic, and to enable multiple subscribers for the same message. - Derek Thurn
Provide a fallback topic (:default) in the topic-fn and always register a default sub handling that topic? - glts
@glts , how would you know when to return the :default topic from topic-fn? - Derek Thurn

1 Answers