Skip to content

RqueueMessageEnqueuer.enqueueUnique() is misleading #270

@cbot59

Description

@cbot59

What's not working?
The method RqueueMessageEnqueuer.enqueueUnique() has similar implementation to enqueue(). At first read I was thinking the behavior of enqueueUnique() is somewhat similar to the message-deduplication guides in which replacing value of the existing messageId. Meanwhile the .enqueue() behavior will reject or discard a new value if the messageId already exist. Am I understanding it correctly or there is something missing related to behavior of both methods?
I was wondering if it's possible to use method from RqueueMessageEnqueuer to support message deduplication scenario without having to register a MessageProcessor to the SimpleRqueueListenerContainerFactory considering this is a common usage scenario

A clear and concise description of what the bug is.

What're application dependencies ?

  • Rqueue Version: 2.13.2-RELEASE
  • Spring Boot Version: 2.7.18
  • Spring Messaging Version: -
  • Spring Data Redis Version: 2.7.18
  • Any other spring library dependencies and their version

How to Reproduce (optional)?

  • Steps to reproduce the behaviour
  • A sample reproducible code if possible.

Additional Details (optional)

Add any other context about the problem that would be helpful like OS, Redis, Docker etc
Redis: 5.1.13

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions