Section 2 grpc Java quick start

catalogue Step 1: create a project 1. Introduce dependency 2. Introducing plug-ins 3. Engineering structure Step 2: write helloword proto Step 3: generate code using plug-ins Step 4: copy the file to the corresponding package Step 5: use the generated code to write the client and server 1. Server code 2. Client code 3. Run This s ...

Added by markmil2002 on Sun, 19 Dec 2021 18:24:58 +0200

gRPC: Quickly configure generic API to get process meta-information

introduceThis article describes how to quickly configure a common API through rk-boot and obtain process meta-information.What is process meta-information?The process meta-information contains the following:NamedetailsAPI ListGet API ListgRPC Error InformationgRPC corresponds to grpc-gateway error informationOS InformationCurrent OS Information ...

Added by ddevitt on Wed, 15 Dec 2021 23:37:29 +0200

The Golang gRPC practice uses FlatBuffers encoding in gRPC

introducegRPC uses Protocol Buffers by default, and supports other codes, such as JSON and FlatBuffers.FlatBuffers is a cross platform serialization library designed to achieve maximum memory efficiency. It allows you to directly access serialized data without first parsing / unpacking it, while still having good forward / backward compatibilit ...

Added by webwannabee on Wed, 15 Dec 2021 19:41:12 +0200

GRPC: how to add API log interceptor / Middleware?

introduce This article describes how to add API log interceptors / middleware to gRPC microservices. What is log interceptor / Middleware? The log interceptor logs every API request. We will use rk-boot To start the gRPC service. Please visit the following address for a complete tutorial: https://rkdev.info/cnhttps://rkdocs.netl ...

Added by Mikersson on Sun, 10 Oct 2021 21:06:29 +0300