Skip to content
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

Add delay to message #45

Open
tomaswarynyca opened this issue May 22, 2024 · 1 comment
Open

Add delay to message #45

tomaswarynyca opened this issue May 22, 2024 · 1 comment

Comments

@tomaswarynyca
Copy link
Contributor

Any idea how to delay messages to be proccesed?

Adding this plugin would be the only option?
https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq

@pmorelli92
Copy link
Owner

Adding this plugin would be the only option?

In what RabbitMQ is aware, I think it is. In some previous workplace what I've done to solve this was to store the messages in a database table and loop through them, only firing them at the correct time.

But if you want to go with the plugin approach, we can probably extend how the Publish looks like in order to accept an option such as WithHeader(key, val) to add custom headers to the publish function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants