golang实现一个负载均衡(随机,轮训)

今天用go实现一个简单的负载均衡的算法,虽然简单,仍是要写一下。golang 1.首先就是服务器的信息,web package balance type Instance struct { host string port int } func NewInstance(host string, port int) *Instance { return &Instance
相关文章
相关标签/搜索