Skip to content

Commit 20bfb9a

Browse files
authored
Merge pull request #245 from WeBankFinTech/1.2.0
improve protocol document of Eventmesh-Runtime
2 parents d640e99 + 115dabb commit 20bfb9a

File tree

4 files changed

+307
-16
lines changed

4 files changed

+307
-16
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ General functions of the eventmesh:
4343

4444
**Protocol:**
4545

46-
The protocol of eventmesh is easier and convenient, you can read more [here](docs/cn/instructions/eventmesh-runtime-protocol.zh-CN.md).
46+
The protocol of eventmesh is easier and convenient, you can read more [here](docs/en/instructions/eventmesh-runtime-protocol.md)
4747

4848
## RoadMap
4949
| version | feature |

docs/cn/instructions/eventmesh-runtime-protocol.zh-CN.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## TCP协议文档
22

3-
#### 数据流层
3+
#### 1. 协议格式
44

55
![dataFlow](../../images/protocol/eventmesh-tcp-dataFlow.png)
66

@@ -22,9 +22,9 @@
2222

2323

2424

25-
#### 业务逻辑层
25+
#### 2. 业务逻辑层
2626

27-
**消息组成**
27+
+ 消息组成
2828

2929
消息头(header)+ 消息体(body)
3030

@@ -47,7 +47,7 @@ public class Header {
4747

4848

4949

50-
**详解:**
50+
+ 详解
5151

5252
消息头(header):类型为Header,Header中有Command字段,用于区分不同的消息类型
5353

@@ -63,7 +63,7 @@ public class Header {
6363

6464

6565

66-
#### Client 与 Eventmesh-RuntimeServer交互场景详解
66+
#### 3. Client 与 Eventmesh-Runtime(Server)交互场景详解
6767

6868
```java
6969
public enum Command {
@@ -119,7 +119,7 @@ public enum Command {
119119

120120

121121

122-
#### Client发起交互
122+
#### 4. Client发起交互
123123

124124
| 场景 | Client向Server发送消息命令字 | Server回复Client消息的命令字 | 说明 |
125125
| -------------- | ---------------------------- | ------------------------------- | ---- |
@@ -136,7 +136,7 @@ public enum Command {
136136

137137

138138

139-
#### Server发起交互
139+
#### 5. Server发起交互
140140

141141
| 场景 | Server向Client发送消息命令字 | Client回复Server消息命令字 | 说明 |
142142
| ------------------ | ---------------------------- | ------------------------------- | ---- |
@@ -149,7 +149,7 @@ public enum Command {
149149
| | | | |
150150

151151

152-
152+
#### 6. 消息类型
153153
+ 发送RR消息
154154

155155
![rr-msg](../../images/protocol/eventmesh-rr-msg.png)
@@ -191,7 +191,7 @@ public class LiteMessage {
191191

192192

193193

194-
#### 消息发送方式与组成
194+
#### 1. 消息发送方式与组成
195195

196196

197197

@@ -201,7 +201,7 @@ public class LiteMessage {
201201

202202

203203

204-
##### 心跳消息
204+
+ 心跳消息
205205

206206
**RequestHeader**
207207

@@ -229,7 +229,7 @@ public class LiteMessage {
229229

230230

231231

232-
##### 订阅消息:
232+
+ 订阅消息:
233233

234234
**RequestHeader**
235235

@@ -244,7 +244,7 @@ public class LiteMessage {
244244

245245

246246

247-
##### 取消订阅消息:
247+
+ 取消订阅消息:
248248

249249
**RequestHeader**
250250

@@ -256,7 +256,7 @@ public class LiteMessage {
256256

257257

258258

259-
##### 发送异步事件:
259+
+ 发送异步事件:
260260

261261
**RequestHeader**
262262

@@ -274,7 +274,7 @@ public class LiteMessage {
274274

275275

276276

277-
#### Client发起交互
277+
#### 2. Client发起交互
278278

279279
| 场景 | Client向Server发送消息请求码 | Server回复Client消息的响应码 | 说明 |
280280
| ------------ | ---------------------------- | --------------------------------------- | ---- |
@@ -285,7 +285,7 @@ public class LiteMessage {
285285

286286

287287

288-
#### Server发起交互
288+
#### 3. Server发起交互
289289

290290
| 场景 | Server向Client发送消息请求码 | Client回复Server消息响应码 | 说明 |
291291
| ------------------ | ---------------------------- | -------------------------- | ---------------------- |

0 commit comments

Comments
 (0)