Skip to content

Commit

Permalink
Fix broken link
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ committed Aug 9, 2023
1 parent d02394c commit 4725765
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Expand Up @@ -155,7 +155,7 @@ service SearchService {

[gRPC](https://grpc.io/) 是 Google 开源的构建在 HTTP/2 之上的一个 PRC 通信协议。Dubbo 依赖其灵活的协议扩展机制,增加了对 gRPC (HTTP/2) 协议的支持。

目前的支持限定在 Dubbo Java 语言版本,后续 Go 语言或其他语言版本将会以类似方式提供支持。下面,通过一个[简单的示例](https://github.com/apache/dubbo-samples/tree/master/3-extensions/99-integration/dubbo-samples-grpc)来演示如何在 Dubbo 中使用 gRPC 协议通信。
目前的支持限定在 Dubbo Java 语言版本,后续 Go 语言或其他语言版本将会以类似方式提供支持。下面,通过一个[简单的示例](https://github.com/apache/dubbo-samples/tree/master/99-integration/dubbo-samples-grpc)来演示如何在 Dubbo 中使用 gRPC 协议通信。

#### 1. 定义服务 IDL

Expand Down Expand Up @@ -589,7 +589,7 @@ message HelloReply {
</plugin>
```

注意,这里与 [Dubbo 对 gRPC](https://github.com/apache/dubbo-samples/tree/master/3-extensions/99-integration/dubbo-samples-grpc) 支持部分的区别在于:
注意,这里与 [Dubbo 对 gRPC](https://github.com/apache/dubbo-samples/tree/master/99-integration/dubbo-samples-grpc) 支持部分的区别在于:
` <pluginParameter>dubbo</pluginParameter>`

2. 生成 Dubbo stub
Expand Down
2 changes: 1 addition & 1 deletion content/zh-cn/blog/news/apache-dubbo-2019-2020.md
Expand Up @@ -107,7 +107,7 @@ CompletableFuture<String> future = helloService.sayHello("world");

![idl dubbo compiler](/imgs/blog/idl-dubbo-compiler.png)

但是需要注意的一定是,由于外围的 Reactive API 需要有底层传输协议的支持才有意义,因此,目前 Reactive API 只能在使用 gRPC 协议时才有意义,具体请参见示例以及下面关于 ”[Dubbo 对 gRPC 的支持](https://github.com/apache/dubbo-samples/tree/master/3-extensions/99-integration/dubbo-samples-grpc/dubbo-samples-rxjava)” 一节的讲解。
但是需要注意的一定是,由于外围的 Reactive API 需要有底层传输协议的支持才有意义,因此,目前 Reactive API 只能在使用 gRPC 协议时才有意义,具体请参见示例以及下面关于 ”[Dubbo 对 gRPC 的支持](https://github.com/apache/dubbo-samples/tree/master/99-integration/dubbo-samples-grpc/dubbo-samples-rxjava)” 一节的讲解。

### 性能优化

Expand Down
4 changes: 2 additions & 2 deletions content/zh-cn/docs/references/protocols/gRPC.md
Expand Up @@ -26,6 +26,6 @@ Dubbo 自 2.7.5 版本开始支持 gRPC 协议,对于计划使用 HTTP/2 通
2. 配置 compiler 插件,本地预编译
3. 配置暴露/引用 Dubbo 服务

具体可参见以下[示例](https://github.com/apache/dubbo-samples/tree/master/3-extensions/99-integration/dubbo-samples-grpc)
具体可参见以下[示例](https://github.com/apache/dubbo-samples/tree/master/99-integration/dubbo-samples-grpc)

除了原生 StreamObserver 接口类型之外,Dubbo 还支持 [RxJava](https://github.com/apache/dubbo-samples/tree/master/3-extensions/99-integration/dubbo-samples-grpc/dubbo-samples-rxjava)[Reactor](https://github.com/apache/dubbo-samples/tree/master/3-extensions/99-integration/dubbo-samples-grpc/dubbo-samples-reactor) 编程风格的 API
除了原生 StreamObserver 接口类型之外,Dubbo 还支持 [RxJava](https://github.com/apache/dubbo-samples/tree/master/99-integration/dubbo-samples-grpc/dubbo-samples-rxjava)[Reactor](https://github.com/apache/dubbo-samples/tree/master/99-integration/dubbo-samples-grpc/dubbo-samples-reactor) 编程风格的 API
4 changes: 2 additions & 2 deletions content/zh-cn/docsv2.7/user/references/protocol/gRPC.md
Expand Up @@ -23,6 +23,6 @@ Dubbo 自 2.7.5 版本开始支持 gRPC 协议,对于计划使用 HTTP/2 通
2. 配置 compiler 插件,本地预编译
3. 配置暴露/引用 Dubbo 服务

具体可参见以下[示例](https://github.com/apache/dubbo-samples/tree/master/3-extensions/99-integration/dubbo-samples-grpc)
具体可参见以下[示例](https://github.com/apache/dubbo-samples/tree/master/99-integration/dubbo-samples-grpc)

除了原生 StreamObserver 接口类型之外,Dubbo 还支持 [RxJava](https://github.com/apache/dubbo-samples/tree/master/3-extensions/99-integration/dubbo-samples-grpc/dubbo-samples-rxjava)[Reactor](https://github.com/apache/dubbo-samples/tree/master/3-extensions/99-integration/dubbo-samples-grpc/dubbo-samples-reactor) 编程风格的 API
除了原生 StreamObserver 接口类型之外,Dubbo 还支持 [RxJava](https://github.com/apache/dubbo-samples/tree/master/99-integration/dubbo-samples-grpc/dubbo-samples-rxjava)[Reactor](https://github.com/apache/dubbo-samples/tree/master/99-integration/dubbo-samples-grpc/dubbo-samples-reactor) 编程风格的 API
Expand Up @@ -34,11 +34,11 @@ Dubbo 自 2.7.5 版本开始支持 gRPC 协议,对于计划使用 HTTP/2 通

## 使用方式
### 在 Dubbo 中使用 gRPC
[示例](https://github.com/apache/dubbo-samples/tree/master/3-extensions/99-integration/dubbo-samples-grpc)
[示例](https://github.com/apache/dubbo-samples/tree/master/99-integration/dubbo-samples-grpc)

### 步骤
1. 使用 IDL 定义服务
2. 配置 compiler 插件,本地预编译
3. 配置暴露/引用 Dubbo 服务

> 除了原生 StreamObserver 接口类型之外,Dubbo 还支持 [RxJava](https://github.com/apache/dubbo-samples/tree/master/3-extensions/99-integration/dubbo-samples-grpc/dubbo-samples-rxjava)[Reactor](https://github.com/apache/dubbo-samples/tree/master/3-extensions/99-integration/dubbo-samples-grpc/dubbo-samples-reactor) 编程风格的 API。
> 除了原生 StreamObserver 接口类型之外,Dubbo 还支持 [RxJava](https://github.com/apache/dubbo-samples/tree/master/99-integration/dubbo-samples-grpc/dubbo-samples-rxjava)[Reactor](https://github.com/apache/dubbo-samples/tree/master/99-integration/dubbo-samples-grpc/dubbo-samples-reactor) 编程风格的 API。

0 comments on commit 4725765

Please sign in to comment.