[GH-ISSUE #738] [FEATURE REQUEST] Support publish & subscribe for steaming messages to the queue #1377

Open
opened 2026-03-07 22:09:03 +03:00 by kerem · 1 comment
Owner

Originally created by @FogDong on GitHub (Sep 8, 2023).
Original GitHub issue: https://github.com/hibiken/asynq/issues/738

Originally assigned to: @hibiken on GitHub.

Is your feature request related to a problem? Please describe.
We want to use asynq to stream some messages, once the server publishes the message in the channel, the client can get the message.

Describe the solution you'd like
Add Publish to publish the message to the channel, and GetSubPub to directly get the sub pub for the client to handle the response.

PR: #736

Describe alternatives you've considered
It is also great if we can wrap GetPubSub to Subscribe to return the message.

Additional context

Originally created by @FogDong on GitHub (Sep 8, 2023). Original GitHub issue: https://github.com/hibiken/asynq/issues/738 Originally assigned to: @hibiken on GitHub. **Is your feature request related to a problem? Please describe.** We want to use asynq to stream some messages, once the server publishes the message in the channel, the client can get the message. **Describe the solution you'd like** Add `Publish` to publish the message to the channel, and `GetSubPub` to directly get the sub pub for the client to handle the response. PR: #736 **Describe alternatives you've considered** It is also great if we can wrap `GetPubSub` to `Subscribe` to return the message. **Additional context**
Author
Owner

@hibiken commented on GitHub (Sep 18, 2023):

@FogDong Is this a feature request to subscribe to a topic so that multiple consumers can receive the same message?

<!-- gh-comment-id:1722672870 --> @hibiken commented on GitHub (Sep 18, 2023): @FogDong Is this a feature request to subscribe to a topic so that multiple consumers can receive the same message?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#1377
No description provided.