-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom keys or pattern keys #78
Comments
my solution is failing on |
Your solutions messes with the ordering of the messages which should not happen. The message ids generated should really not matter to your application. You will receive the ID on a sendMessage and use it to delete / finish the message. Why would you need custom ids here? |
if i want to query on tasks like in my example above
I can query how many tasks are pending for |
You can't and you should not! If you need that functionality you should
Let's say you need to get all messages for user1 because the user gets deleted and you need to delete all his messages. Then your application should simply discard every message for user1. That's way more elegant than finding all messages and delete them. RSMQ is a message queue. And should be used as a message queue. It's not a database that listens to queries (all messages where x=y) or something like that. |
Thank you for explanation. But don't you think this can help users to track or at least get the idea like |
I sure see that this might help in your described case. But this is not what this project is about. The |
Thank you for your time. |
Is there any way to create or define custom task key or define pattern/prefix for each task ?
For examples
app1:user1:jobtypeA:{serial}
where serial can be a hash like before or any integer numberThank you
The text was updated successfully, but these errors were encountered: