Skip to content

client side implementation for queue notifications #3

@ChuckHend

Description

@ChuckHend

Notifications were added to pgmq server side in pgmq/pgmq#432. This feature notifies clients when new messages are inserted into the queue tables. We can add an implementation around this to the client side API to make it polling more efficient. There's two cases where continuous polling will still be required:

  1. user is sending messages with a VT delay. When using a VT delay, there will be a notificaiton when the message reaches the queue but message will not be immedaitely available.
  2. when the message above (or any message) has its VT expire, there is no notificaiton.

There are tests written on the server side project that can be used as a starting point for how to use the notification feature.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions