You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by xi...@apache.org on 2022/06/24 16:02:48 UTC

[incubator-shenyu-website] branch main updated: Update data-sync.md (#618)

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

xiaoyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 893d8e23b3 Update data-sync.md (#618)
893d8e23b3 is described below

commit 893d8e23b3283d1377e8f900105aa299cf6b0f1a
Author: KeZhan <15...@qq.com>
AuthorDate: Sat Jun 25 00:02:42 2022 +0800

    Update data-sync.md (#618)
---
 .../zh/docusaurus-plugin-content-docs/version-2.4.3/design/data-sync.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.3/design/data-sync.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.3/design/data-sync.md
index 78968d0d5b..319172421f 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.3/design/data-sync.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.3/design/data-sync.md
@@ -40,7 +40,7 @@ description: 数据同步
 
 在最初的版本中,配置服务依赖 `Zookeeper` 实现,管理后台将变更信息 `push` 给网关。而现在可以支持 `WebSocket`、`Http长轮询`、`Zookeeper`、`Nacos`、`Etcd` 和 `Consul`,通过在配置文件中设置 `shenyu.sync.${strategy}` 指定对应的同步策略,默认使用 `webosocket` 同步策略,可以做到秒级数据同步。但是,有一点需要注意的是,`Apache ShenYu`网关 和 `shenyu-admin` 必须使用相同的同步策略。
 
-如下图所示,`shenyu-admin` 在用户发生配置变更之后,会通过 `EventPublisher` 发出配置变更通知,由 `EventDispatcher` 处理该变更通知,然后根据配置的同步策略(`http、weboscket、zookeeper、naocs、etcd、consul`),将配置发送给对应的事件处理器。
+如下图所示,`shenyu-admin` 在用户发生配置变更之后,会通过 `EventPublisher` 发出配置变更通知,由 `EventDispatcher` 处理该变更通知,然后根据配置的同步策略(`http、weboscket、zookeeper、nacos、etcd、consul`),将配置发送给对应的事件处理器。
 
 - 如果是 `websocket` 同步策略,则将变更后的数据主动推送给 `shenyu-web`,并且在网关层,会有对应的 `WebsocketDataHandler` 处理器来处理 `shenyu-admin` 的数据推送。
 - 如果是 `zookeeper` 同步策略,将变更数据更新到 `zookeeper`,而 `ZookeeperSyncCache` 会监听到 `zookeeper` 的数据变更,并予以处理。