Go
How to use native RPC and microservice in golang Microservice 1. What is micro service It uses a set of small services to develop a single application. Each service runs in an independent process. Generally, it uses lightweight communication mechanism to interconnect, and they can be deployed UTF-8...
Posted by tendrousbeastie on Thu, 13 May 2021 02:34:39 +0930
[TOC] How to use native RPC and microservice in golang Microservice 1. What is micro service It uses a set of small services to develop a single application. Each service runs in an independent process. Generally, it uses lightweight communication mechanism to interconnect, and they can be deplUTF-8...
Posted by dave_55 on Thu, 13 May 2021 03:54:17 +0930
Have you ever focused on throughput when using message queuing? Have you thought about the factors affecting throughput? Have you considered how to improve? Have you summarized best practices? This article takes you to discuss the implementation of high throughput Go framework for message queuiUTF-8...
Posted by vote-for-pedro on Thu, 13 May 2021 06:09:20 +0930
Original address: http://zero-tt.fun/go/cron/ Speaking of Go's timing task, I have to learn a wave of robfish / cron packages, github address 1. Using Demo 1.1 every second package main import ( "fmt" "time" "github.com/robfig/cron/v3" ) func main() { job := cron.New( cron.WithSeconds(), // AddUTF-8...
Posted by proxydude on Sat, 15 May 2021 08:55:05 +0930
Reading position 6.10 Knowledge points 1. Database driven 1.1 Foundation The database/sql package provided by Go encapsulates a database operation object, which contains the basic methods of operating the database, including the interface and specification Understanding: the driver is the speciUTF-8...
Posted by brentech on Tue, 18 May 2021 05:09:33 +0930
Compared with C, for the sake of safety, Go language adds restrictions on pointer types and operations, which makes Go programmers not only enjoy the convenience of pointer, but also avoid the danger of pointer. In addition to the normal pointer, Go language provides a general pointer in the unUTF-8...
Posted by maskme on Sat, 22 May 2021 02:40:57 +0930
[TOC] gRPC Certification Let's review the basic structure of gRPC gRPC is a typical C/S model, which needs to develop both client and server. Client and server need to reach an agreement to transfer data using a certain confirmed transport protocol. gRPC usually uses protobuf as the transport pUTF-8...
Posted by ahmedkl on Thu, 27 May 2021 01:49:46 +0930
Please indicate the source of reprint“ IT education for old boys" Source website: https://www.sholdboyedu.com/new/676.html MySQL is a common relational database. This paper introduces how to operate MySQL database with Go language. Go operating MySQL connect The database/sql package in Go languUTF-8...
Posted by satya61229 on Thu, 27 May 2021 04:59:28 +0930
Go data type variable package main import "fmt" func main(){ //Define / declare variables var i int //Assign a value to i. if not, the default value is 0 i=10 //Using variables fmt.Println("i=",i) } A variable represents a storage area in memory This area has its own name (variable name) and tyUTF-8...
Posted by getmukesh on Sat, 29 May 2021 02:19:48 +0930
preface scheduling algorithm It only abstracts and implements the scheduling cycle from PreFilter to Score extension point, so how does the scheduling algorithm cooperate with other extension points to realize Pod scheduling? Kube Scheduler defines the Scheduler type, which realizes the whole pUTF-8...
Posted by joejoejoe on Wed, 02 Jun 2021 06:54:27 +0930