tzssangglass commented on code in PR #7289:
URL: https://github.com/apache/apisix/pull/7289#discussion_r905669402


##########
docs/zh/latest/discovery/control-plane-service-discovery.md:
##########
@@ -0,0 +1,72 @@
+---
+title: 控制面服务发现
+keywords:
+  - API 网关
+  - APISIX
+  - ZooKeeper
+  - Nacos
+  - APISIX-Seed
+description: 本文档介绍了如何在 API 网关 Apache APISIX 控制面通过 Nacos 和 Zookeeper 实现服务发现。
+---
+
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+-->
+
+本文档介绍了如何在 APISIX 控制面通过 Nacos 和 Zookeeper 实现服务发现。
+
+## APISIX-Seed 架构
+
+Apache APISIX 在早期已经支持了数据面服务发现,现在 APISIX 也通过 
[APISIX-Seed](https://github.com/api7/apisix-seed) 项目实现了控制面服务发现,下图为 APISIX-Seed 
架构图。
+
+![control-plane-service-discovery](../../../assets/images/control-plane-service-discovery.png)
+
+图中的数字代表的具体信息如下:
+
+1. 通过 Admin API 向 APISIX 注册上游并指定服务发现类型。APISIX-Seed 将监听 etcd 中的 APISIX 
资源变化,过滤服务发现类型并获取服务名称(如 ZooKeeper);
+2. APISIX-Seed 将指定的服务名称订阅到服务注册中心(如 ZooKeeper),以获取对相应服务的更改;

Review Comment:
   ```suggestion
   2. APISIX-Seed 将在服务注册中心(如 ZooKeeper)订阅指定的服务名称,以监控和更新对应的服务信息;
   ```
   
   is better?



##########
docs/zh/latest/discovery/control-plane-service-discovery.md:
##########
@@ -0,0 +1,72 @@
+---
+title: 控制面服务发现
+keywords:
+  - API 网关
+  - APISIX
+  - ZooKeeper
+  - Nacos
+  - APISIX-Seed
+description: 本文档介绍了如何在 API 网关 Apache APISIX 控制面通过 Nacos 和 Zookeeper 实现服务发现。
+---
+
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+-->
+
+本文档介绍了如何在 APISIX 控制面通过 Nacos 和 Zookeeper 实现服务发现。
+
+## APISIX-Seed 架构
+
+Apache APISIX 在早期已经支持了数据面服务发现,现在 APISIX 也通过 
[APISIX-Seed](https://github.com/api7/apisix-seed) 项目实现了控制面服务发现,下图为 APISIX-Seed 
架构图。
+
+![control-plane-service-discovery](../../../assets/images/control-plane-service-discovery.png)
+
+图中的数字代表的具体信息如下:
+
+1. 通过 Admin API 向 APISIX 注册上游并指定服务发现类型。APISIX-Seed 将监听 etcd 中的 APISIX 
资源变化,过滤服务发现类型并获取服务名称(如 ZooKeeper);
+2. APISIX-Seed 将指定的服务名称订阅到服务注册中心(如 ZooKeeper),以获取对相应服务的更改;
+3. 向服务注册中心注册服务后,APISIX-Seed 会获取新的服务信息,并将更新后的服务节点写入 etcd;
+4. 当 etcd 中对应的资源发生变化时,APISIX Worker 会将最新的服务节点信息刷新到内存中。

Review Comment:
   ```suggestion
   4. 当 APISIX-Seed 在 etcd 中更新相应的服务节点信息时,APISIX 会将最新的服务节点信息同步到内存中。
   ```
   
   is better?



##########
docs/zh/latest/discovery/control-plane-service-discovery.md:
##########
@@ -0,0 +1,72 @@
+---
+title: 控制面服务发现
+keywords:
+  - API 网关
+  - APISIX
+  - ZooKeeper
+  - Nacos
+  - APISIX-Seed
+description: 本文档介绍了如何在 API 网关 Apache APISIX 控制面通过 Nacos 和 Zookeeper 实现服务发现。
+---
+
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+-->
+
+本文档介绍了如何在 APISIX 控制面通过 Nacos 和 Zookeeper 实现服务发现。
+
+## APISIX-Seed 架构
+
+Apache APISIX 在早期已经支持了数据面服务发现,现在 APISIX 也通过 
[APISIX-Seed](https://github.com/api7/apisix-seed) 项目实现了控制面服务发现,下图为 APISIX-Seed 
架构图。
+
+![control-plane-service-discovery](../../../assets/images/control-plane-service-discovery.png)
+
+图中的数字代表的具体信息如下:
+
+1. 通过 Admin API 向 APISIX 注册上游并指定服务发现类型。APISIX-Seed 将监听 etcd 中的 APISIX 
资源变化,过滤服务发现类型并获取服务名称(如 ZooKeeper);
+2. APISIX-Seed 将指定的服务名称订阅到服务注册中心(如 ZooKeeper),以获取对相应服务的更改;
+3. 向服务注册中心注册服务后,APISIX-Seed 会获取新的服务信息,并将更新后的服务节点写入 etcd;

Review Comment:
   Missing subject, who registered to the service center?



-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to