{"id":13413818,"url":"https://github.com/Bilibili/discovery","last_synced_at":"2025-03-14T20:30:38.443Z","repository":{"id":43612333,"uuid":"130362273","full_name":"bilibili/discovery","owner":"bilibili","description":"A registry for resilient mid-tier load balancing and failover.","archived":false,"fork":false,"pushed_at":"2023-07-16T03:33:04.000Z","size":2502,"stargazers_count":1787,"open_issues_count":27,"forks_count":399,"subscribers_count":62,"default_branch":"master","last_synced_at":"2025-03-09T16:23:12.169Z","etag":null,"topics":["discovery","eureka","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bilibili.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-04-20T12:57:50.000Z","updated_at":"2025-03-03T03:00:08.000Z","dependencies_parsed_at":"2023-10-20T18:24:54.207Z","dependency_job_id":null,"html_url":"https://github.com/bilibili/discovery","commit_stats":{"total_commits":146,"total_committers":22,"mean_commits":6.636363636363637,"dds":0.6712328767123288,"last_synced_commit":"1e12d5c0080ecd7ce97ab78076ef36dda8d56a1a"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilibili%2Fdiscovery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilibili%2Fdiscovery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilibili%2Fdiscovery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilibili%2Fdiscovery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bilibili","download_url":"https://codeload.github.com/bilibili/discovery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243641954,"owners_count":20323940,"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","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":["discovery","eureka","golang"],"created_at":"2024-07-30T20:01:50.209Z","updated_at":"2025-03-14T20:30:38.113Z","avatar_url":"https://github.com/bilibili.png","language":"Go","readme":"# Discovery \n[![Build Status](https://travis-ci.org/bilibili/discovery.svg?branch=master)](https://travis-ci.org/bilibili/discovery) \n[![Go Report Card](https://goreportcard.com/badge/github.com/bilibili/discovery)](https://goreportcard.com/report/github.com/bilibili/discovery)\n[![codecov](https://codecov.io/gh/Bilibili/discovery/branch/master/graph/badge.svg)](https://codecov.io/gh/Bilibili/discovery)\n\nDiscovery is a based service that is production-ready and primarily used at [Bilibili](https://www.bilibili.com/) for locating services for the purpose of load balancing and failover of middle-tier servers.\n\n## Quick Start\n\n### env\n\n`go1.12.x` (and later)\n\n### build\n```shell\ncd $GOPATH/src\ngit clone https://github.com/bilibili/discovery.git\ncd discovery/cmd/discovery\ngo build\n```\n\n### run\n```shell\n./discovery -conf discovery.toml -alsologtostderr\n```\n\n`-alsologtostderr` is `glog`'s flag，means print into stderr. If you hope print into file, can use `-log.dir=\"/tmp\"`. [view glog doc](https://godoc.org/github.com/golang/glog).\n\n### Configuration\n\nYou can view the comments in `cmd/discovery/discovery.toml` to understand the meaning of the config.\n\n### Client\n\n* [API Doc](doc/api.md)\n* [Go SDK](naming/client.go) | [Example](naming/example_test.go)\n* [Java SDK](https://github.com/flygit/discoveryJavaSDK)\n* [CPP SDK](https://github.com/brpc/brpc/blob/master/src/brpc/policy/discovery_naming_service.cpp)\n* [Python SDK](https://github.com/tomwei7/discovery-client)\n* [other language](doc/sdk.md)\n\n## Intro/Arch/Practice\n\n* [Introduction](doc/intro.md)\n* [Architecture](doc/arch.md)\n* [Practice in Bilibili](doc/practice.md)\n\n## Feedback\n\nPlease report bugs, concerns, suggestions by issues, or join QQ-group 716486124 to discuss problems around source code.\n","funding_links":[],"categories":["Server Applications","服务器应用程序","服务端应用"],"sub_categories":["HTTP Clients","HTTP客户端","查询语","交流"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBilibili%2Fdiscovery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBilibili%2Fdiscovery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBilibili%2Fdiscovery/lists"}