Category : rpc

RPC service RPC is a Remote Procedure Call. Through RPC, we can call methods on other machines like local methods. Users will not feel the communication between servers. RPC plays a very important role in micro-service. Of course RPC is not a necessary way for micro-service. There are other ways to realize this remote call, ..

Read more

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, ..

Read more

Hello World InPrevious sectionWe have finished the basic configuration of the environment 2 This section will begin to write a complex Hello World, which involves a lot of knowledge. It is suggested that everyone should seriously think about the concepts in it. Demand Due to the bias of this practiceGrpc+Grpc GatewayOn the other hand, our ..

Read more

Into grpc: unamry and streaminterceptor Original address:Into grpc: unamry and streaminterceptorProject address:https://github.com/EDDYCJY/go … Preface I want to do something before or after each RPC method, how? Interceptor, which will be introduced in this chapter, can help you realize these functions in the right place. There are several ways In gRPC, the major classes can be ..

Read more

Bring into gRPC: Make custom authentication for RPC method Original address:Bring into gRPC: Make custom authentication for RPC methodProject address:https://github.com/EDDYCJY/go … Preface In the previous chapter, we introduced two methods (certificate is one) that can be globally authenticated: TLS certificate authentication Ca-based TLS certificate authentication Unary and Stream interceptor However, in actual requirements, RPC methods ..

Read more

Bring in grpcs: grpcdeals Original address:Bring in grpcs: grpcdealsProject address:https://github.com/EDDYCJY/go … Preface In the previous chapters, the basic usage of gRPC has been introduced. Then think about it, is it really okay for him to run naked? Then, there must be a problem. Today we will introduce the usage of gRPC Deadlines, a necessary skill. ..

Read more