You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "imjyz (via GitHub)" <gi...@apache.org> on 2026/03/20 09:22:04 UTC

[I] [Feature] Support batch send in Producer API (Proto already supports it) [rocketmq-clients]

imjyz opened a new issue, #1205:
URL: https://github.com/apache/rocketmq-clients/issues/1205

   ### Programming Language of the Client
   
   Java
   
   ### Is Your Feature Request Related to a Problem?
   
   The current Producer.send() only supports single messages. Although the underlying rocketmq-apis (gRPC/proto) already supports batch transmission, the client SDK lacks a high-level API to utilize this, causing unnecessary network RTT overhead.
   
   ### Describe the Solution You'd Like
   
   Add a batch send method to the Producer interface:
   ```java
   // Example
   Result send(List<Message> messages)
   ```
   
   
   
   ### Describe Alternatives You've Considered
   
   Loop sending
   
   ### Additional Context
   
   proto:
   
   ```proto
   message SendMessageRequest {
     repeated Message messages = 1;
   }
   
   message SendResultEntry {
     Status status = 1;
     string message_id = 2;
     string transaction_id = 3;
     int64 offset = 4;
     string recall_handle = 5;
   }
   
   message SendMessageResponse {
     Status status = 1;
     repeated SendResultEntry entries = 2;
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] Support batch send in Producer API (Proto already supports it) [rocketmq-clients]

Posted by "imjyz (via GitHub)" <gi...@apache.org>.
imjyz commented on issue #1205:
URL: https://github.com/apache/rocketmq-clients/issues/1205#issuecomment-5494620595

   I checked the latest Java client again (including the `java-5.2.2` release and current `master`). The public `Producer` API still only exposes `send(Message)` and `sendAsync(Message)`, while `ProducerImpl` still has an internal `send(List<Message>, boolean)` path that builds one `SendMessageRequest` with multiple messages.
   
   The legacy Remoting Java client provides the similar `DefaultMQProducer.send(Collection<Message>)` API, but I could not find an equivalent public batch-send API in the Java 5.x gRPC client.
   
   Could the maintainers clarify whether there is now a supported alternative for batching messages into a single RPC? If not, is the community willing to restore/expose a batch API here? It would also be helpful to understand whether the constraint that led to removing the original public batch API in commit `f9792612e1` still applies (for example, Proxy/protocol compatibility, per-message partial failures, batch limits, or retry semantics).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] Support batch send in Producer API (Proto already supports it) [rocketmq-clients]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #1205:
URL: https://github.com/apache/rocketmq-clients/issues/1205#issuecomment-4277234444

   This issue is stale because it has been open for 30 days with no activity. It will be closed in 3 days if no further activity occurs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] Support batch send in Producer API (Proto already supports it) [rocketmq-clients]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #1205:
URL: https://github.com/apache/rocketmq-clients/issues/1205#issuecomment-4300928390

   This issue was closed because it has been inactive for 3 days since being marked as stale.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] Support batch send in Producer API (Proto already supports it) [rocketmq-clients]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #1205: [Feature] Support batch send in Producer API (Proto already supports it)
URL: https://github.com/apache/rocketmq-clients/issues/1205


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org