Setup and config Go environment on Ubuntu 16.04 and Centos 7
Trinhhieu668 | Golang
by trinhhieu668
3y ago
Recently somebody have some questions for me. Why i can’t run go get ? How to change workspace project with Go ? Why after i exit session on terminal then all config is reset and go command not found ? Ok, the following below i will detail, how i installed Go ? You can get more information about it at page https://golang.org/doc/install.  Step 1 : Download the latest or the stable version Go. Currently i use Go version 1.9.1 for my project. wget https://storage.googleapis.com/golang/go1.9.1.linux-amd64.tar.gz Step 2: Check Go is installed on system and clear it. sudo rm -rf /usr/lo ..read more
Visit website
Circuit Breaker pattern – Go implement Part 3
Trinhhieu668 | Golang
by trinhhieu668
3y ago
In the previous post, i have implemented simple circuit-breaker pattern with Java, and today i will do it with Go Talk about advanced of Go + Golang has great concurrency, the memory required for creating thread is very light. + Code is simple and very clean, easy to lean. + Appropriate and effective for service application. + …… You can get more information at (https://hackernoon.com/why-i-love-golang-90085898b4f7) Focus on main issue of this post, i will talk about step by step to implement breaker pattern + Create package and file breaker.go into the folder + Define state service and s ..read more
Visit website
Circuit Breaker pattern – Overview Part 1
Trinhhieu668 | Golang
by trinhhieu668
3y ago
In our system, we have many services and it is allocated at difference servers. We have used RPC (Remote Procedure Calls) to call between services but I have a problem about failure with remote call.In a distributed environment calls to remote resource and services can fail due to transient faults such as slow network connections, timeouts or the resources being over committed or temporary unavailable. So i started to learn about “retry pattern” and i have found “Circuit breaker” as pattern give me a solution for my problem. I have set some goals as follows + Learn about “Circuit breaker patte ..read more
Visit website

Follow Trinhhieu668 | Golang on FeedSpot

Continue with Google
Continue with Apple
OR