'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 1:[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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1