-
Notifications
You must be signed in to change notification settings - Fork 11.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ROCKETMQ-219] Add batch example #112
Conversation
66f05cf
to
d1db5af
Compare
import org.apache.rocketmq.client.producer.DefaultMQProducer; | ||
import org.apache.rocketmq.common.message.Message; | ||
|
||
public class SplitBatchProducer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about adding comments to this sample class to explain what it is going to demonstrate, since this example seem to be a little complicated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to add a concise explanation why we should split when sending in batch. That is, total message size of messages in a batch cannot exceed 1 mega bytes on default.
Overall +1 |
+1, LGTM~ |
+1 |
@zhouxinyu Thanks |
rocketmq version 4.5 , SimpleBatchProducer 会出现: |
https://issues.apache.org/jira/browse/ROCKETMQ-219
@lizhanhui @zhouxinyu