wlliqipeng commented on a change in pull request #659: [RIP-9] The best
practice of rocketmq
URL: https://github.com/apache/rocketmq/pull/659#discussion_r250067308
##########
File path: docs/cn/best_practise.md
##########
@@ -0,0 +1,342 @@
+# 7 最佳实践(best practice)
+
+## 7.1 客户端
+
+ 相对于RocketMQ的Broker集群,生产者和消费者都是客户端。本小节主要描述生产者和消费者公共的行为配置。
+
+### 7.1.1 客户端寻址方式
+
+RocketMQ可以令客户端找到Name Server, 然后通过Name
Server再找到Broker,分别如下,如下所示有多种配置方式,优先级由高到低,高优先级会覆盖低优先级。
+
+1. 代码中指定Name Server地址
+ // 多个namesrv地址之间用分号分割
+
+```java
+producer.setNamesrvAddr("192.168.0.1:9876;192.168.0.2:9876");
+```
+或
Review comment:
“或”delete
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services