1

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?

1 Answers1

1

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.

Gabriele Santomaggio
  • 21,656
  • 4
  • 52
  • 52
  • 1
    How can we do that from the client-side when we produce/consume the messages? we're using java and we can't add the header in rabbitmq stream Environment producer – Rawan AlKhalawi Apr 23 '22 at 12:55
  • 1
    @RawanAlKhalawi It's not possible to control the credit mechanism in the stream Java client at the moment. We're open for discussion on how to make this possible. A better channel to discuss this would be the [RabbitMQ Mailing List](https://groups.google.com/g/rabbitmq-users) or a [discussion](https://github.com/rabbitmq/rabbitmq-stream-java-client/discussions) in the stream Java client GitHub repository. Thanks. – Arnaud Cogoluègnes Apr 25 '22 at 09:42