Skip to content

Commit

Permalink
docs: update lf url (#3922)
Browse files Browse the repository at this point in the history
  • Loading branch information
thonatos authored and atian25 committed Sep 2, 2019
1 parent 17b22c8 commit cde9214
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/source/en/advanced/cluster-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
/**
Expand Down
2 changes: 1 addition & 1 deletion docs/source/zh-cn/advanced/cluster-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 和远程服务端交互,并等待其返回)。
Expand Down

0 comments on commit cde9214

Please sign in to comment.