Practices of Go Microservices on Post-Kubernetes-Wei ZhengObservability - Metrics • Based on Kubernetes/Prometheus/Grafana • Builtin framework and Go runtime collectors,Export APIs for user to add their own metrics • Declare Prometheus annotations for service discovery0 码力 | 59 页 | 5.66 MB | 1 年前3
Real World Goto get right, but • Goroutines and channels made it manageable. "In the same way that garbage collectors improve upon malloc and free, we found that goroutines and channels improve upon the lock-based0 码力 | 49 页 | 595.19 KB | 1 年前3
Go 101 (Golang 101) v1.21.0we should also consider the fact that too many pointers will increase the pressure of garbage collectors at run time. So whether large-size struct and array types or their corresponding pointer types until fmt.Println is called, then we can use a runtime.KeepAlive function call to tell garbage collectors that the slice bs and the value parts referenced by it are still in use. For example, package0 码力 | 610 页 | 945.17 KB | 1 年前3
Go 101 (Golang 101) v1.21.0we should also consider the fact that too many pointers will increase the pressure of garbage collectors at run time. So whether large-size struct and array types or their corresponding pointer types until fmt.Println is called, then we can use a runtime.KeepAlive function call to tell garbage collectors that the slice bs and the value parts referenced by it are still in use. For example, 1| package0 码力 | 880 页 | 833.34 KB | 1 年前3
Go 101 (Golang 101) v1.21.0we should also consider the fact that too many pointers will increase the pressure of garbage collectors at run time. So whether large-size struct and array types or their corresponding pointer types until fmt.Println is called, then we can use a runtime.KeepAlive function call to tell garbage collectors that the slice bs and the value parts referenced by it are still in use. For example, 1| package0 码力 | 630 页 | 3.77 MB | 1 年前3
共 5 条
- 1













