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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]