第 128 章 gRPC Component
从 Camel 版本 2.19 开始提供
gRPC 组件允许您使用 协议缓冲(protobuf)交换格式通过 HTTP/2 传输调用或公开远程过程调用(RPC) 服务。
Maven 用户需要将以下依赖项添加到此组件的 pom.xml
中:
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-grpc</artifactId> <version>x.x.x</version> <!-- use the same version as your Camel core version --> </dependency>
从 Camel 2.22 gRCP 开始,需要强大的 Google Guava 版本。需要将以下配置属性添加到 maven 文件中
<properties> <google-guava-version>${grpc-guava-version}</google-guava-version> <properties>
128.1. URI 格式
grpc://service[?options]