This is an automated email from the ASF dual-hosted git repository.
jinrongtong pushed a commit to branch new-official-website
in repository https://gitbox.apache.org/repos/asf/rocketmq-site.git
The following commit(s) were added to refs/heads/new-official-website by this
push:
new 4acdf8bb Batch Message Sending (#164)
4acdf8bb is described below
commit 4acdf8bbc4e9af40c28ea64cb17eeb80d30bc3bb
Author: RockChuLee <[email protected]>
AuthorDate: Sun Aug 14 22:39:53 2022 -0400
Batch Message Sending (#164)
* 08message4.md
* 08message4.md
* Modify the wrong path of picture in 08message4.md
* Resolve the question
* Modify typo
---
"docs/02-\347\224\237\344\272\247\350\200\205/08message4.md" | 2 +-
.../09-\350\213\261\346\226\207/02-Producer/08message4.md" | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git "a/docs/02-\347\224\237\344\272\247\350\200\205/08message4.md"
"b/docs/02-\347\224\237\344\272\247\350\200\205/08message4.md"
index 04892f74..08b4ea13 100644
--- "a/docs/02-\347\224\237\344\272\247\350\200\205/08message4.md"
+++ "b/docs/02-\347\224\237\344\272\247\350\200\205/08message4.md"
@@ -25,5 +25,5 @@ public class SimpleBatchProducer {
```
:::note
-这里调用非常简单,将消息打包成 Collection`<Message>` msgs传入方法中即可,需要注意的是批量消息的大小不能超过
1MiB(否则需要自行分割),其次同一批 batch 中 topic 必须相同。
+这里调用非常简单,将消息打包成 `Collection<Message> msgs` 传入方法中即可,需要注意的是批量消息的大小不能超过
1MiB(否则需要自行分割),其次同一批 batch 中 topic 必须相同。
:::
\ No newline at end of file
diff --git "a/docs/02-\347\224\237\344\272\247\350\200\205/08message4.md"
"b/docs/09-\350\213\261\346\226\207/02-Producer/08message4.md"
similarity index 58%
copy from "docs/02-\347\224\237\344\272\247\350\200\205/08message4.md"
copy to "docs/09-\350\213\261\346\226\207/02-Producer/08message4.md"
index 04892f74..b938c29f 100644
--- "a/docs/02-\347\224\237\344\272\247\350\200\205/08message4.md"
+++ "b/docs/09-\350\213\261\346\226\207/02-Producer/08message4.md"
@@ -1,8 +1,8 @@
-# 批量消息发送
+# Batch Message Sending
-在对吞吐率有一定要求的情况下,Apache RocketMQ可以将一些消息聚成一批以后进行发送,可以增加吞吐率,并减少API和网络调用次数。
+In the case of certain requirements on throughput, Apache RocketMQ can send
messages after grouping them into batches. The approach is able to increase
throughput and decrease the times of API and network calls.
-
+
```javascript {10,11,12,13}
public class SimpleBatchProducer {
@@ -25,5 +25,5 @@ public class SimpleBatchProducer {
```
:::note
-这里调用非常简单,将消息打包成 Collection`<Message>` msgs传入方法中即可,需要注意的是批量消息的大小不能超过
1MiB(否则需要自行分割),其次同一批 batch 中 topic 必须相同。
+The call here is simple, where it packages the message as `Collection<Message>
msgs` and passes it into the method as a parameter. There are two things to
note here. First of all, the size of the batch message cannot exceed 1 MiB,
otherwise, it needs to be split. Secondly, the message topic within the same
batch must be identical.
:::
\ No newline at end of file