Introduction and Environmental Installation Suppose we have a project requirement and hope to use itRpcAs internalAPICommunication, but also want to provide externalRestful Api, write two sets of too cumbersome does not conform to So we came up withGrpcas well asGrpc GatewayThis is what we need Preparation link At the official beginning of ourGrpc+Grpc GatewayBefore practice, ..
Bring gRPC：gRPC and Related Introduction Original address:Bring gRPC：gRPC and Related Introduction Project address:go-grpc-example As the opening chapter, some knowledge related to gRPC will be introduced. Simply speaking, gRPC is an RPC framework designed based on HTTP/2 protocol, which uses Protobuf as IDL Have you ever wondered what they are? This article will introduce some common ..
Bring in grpc: grpcclient and server Original address:Bring in grpc: grpcclient and server Project address:go-grpc-example Preface This chapter will use Go to write gRPC Server and Client to communicate with each other. The following libraries will be used on top of this: google.golang.org/grpc github.com/golang/protobuf/protoc-gen-go Installation gRPC go get -u google.golang.org/grpc Protocol Buffers v3 wget https://github.com/google/protobuf/releases/download/v3.5.1/protobuf-all-3.5.1.zip ..
Bring in grpc: grpcstreaming, clientand server Original address:Bring in grpc: grpcstreaming, clientand server Project address:go-grpc-example Preface This section will introduce gRPC streaming, divided into three types: Server-sidestreaming rpcs: Server-side streaming RPC Client-sidestreaming rpcs: client streaming rpcs Bidirectional streaming RPC: bidirectional streaming RPC Flow Any technology is necessary because of its pain. If you want to ..