# grpc-dubbo-proxy **Repository Path**: coderanger/grpc-dubbo-proxy ## Basic Information - **Project Name**: grpc-dubbo-proxy - **Description**: 将dubbo 服务转换为gRPC服务,便于多语言接入。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-03-11 - **Last Updated**: 2023-01-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [中文版本](README_zh.md) ## gRPC Dubbo Proxy gRPC Dubbo Proxy, a gRPC gateway of Dubbo, switch from gRPC request to Dubbo protocol,then invoke Dubbo service and return to the result. Later Dubbo Proxy would combine several features, including circuit breaker, current-limiting, api management. ### instructions ``` SPRING_PROFILES_ACTIVE=product mvn clean spring-boot:run ``` Group and version is the mapping data in Dubbo service. ### gRPC ProtoBuf: ```proto syntax = "proto3"; option java_multiple_files = true; option java_package = "org.apache.dubbo.proxy.proto"; option optimize_for = SPEED; package dubbo; service ProxyService { rpc InvokeProxy (ProxyRequest) returns (ProxyReply) {} } message ProxyRequest { string application = 1; //can be null string interfaceName=2; // the dubbo service to invoke string version = 3; // the dubbo service version string group = 4; // group ,can be null string method=5; // method repeated string types=6;//method parameter array string values=7; //method value json array } message ProxyReply { string result=1; //result json string } ``` * In the Dubbo 2.7 version and later updates versions, paramTypes is optional data, if not filled in, gRPC Dubbo Proxy would get related mapping data from metadata center. * You can set registry address and metadata center address in `application-{profile}.yml` ``` proxy.registry.address: zookeeper://127.0.0.1:2181 #registry center address, same as Dubbo service's proxy.metadata-report.address: zookeeper://127.0.0.1:2181 #metadata center address, used by paramType search, support for dubbo 2.7 or later ```