If the logic code of the consumption service returns Action.ReconsumerLater or NULL, or throws an exception, the message will undergo the retry process, and will retry at most 16 times. If the message fails after retrying 16 times, it will be discarded. Interval between two retries is as follows:
|Retry number||Retry interval|
The message.getReconsumeTimes() method can be called to obtain the number of message retries.
Broadcasting consumption can ensure that a message will be consumed at least once, but will not retry after a consumption fails.