GRPC is a high-performance, open-source and universal RPC framework designed for mobile and HTTP2. It is the first RPC framework based on ProtocolBuffers released by Google. Currently, the C, Java, and Go language versions are available. The source code of these three versions are all hosted on Github: grpc, grpc-java, and grpc-go. C supports C, C ++, Node. js, and P.
GRPC is a high-performance, open-source and universal RPC framework designed for mobile and HTTP/2. It is the first RPC framework based on Protocol Buffers released by Google. Currently, the C, Java, and Go language versions are available. The source code of these three versions are all hosted on Github: grpc, grpc-java, and grpc-go. C supports C, C ++, Node. js, and P.
GRPC is a high-performance, open-source and universal RPC framework designed for mobile and HTTP/2. It is the first RPC framework based on Protocol Buffers released by Google.
Currently, the C, Java, and Go language versions are available. The source code of these three versions are all hosted on Github: grpc, grpc-java, and grpc-go. The C version supports C, C ++, Node. js, Python, Ruby, Objective-C, PHP, and C #.
Based on the HTTP/2 standard design, GRPC provides features such as bidirectional stream control, traffic control, header compression, and multi-reuse requests on a single TCP connection. These features make mobile devices better able to save power and space.
Service Interface Definition instance
Use Protocol Buffers to define services:
message HelloRequest { string greeting = 1;}message HelloResponse { string reply = 1;}service HelloService { rpc SayHello(HelloRequest) returns (HelloResponse);}
Protocol Buffers (protobuf) is a data description language developed by Google. Similar to XML, protobuf can serialize structured data and be used for data storage and communication protocols. It does not rely on languages and platforms and is highly scalable. Currently, C ++, JAVA, Python, and other programming languages are officially supported, but a large number of third-party expansion packages covering almost all languages can be found.