apache / rocketmq-client-go

Apache RocketMQ go client
https://rocketmq.apache.org/
Apache License 2.0
1.29k stars 415 forks source link

Why is the consumer acknowledged in batches? #1060

Closed llwwbb closed 1 year ago

llwwbb commented 1 year ago

According to the Java example of the official website documentation, it should be possible to ack each message individually, like

MessageListener messageListener = new MessageListener() {
      @Override
      public ConsumeResult consume(MessageView messageView) {
          System.out.println(messageView);
          // Return the status based on the consumption result. 
          return ConsumeResult.SUCCESS;
      }
  };