<< Back to previous view

[ASYNC-46] Add optional default channel to 'pub' Created: 09/Dec/13  Updated: 07/Dec/16

Status: Open
Project: core.async
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Major
Reporter: Steffen Dienst Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None

Attachments: Text File 0001-Add-default-channel-for-pub.patch    
Patch: Code and Test


If there is no subscriber for a topic the message gets silently dropped. I suggest to add an optional default channel that receives all those messages. The default channel can then be used in scenarios, where the complete set of topics might be unknown beforehand.
This functionality resembles the 'dead letter' pattern in messaging systems.

Comment by Terje Norderhaug [ 07/Dec/16 6:28 PM ]

I second supporting a default channel for pub. Use cases include:

1. Report missing/unsubscribed topics, aiding in development and debugging.
2. Catch messages entering before topics have been subscribed, providing a means to expose messages otherwise dropped due to late/delayed subscriptions.
3. Chain publications with different topic-fns.

Generated at Tue Mar 26 15:31:51 CDT 2019 using JIRA 4.4#649-r158309.