Core Module shenyu-plugin-brpc
Core Class org.apache.shenyu.plugin.brpc.BrpcPlugin
Add related dependencies and enable plugin, please refer to: Quick start with Brpc .
Brpc
client access, please refer to: Brpc Proxy .
Each Brpc
interface method, will correspond to a metadata, when the Brpc
application client access to the Apache ShenYu
gateway, will be automatically registered, can be viewed in the shenyu-admin
background management system of the BasicConfig --> Metadata management.
AppName: specifies the name of the application to which the metadata belongs.
MethodName: the name of the method to call.
Path: http request path.
PathDescribe: the description of the path is easy to view.
ParamsType: the parameters are separated by commas (,) in the order of interface parameter types.
RpcExpand: description of each interface in a Brpc
service. For example, here is the interface information for the Brpc
service:
{ "methodInfo":[ { "methodName":"getUser", "paramTypes":[ { "left":"java.lang.Long", "right":"userId" } ] } ], "host": "127.0.0.1", "port": 8005 }
Interface: The fully qualified class name of the Brpc
interface.
RpcType:choose Brpc
.