Reset consumer offset

Updated at:

You can reset the consumer offset to clear accumulated messages or messages that you do not want to consume. Then, you can start to consume messages from the latest consumer offset. You can also skip to a point in time to consume messages after this point in time.

Important

You cannot reset the consumer offset in broadcasting consumption mode. You cannot specify the message ID, message key, or tag to reset the consumer offset of a message.

Procedure

  1. Log on to the SOFAStack console.

  2. In the left-side navigation pane, choose Middleware > MSMQ > Group Management.

  3. Click Reset Consumer offset in the Actions column of the group ID. In the Reset Consumer offset dialog box, configure the following information:

    • Topic: Select the topic to which the consumer offset is reset.

    • Reset Type:

      • Clear all accumulated messages and start consumption from the latest offset: If this option is selected, the group ID skips all accumulated (unconsumed) messages when consuming messages under the topic, and starts consumption from the latest message sent after this.

      • Reset consumer offset by time: If you select this type, you must select a reset time point. Only messages that are sent after this time point are consumed.

  4. Click OK.

Unitization Description

When you reset a consumer offset in the LDC unit architecture, you must select a unit to reset the consumer offset, as shown in the following figure.

选择单元