gRPC exception handling flow design

stay My blog Read this article 1. Core demands Service provider exceptions can be perceived by service consumersException classification and handling: If the business is abnormal, you need to return the corresponding error code to facilitate the service consumer's prompt + log of international copywriting.Non business exceptions (suc ...

Posted by binto on Fri, 04 Mar 2022 16:55:35 +0100

Microservices have everything from code to k8s deployment (X. error handling)

We will use a series to explain the complete practice of microservices from requirements to online, from code to k8s deployment, from logging to monitoring. The whole project uses the micro services developed by go zero, which basically includes go zero and some middleware developed by relevant go zero authors. The technology stack used is bas ...

Posted by michalchojno on Fri, 18 Feb 2022 06:30:56 +0100

Microservices have everything from code to k8s deployment series (IX. transaction elaboration)

We will use a series to explain the complete practice of microservices from requirements to online, from code to k8s deployment, from logging to monitoring. The whole project uses the micro services developed by go zero, which basically includes go zero and some middleware developed by relevant go zero authors. The technology stack used is bas ...

Posted by Balu on Thu, 17 Feb 2022 03:50:40 +0100

The most detailed gRPC(Go) tutorial in history - client load balancing

From: month https://lixueduan.com Original text: https://www.lixueduan.com/post/grpc/12-client-side-loadbalance/ This paper mainly introduces the built-in load balancing strategy of gRPC and its configuration and use, including Name Resolver, ServiceConfig, etc. For relevant codes of gRPC series, see Github 1. General gRPC load balan ...

Posted by reddymade on Tue, 08 Feb 2022 00:52:13 +0100

Take you ten days to easily finish the finale of Go micro service (Distributed Transaction)

preface We will show you a go zero micro service example in detail through a series of articles. The whole series is divided into ten articles, and the directory structure is as follows: Environment construction Service splitting User services Product service Order service Payment services RPC service Auth authentication Serv ...

Posted by trellie on Mon, 31 Jan 2022 01:33:24 +0100

balancer for grpc source code reading

BalancergRPC balancerbackgroundNext, in the previous article, "Resolver of gRPC plug-in programming", gRPC parses the target into Resolver After the target is set, it passes the Resolver Builder. Build method callresolver.ClientConn.UpdateState(State) error method. What does this method do? Let's move on to the source code in this art ...

Posted by kamsmartx on Wed, 19 Jan 2022 19:59:54 +0100

Option mode of Golang common design mode

Students familiar with Python development know that Python has default parameters, so that when instantiating an object, we can selectively override some default parameters as needed to decide how to instantiate the object. When an object has multiple default parameters, this feature is very easy to use and can gracefully simplify the code. Th ...

Posted by markyoung1984 on Tue, 11 Jan 2022 04:23:13 +0100

The third generation microservice architecture: a practical case of blog microservice based on Go, supporting distributed transactions

This is a blog micro service Demo based on Golang, which can be deployed in kubernetes istio cluster with one click, and supports distributed transactions. Project address: github.com/jxlwqq/blog-microservic... , welcome to Star and PR. framework Kiali Console directory structure Mainly follow Standard Go Project Layout Recommended directo ...

Posted by srividya on Wed, 05 Jan 2022 13:01:54 +0100

Parsing WeNet cloud reasoning deployment code

Abstract: WeNet is an open source end-to-end ASR toolkit. Compared with open source voice projects such as ESPnet, its biggest advantage is that it provides a complete set of tool chain from training to deployment, making the industrial implementation of ASR services easier. This article is shared from Huawei cloud community< WeNet cloud ...

Posted by MarkR on Tue, 14 Dec 2021 10:52:06 +0100

gRPC security Part-2: fast implementation of server-side JWT authentication

introduceThis article describes how to rk-boot Implement the server JWT verification logic.What is JWT?JSON network token is an Internet standard used to create data with optional signature or optional encryption so that claims can be safely represented between two parties. The token is signed with a private secret or public / private key.In sh ...

Posted by blackandwhite on Wed, 08 Dec 2021 22:47:55 +0100