From cde921456657c16dba81c6fb9c991b62a826d120 Mon Sep 17 00:00:00 2001 From: Suyi Date: Mon, 2 Sep 2019 21:24:47 +0800 Subject: [PATCH] docs: update lf url (#3922) --- docs/source/en/advanced/cluster-client.md | 8 ++++---- docs/source/zh-cn/advanced/cluster-client.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/source/en/advanced/cluster-client.md b/docs/source/en/advanced/cluster-client.md index 1985eb502e..55cc851e2f 100644 --- a/docs/source/en/advanced/cluster-client.md +++ b/docs/source/en/advanced/cluster-client.md @@ -24,8 +24,8 @@ So is there any better way? The answer is: YES! We provide a new type of model t ## Core Idea -- Inspired by the [Leader/Follower](http://www.cs.wustl.edu/~schmidt/PDF/lf.pdf) model. -- The client is divided into two roles: +- Inspired by the [Leader/Follower](https://www.dre.vanderbilt.edu/~schmidt/PDF/lf.pdf) model. +- The client is divided into two roles: - Leader: Be responsible for maintaining the connection with the remote server, only one Leader for the same type of client. - Follower: Delegate specific operations to the Leader. A common way is Subscribe-Model (let the Leader interact with remote server and wait for its return). - How to determine who Leader is, who Follower is? There are two modes: @@ -173,7 +173,7 @@ const Base = require('sdk-base'); class RegistryClient extends Base {   constructor(options) {     super({ -      // Specify a method for asynchronous start +      // Specify a method for asynchronous start       initMethod: 'init',     });     this._options = options; @@ -494,7 +494,7 @@ in conclusion: Students who are interested may have look at [enhanced multi-process development model](https://github.com/eggjs/egg/issues/322) discussion process. -## The Configuration Items Related to Cluster-Client in the Framework +## The Configuration Items Related to Cluster-Client in the Framework ```js /** diff --git a/docs/source/zh-cn/advanced/cluster-client.md b/docs/source/zh-cn/advanced/cluster-client.md index ce2cab2856..f168b961d5 100644 --- a/docs/source/zh-cn/advanced/cluster-client.md +++ b/docs/source/zh-cn/advanced/cluster-client.md @@ -24,7 +24,7 @@ title: 多进程研发模式增强 ## 核心思想 -- 受到 [Leader/Follower](http://www.cs.wustl.edu/~schmidt/PDF/lf.pdf) 模式的启发。 +- 受到 [Leader/Follower](https://www.dre.vanderbilt.edu/~schmidt/PDF/lf.pdf) 模式的启发。 - 客户端会被区分为两种角色: - Leader: 负责和远程服务端维持连接,对于同一类的客户端只有一个 Leader。 - Follower: 会将具体的操作委托给 Leader,常见的是订阅模型(让 Leader 和远程服务端交互,并等待其返回)。