{"id":31701879,"url":"https://github.com/getlantern/balancer","last_synced_at":"2025-10-08T21:09:43.957Z","repository":{"id":23613445,"uuid":"26982702","full_name":"getlantern/balancer","owner":"getlantern","description":"Connection balancer library for Go","archived":false,"fork":false,"pushed_at":"2018-03-02T17:35:58.000Z","size":47,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-06-19T05:58:21.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getlantern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-21T23:44:19.000Z","updated_at":"2020-08-28T20:43:12.000Z","dependencies_parsed_at":"2022-08-22T02:10:51.308Z","dependency_job_id":null,"html_url":"https://github.com/getlantern/balancer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/getlantern/balancer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fbalancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fbalancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fbalancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fbalancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getlantern","download_url":"https://codeload.github.com/getlantern/balancer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fbalancer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000716,"owners_count":26082837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-08T21:09:40.084Z","updated_at":"2025-10-08T21:09:43.951Z","avatar_url":"https://github.com/getlantern.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"balancer [![Travis CI Status](https://travis-ci.org/getlantern/balancer.svg?branch=master)](https://travis-ci.org/getlantern/balancer)\u0026nbsp;[![Coverage Status](https://coveralls.io/repos/getlantern/balancer/badge.png)](https://coveralls.io/r/getlantern/balancer)\u0026nbsp;[![GoDoc](https://godoc.org/github.com/getlantern/balancer?status.png)](http://godoc.org/github.com/getlantern/balancer)\n==========\nConnection balancer library for Go\n\nTo install:\n\n`go get github.com/getlantern/balancer`\n\nFor docs:\n\n`godoc github.com/getlantern/balancer`\n\n===Benchmark\n\n`go test -bench .` to evaluate performance of different strategy to pick\ndialer. `Sticky` and `QualityFirst` strategy seems has better result at this\nmoment.\n\nExample output:\n```\nBenchmarkQualityFirst-4   100000         23222 ns/op\n--- BENCH: BenchmarkQualityFirst-4\n    benchmark_test.go:98: '1%': 83/16850, '10%': 199/3596, '99%': 228/524,  fail/total = 510/20970 (2.4%) in 10000 runs\n    benchmark_test.go:98: '1% 10ns±8ns': 85/18319, '10% 10ns±8ns': 86/1982, '50% 10ns±8ns': 85/457,  fail/total = 256/20758 (1.2%) in 10000 runs\n    benchmark_test.go:98: '1%': 843/169828, '10%': 1784/35104, '99%': 3074/6879,  fail/total = 5701/211811 (2.7%) in 100000 runs\n    benchmark_test.go:98: '1% 10ns±8ns': 955/184247, '10% 10ns±8ns': 954/19488, '50% 10ns±8ns': 954/4734,  fail/total = 2863/208469 (1.4%) in 100000 runs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetlantern%2Fbalancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetlantern%2Fbalancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetlantern%2Fbalancer/lists"}