We use the Request/Reponse pattern for a Redis MessageQueue. The decumentation states:
Note that the HelloResponse will get put back on a ‘transient’ message queue, mq.HelloResponse.outq with a maximum message limit of 100 (by default). You can subscribe to this queue to get a notification and do further processing, such as recording the number of messages handled. Or you can clear the message NotifyOneWay option to prevent this.
We do not subscribe to this queue, but would like to check the queue regularly to see if the (last 100) messages are returned correctly. After some testing we found over 1 million Response DTOs in the response queue… How do we make sure the queue will only contain 100 messages maximum?