Skip to content

Commit e799bd0

Browse files
committed
Update doc
1 parent 0ac80b8 commit e799bd0

File tree

3 files changed

+94
-2
lines changed

3 files changed

+94
-2
lines changed

docs/architect.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ See [Full Link Transmission](transmission.md)
2121

2222
See [Service Governance Model](governance.md)
2323

24-
## 6. Multi-Active Space Model
24+
## 6. Live Space Model
2525

26-
See [Multi-Active Space Model](livespace.md)
26+
See [Live Space Model](livespace.md)
2727

2828
## 7. Lane Space Model
2929

docs/cn/flowcontrol.md

+36
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,42 @@ ClusterInvoker --> LiveCluster
995995
996996
```
997997

998+
相关的路由插件里面需要实现多活集群对象,以Dubbo3为例
999+
1000+
```mermaid
1001+
classDiagram
1002+
direction BT
1003+
class DubboCluster3 {
1004+
- getRetries(String) int
1005+
- getError(Throwable, DubboOutboundRequest, DubboEndpoint~?~) String
1006+
+ invoke(DubboOutboundRequest, DubboEndpoint~?~) CompletionStage~DubboOutboundResponse~
1007+
+ createResponse(Throwable, DubboOutboundRequest, DubboEndpoint~?~) DubboOutboundResponse
1008+
+ isRetryable(Response) boolean
1009+
+ setStickyId(String) void
1010+
+ route(DubboOutboundRequest) CompletionStage~List~DubboEndpoint~?~~~
1011+
+ isDestroyed() boolean
1012+
+ getStickyId() String
1013+
+ getDefaultPolicy(DubboOutboundRequest) ClusterPolicy
1014+
+ createRetryExhaustedException(RetryExhaustedException, OutboundInvocation~DubboOutboundRequest~) RpcException
1015+
+ createNoProviderException(DubboOutboundRequest) RpcException
1016+
+ createException(Throwable, DubboOutboundRequest, DubboEndpoint~?~) RpcException
1017+
+ createRejectException(RejectException, DubboOutboundRequest) RpcException
1018+
+ createUnReadyException(DubboOutboundRequest) RpcException
1019+
+ createUnReadyException(String, DubboOutboundRequest) RpcException
1020+
}
1021+
class LiveCluster~R, O, E, T~ {
1022+
<<Interface>>
1023+
1024+
}
1025+
class StickyRequest {
1026+
<<Interface>>
1027+
1028+
}
1029+
1030+
DubboCluster3 ..|> LiveCluster~R, O, E, T~
1031+
LiveCluster~R, O, E, T~ --|> StickyRequest
1032+
```
1033+
9981034
### 2.6 入流量
9991035

10001036
#### 2.6.1 拦截点

docs/flowcontrol.md

+56
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,25 @@ Endpoint --> EndpointState
610610
style Endpoint fill:#8a1874
611611
```
612612

613+
The relevant routing plugins need to implement these abstract request objects. Using Dubbo3 as an example:
614+
615+
```mermaid
616+
classDiagram
617+
direction BT
618+
class AbstractEndpoint
619+
class DubboEndpoint~T~ {
620+
# computeWeight(ServiceRequest) int
621+
+ getTimestamp() Long
622+
+ getLabel(String) String
623+
+ getInvoker() Invoker~T~
624+
+ getPort() int
625+
+ getHost() String
626+
+ getState() EndpointState
627+
+ of(Invoker~?~) DubboEndpoint~?~$
628+
}
629+
630+
DubboEndpoint~T~ --> AbstractEndpoint
631+
```
613632
### 2.3 Processing Chain
614633

615634
```mermaid
@@ -914,6 +933,43 @@ LiveCluster~R, O, E, T~ --|> StickyRequest
914933
ClusterInvoker --> LiveCluster
915934
916935
```
936+
937+
The relevant routing plugins need to implement multi-active cluster objects. Using Dubbo3 as an example:
938+
939+
```mermaid
940+
classDiagram
941+
direction BT
942+
class DubboCluster3 {
943+
- getRetries(String) int
944+
- getError(Throwable, DubboOutboundRequest, DubboEndpoint~?~) String
945+
+ invoke(DubboOutboundRequest, DubboEndpoint~?~) CompletionStage~DubboOutboundResponse~
946+
+ createResponse(Throwable, DubboOutboundRequest, DubboEndpoint~?~) DubboOutboundResponse
947+
+ isRetryable(Response) boolean
948+
+ setStickyId(String) void
949+
+ route(DubboOutboundRequest) CompletionStage~List~DubboEndpoint~?~~~
950+
+ isDestroyed() boolean
951+
+ getStickyId() String
952+
+ getDefaultPolicy(DubboOutboundRequest) ClusterPolicy
953+
+ createRetryExhaustedException(RetryExhaustedException, OutboundInvocation~DubboOutboundRequest~) RpcException
954+
+ createNoProviderException(DubboOutboundRequest) RpcException
955+
+ createException(Throwable, DubboOutboundRequest, DubboEndpoint~?~) RpcException
956+
+ createRejectException(RejectException, DubboOutboundRequest) RpcException
957+
+ createUnReadyException(DubboOutboundRequest) RpcException
958+
+ createUnReadyException(String, DubboOutboundRequest) RpcException
959+
}
960+
class LiveCluster~R, O, E, T~ {
961+
<<Interface>>
962+
963+
}
964+
class StickyRequest {
965+
<<Interface>>
966+
967+
}
968+
969+
DubboCluster3 ..|> LiveCluster~R, O, E, T~
970+
LiveCluster~R, O, E, T~ --|> StickyRequest
971+
```
972+
917973
### 2.6 Inbound Traffic
918974

919975
#### 2.6.1 Interception Points

0 commit comments

Comments
 (0)