chiradip opened a new issue, #2203:
URL: https://github.com/apache/iggy/issues/2203
**Title:** `[Java SDK] Add batch send/receive operations for better
throughput`
**Description:**
Currently, messages must be sent one at a time, significantly impacting
throughput. Batch operations are essential for high-performance scenarios.
**Current State:**
```java
// Must send messages individually
for (Message message : messages) {
client.messages().sendMessages(streamId, topicId,
Partitioning.balanced(), Collections.singletonList(message));
}
```
**Proposed Solution:**
```java
// Batch send
BatchResult result = client.messages().sendBatch(streamId, topicId,
messages);
// Configurable batching
client.messages().sendMessagesWithBatching(
streamId, topicId, messages,
BatchConfig.builder()
.maxBatchSize(1000)
.maxLatency(Duration.ofMillis(100))
.build()
);
```
**Expected Impact:**
- 5-10x throughput improvement (always measure)
- Reduced network overhead
- Better resource utilization
--
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]