Search code examples
javarabbitmqrabbitmq-stream

Add delay in consuming messages in rabbitmq stream


i'm using rabbitmq stream and i need to add a delay between messages because the stream handles messages very fast.

how can I do that?


Solution

  • EDIT RabbitMQ stream itself sends the messages faster it can but there is a credit mechanism to avoid consumer throttling. The client sends the credit to get more messages. At the moment this feature is not exposed we are working on it, so atm it is something you need to do client-side when you produce/consume the messages.