It depends on the processing time in the callback and the setting of

Whether the callback setting on the Java client affects the message sending speed depends on the following aspects:

  • Processing time in the callback: To reduce the processing time in a callback, do not frequently perform time-consuming processing in the callback. You can process multiple callbacks after a specific number of ACKs are accumulated or process them in another asynchronous thread to avoid blocking the completion of callbacks.
  • Setting of Before the blocking ends, the maximum number of messages that can be sent is determined by the setting of