river icon indicating copy to clipboard operation
river copied to clipboard

Expose LISTEN pubsub functionality

Open bgentry opened this issue 2 years ago • 2 comments

We already have a robust LISTEN/NOTIFY implementation internally. It would potentially be useful for a variety of user-space coordination activities.

Expose it by wrapping our internal notifier package in a minimal public API. Ensure that we validate topic names in the process.

TODO: add test coverage

bgentry avatar Dec 23 '23 18:12 bgentry

Will adding this feature allow us to be notified of a completion of a job, I want to send a realtime update of the status of the job to the fronetend and to other parts of the backend. Think this should be already possible right? Does this add something else?

EDIT: https://riverqueue.com/docs/subscriptions

I completely missed this^ apologies

geekodour avatar Aug 25 '24 19:08 geekodour

@geekodour Yeah, exactly. The subscriber interface is the way to go for that.

brandur avatar Aug 26 '24 14:08 brandur