go-hostpool

Intelligently and flexibly pool among multiple hosts from your Go application

Github stars Tracking Chart

go-hostpool

Build Status GoDoc GitHub release

A Go package to intelligently and flexibly pool among multiple hosts from your Go application.
Host selection can operate in round robin or epsilon greedy mode, and unresponsive hosts are
avoided.
Usage example:

hp := hostpool.NewEpsilonGreedy([]string{"a", "b"}, 0, &hostpool.LinearEpsilonValueCalculator{})
hostResponse := hp.Get()
hostname := hostResponse.Host()
err := _ // (make a request with hostname)
hostResponse.Mark(err)

View more detailed documentation on godoc.org

Main metrics

Overview
Name With Ownerbitly/go-hostpool
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2012-11-14 19:17:47
Pushed At2025-08-13 03:33:11
Last Commit At2025-08-12 23:31:20
Release Count2
Last Release Namev0.1.1 (Posted on )
First Release Namev0.1.0 (Posted on )
用户参与
Stargazers Count380
Watchers Count28
Fork Count51
Commits Count30
Has Issues Enabled
Issues Count4
Issue Open Count2
Pull Requests Count10
Pull Requests Open Count1
Pull Requests Close Count4
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private