This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 7cd1f3dbf8 [fix] 优化广播 (#1132)
7cd1f3dbf8 is described below

commit 7cd1f3dbf847c2aed7a4b06ecea105126df4d5e0
Author: JIAN ZHONG <[email protected]>
AuthorDate: Thu Jun 23 17:16:08 2022 +0800

    [fix] 优化广播 (#1132)
    
    * [fix] 优化广播
    
    * [fix] 静态资源更改
---
 .../reference-manual/registry/multicast/guide.md   | 26 ++++++++++++++--------
 1 file changed, 17 insertions(+), 9 deletions(-)

diff --git 
a/content/zh/docs3-building/java-sdk/reference-manual/registry/multicast/guide.md
 
b/content/zh/docs3-building/java-sdk/reference-manual/registry/multicast/guide.md
index 643a01127e..81ab201621 100644
--- 
a/content/zh/docs3-building/java-sdk/reference-manual/registry/multicast/guide.md
+++ 
b/content/zh/docs3-building/java-sdk/reference-manual/registry/multicast/guide.md
@@ -4,20 +4,27 @@ title: "使用说明"
 linkTitle: "使用说明"
 weight: 2
 ---
-
-
 Multicast 注册中心不需要启动任何中心节点,只要广播地址一样,就可以互相发现。
 
 ![/user-guide/images/multicast.jpg](/imgs/user/multicast.jpg)
 
-0. 提供方启动时广播自己的地址
-1. 消费方启动时广播订阅请求
-2. 提供方收到订阅请求时,单播自己的地址给订阅者,如果设置了 `unicast=false`,则广播给订阅者
-3. 消费方收到提供方地址时,连接该地址进行 RPC 调用。
+### 使用者类型:
+
+- 提供方
+- 消费方
+- 提供方
 
+### 步骤:
+0.  提供方启动时广播自己的地址
+1.  消费方启动时广播订阅请求
+2.  提供方收到订阅请求时,单播自己的地址给订阅者,如果设置了  `unicast=false`,则广播给订阅者
+3.  消费方收到提供方地址时,连接该地址进行 RPC 调用。
+
+#### 提示:
 组播受网络结构限制,只适合小规模应用或开发阶段使用。组播地址段: 224.0.0.0 - 239.255.255.255
 
-## 配置
+## 使用场景
+## 使用方式:
 
 ```xml
 <dubbo:registry address="multicast://224.5.6.7:1234" />
@@ -28,8 +35,9 @@ Multicast 注册中心不需要启动任何中心节点,只要广播地址一
 ```xml
 <dubbo:registry protocol="multicast" address="224.5.6.7:1234" />
 ```
-
-为了减少广播量,Dubbo 缺省使用单播发送提供者地址信息给消费者,如果一个机器上同时启了多个消费者进程,消费者需声明 
`unicast=false`,否则只会有一个消费者能收到消息; 
当服务者和消费者运行在同一台机器上,消费者同样需要声明`unicast=false`,否则消费者无法收到消息,导致No provider available 
for the service异常:
+### 注意:
+为了减少广播量,Dubbo 缺省使用单播发送提供者地址信息给消费者。
+如果一个机器上同时启了多个消费者进程,消费者需声明 `unicast=false`,否则只会有一个消费者能收到消息; 
当服务者和消费者运行在同一台机器上,消费者同样需要声明`unicast=false`,否则消费者无法收到消息,导致No provider available 
for the service异常:
 
 ```xml
 <dubbo:application name="demo-consumer">

Reply via email to