You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "wanghyu (via GitHub)" <gi...@apache.org> on 2026/08/05 09:25:35 UTC
[I] [Feature] Go producer: support batch send in sync mode [rocketmq-clients]
wanghyu opened a new issue, #1317:
URL: https://github.com/apache/rocketmq-clients/issues/1317
### Programming Language of the Client
Go
### Is Your Feature Request Related to a Problem?
Currently, the Go client (rocketmq-clients/golang/v5) only supports sending a single message via producer.Send() in sync mode. There is no batch send interface available. There is already a private send0 interface that accepts a batch.
send0(ctx context.Context, msgs []*UnifiedMessage, txEnabled bool) ([]*SendReceipt, error)
The legacy rocketmq-client-go (2.x) already supports batch message sending. It would be great to have this feature in the new 5.x client as well.
### Describe the Solution You'd Like
Send(context.Context, []*Message) ([]*SendReceipt, error)
### Describe Alternatives You've Considered
None
### Additional Context
_No response_
--
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] Go producer: support batch send in sync mode [rocketmq-clients]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #1317:
URL: https://github.com/apache/rocketmq-clients/issues/1317#issuecomment-5370342809
Hi @wanghyu, thanks for the suggestion!
This has been classified as an **enhancement/feature request** and noted for the maintainers to review.
If you have a concrete implementation proposal or would like to contribute a PR, the community would greatly appreciate it!
---
🤖 *Automated issue analysis by github-manager*
--
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] Go producer: support batch send in sync mode [rocketmq-clients]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #1317:
URL: https://github.com/apache/rocketmq-clients/issues/1317#issuecomment-5364740130
**Issue Evaluation**
Category: `enhancement` | Status: **Evaluated**
**Feasibility:** feasible
**Scope:** Go producer
**Compatibility:** No breaking changes — additive API.
This is a reasonable feature request. Adding batch send support in sync mode for the Go producer would improve throughput for high-volume scenarios, matching the Java producer's capability.
The implementation should:
- Add a `SendBatch(ctx, []*Message)` method to the Producer interface
- Respect the existing `maxMessageSize` server-side limit
- Handle partial failures (some messages accepted, some rejected)
Welcome contribution.
---
*Automated evaluation by RockteMQ-AI*
--
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] Go producer: support batch send in sync mode [rocketmq-clients]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #1317:
URL: https://github.com/apache/rocketmq-clients/issues/1317#issuecomment-5805368438
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] Go producer: support batch send in sync mode [rocketmq-clients]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #1317:
URL: https://github.com/apache/rocketmq-clients/issues/1317#issuecomment-5231195173
**Issue Evaluation**
Category: `enhancement` | Status: **Evaluated**
**Feasibility:** Feasible — batch send is a standard producer feature already available in the Java SDK.
**Scope:** Go producer module. Requires implementing a `SendBatch` or equivalent API that accepts multiple messages and sends them in a single gRPC call to the Proxy.
**Compatibility:** Additive API change, no breaking changes. Must align with the gRPC `SendMessageRequest` batch semantics already supported by the Proxy.
This is a reasonable feature request that aligns with the Java SDK capabilities. The implementation should follow the same batch send protocol used by the Java client.
---
*Automated evaluation by RockteMQ-AI*
--
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] Go producer: support batch send in sync mode [rocketmq-clients]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #1317:
URL: https://github.com/apache/rocketmq-clients/issues/1317#issuecomment-5851389671
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] Go producer: support batch send in sync mode [rocketmq-clients]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #1317: [Feature] Go producer: support batch send in sync mode
URL: https://github.com/apache/rocketmq-clients/issues/1317
--
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] Go producer: support batch send in sync mode [rocketmq-clients]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #1317:
URL: https://github.com/apache/rocketmq-clients/issues/1317#issuecomment-5231197420
**Issue Evaluation**
Category: `enhancement` | Status: **Evaluated**
**Feasibility:** Feasible — batch send is a standard producer feature already available in the Java SDK.
**Scope:** Go producer module. Requires implementing a batch send API that accepts multiple messages and sends them in a single gRPC call to the Proxy.
**Compatibility:** Additive API change, no breaking changes. Must align with the gRPC `SendMessageRequest` batch semantics already supported by the Proxy.
This is a reasonable feature request that aligns with the Java SDK capabilities.
---
*Automated evaluation by RockteMQ-AI*
--
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] Go producer: support batch send in sync mode [rocketmq-clients]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #1317:
URL: https://github.com/apache/rocketmq-clients/issues/1317#issuecomment-5190441817
**Issue Evaluation**
Category: `enhancement` | Status: **Evaluated**
**Feasibility:** Feasible
**Scope:** `golang/v5` — producer batch send API
**Compatibility:** Additive API, no breaking changes
Well-defined feature request. The Go 5.x client already has an internal `send0` that accepts `[]*UnifiedMessage`, so exposing a public `SendBatch` API is straightforward. This restores parity with the 2.x legacy client.
Implementation should:
1. Add `SendBatch(ctx, []*Message) ([]*SendReceipt, error)` to the producer interface
2. Reuse the existing `send0` batch path
3. Handle partial success (some messages sent, some failed)
4. Add unit tests for batch sizes (1, N, max batch limit)
---
*Automated evaluation by @RockteMQ-AI*
--
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] Go producer: support batch send in sync mode [rocketmq-clients]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #1317:
URL: https://github.com/apache/rocketmq-clients/issues/1317#issuecomment-5394969566
**Issue Evaluation**
Category: `enhancement` | Status: **Evaluated**
**Feasibility:** Feasible
**Scope:** Go producer API
**Compatibility:** Additive API — no breaking changes to existing `Send()` method.
Reasonable feature request. The internal `send0` already supports batch, so exposing it through a public `SendBatch` API is straightforward. This brings the Go 5.x client to feature parity with the legacy 2.x client and other language SDKs.
Key considerations:
- Batch send should validate that all messages target the same topic (required by broker protocol).
- Consider max batch size limits and document them.
- Error handling should report per-message results (partial success).
---
*Automated evaluation by github-manager*
--
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