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

Protobuf generate Go code plug-in gogo/protobuf

1. Start with json When it comes to serialization, the first thing you think of may be JSON or XML. These two serialization protocols are text-based encoding for data transmission. Similar to YAML. JSON has many advantages, making it one of the most widely used serialization protocols. JSON protocol is simple, human eye readable, very concise ...

Posted by krox on Fri, 18 Feb 2022 03:45:52 +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

Microservices have everything from code to k8s deployment series (VIII. Various queues)

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

Posted by nikko50 on Wed, 16 Feb 2022 04:43:35 +0100

[BlockChain] go realize BlockChain 7: Network

[BlockChain] go realize BlockChain 7: Network introduction So far, the prototype we have built has all the key features of blockchain: anonymous, secure and randomly generated addresses; Blockchain data storage; Workload proof system; Store transactions reliably. Although these features are indispensable, there are still deficiencies. It is t ...

Posted by diego25 on Tue, 15 Feb 2022 06:29:48 +0100

ch3 - using MongoDB data persistence -- using go gin to create distributed applications

Catalogue of series articles Chapter I gin preliminary understanding Chapter 2 setting API The third chapter uses MongoDB data persistence Note: The series of articles are learning notes corresponding to the original English books mentioned aboveRelated to their own practice code, including comments, on my gitee Welcome, starAll c ...

Posted by dreamkiller23 on Tue, 15 Feb 2022 06:17:36 +0100

Microservices have everything from code to k8s deployment (v. home stay service)

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

Posted by herando on Mon, 14 Feb 2022 10:30:27 +0100

Microservices have everything from code to k8s deployment (v. home stay service)

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 billybathgate on Mon, 14 Feb 2022 04:06:41 +0100

sort of Go language

sort In the previous map, we introduced how to traverse the map in sequence, in which the sort package is used. The sort package provides functions for sorting slices and user-defined data sets. Here are the methods commonly used in sort package. //Sort sort data. It calls data once Len determines the length and calls O(n*log(n)) times data L ...

Posted by ober on Sat, 12 Feb 2022 00:27:33 +0100

Distributed service data consistency - redis

Go redis distributed lock: github.com/go-redsync/redsync client := goredislib.NewClient(&goredislib.Options{ Addr: "10.211.55.6:6379", }) pool := goredis.NewPool(client) // or, pool := redigo.NewPool(...) rs := redsync.New(pool) //Set the lock name as required mutexName := "goods-1" var wg sync.WaitGroup wg.Add(20) //Set the lock as re ...

Posted by jackel15 on Fri, 11 Feb 2022 23:18:28 +0100