Closed darrenli2 closed 4 years ago
I apologize for my late response.
The callback fn is provided by the message queue to acknowledge/unacknowledge your message. In other words, it is the way that you can tell the MQ that your message has been either successfully consumed or not.
Please refer to:
for more details.
Regarding your second question, at the API level of the MQ there is no method to check if the queue is empty or not.
Using the RedisSMQ monitor of course you have any information you need (including queues size) about all of your queues, consumers and producers.
How do I define the db function? Does this work?