Pooling is frequently occurring in software field, such as connection pool\thread pool\routine poool etc. A pool is essentially to reuse resources.
Goroutines are a common concept in Go, which starts and ends with the life cycle of a go program. Today, let’s talk about Go’s goroutine leak.
A simple implement of circuit breaker with Go, trigger for fail-fast and return quickly when your API comes to high error rate durning a period of time. It’s a protection strategy that prevents the upstream from retrying repeatedly so that the downstream is overwhelmed.
Last time we talked about graceful shutdown of Go programs, today we will talk about graceful restarts.
From high availability to graceful shutdown/restart, to refinement to program offline/restart, etc. So what can we do in Go? Today let’s talk about the graceful shutdown of go programs.
In the last article, we talked about how to initiate a TCP connection in Go, and listed a full-duplex demo. Today, we will talk about connection pool management further.