{"id":19458712,"url":"https://github.com/improbable-eng/go-srvlb","last_synced_at":"2026-01-12T06:44:31.474Z","repository":{"id":57498874,"uuid":"75066857","full_name":"improbable-eng/go-srvlb","owner":"improbable-eng","description":"DNS SRV Load Balancer for gRPC","archived":false,"fork":false,"pushed_at":"2018-01-10T17:35:45.000Z","size":24,"stargazers_count":42,"open_issues_count":3,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-03T17:22:56.500Z","etag":null,"topics":["dns","golang","grpc","grpc-gateway","lb","load-balancer","srv"],"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/improbable-eng.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":"2016-11-29T09:48:28.000Z","updated_at":"2024-03-03T04:07:45.000Z","dependencies_parsed_at":"2022-09-26T18:11:27.451Z","dependency_job_id":null,"html_url":"https://github.com/improbable-eng/go-srvlb","commit_stats":null,"previous_names":["mwitkow/go-srvlb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/improbable-eng%2Fgo-srvlb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/improbable-eng%2Fgo-srvlb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/improbable-eng%2Fgo-srvlb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/improbable-eng%2Fgo-srvlb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/improbable-eng","download_url":"https://codeload.github.com/improbable-eng/go-srvlb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250766965,"owners_count":21483896,"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":["dns","golang","grpc","grpc-gateway","lb","load-balancer","srv"],"created_at":"2024-11-10T17:28:11.939Z","updated_at":"2026-01-12T06:44:31.453Z","avatar_url":"https://github.com/improbable-eng.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go gRPC DNS SRV Load Balancer\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/improbable-eng/go-srvlb)](http://goreportcard.com/report/improbable-eng/go-srvlb)\n[![GoDoc](http://img.shields.io/badge/GoDoc-Reference-blue.svg)](https://godoc.org/github.com/improbable-eng/go-srvlb)\n[![Apache 2.0 License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)\n[![Build Status](https://travis-ci.org/improbable-eng/go-srvlb.svg?branch=master)](https://travis-ci.org/improbable-eng/go-srvlb)\n\nA gRPC [`naming.Resolver`](https://godoc.org/google.golang.org/grpc/naming) that uses [DNS SRV](https://en.wikipedia.org/wiki/SRV_record).\nThis allows you to do simple client-side Round Robin load balancing of gRPC requests.\n\n# Usage\n\n```go\nrr := grpc.RoundRobin(grpcsrvlb.New(srv.NewGoResolver(2 * time.Second)))\nconn, err := grpc.Dial(\"grpc.my_service.my_cluster.internal.example.com\", grpc.WithBalancer(rr))\n```\n\nThis will resolve the DNS SRV address `grpc.my_service.my_cluster.internal.example.com` using the Golang DNS resolver\nwith an assumed TTL of 2 seconds and use that as a set of backends for the gRPC `RoundRobin` policy. From this point on\nall requests on the `conn` (reusable across gRPC clients) will be load balanced to a set of these backends.\n\n# Status\n\nThis is *alpha* software. It should work, but key components are missing:\n\n * [ ] unit tests\n * [ ] integration tests with gRPC\n * [ ] `srv.Resolver` implementation that respects `TTL`, see [miekg/dns](https://github.com/miekg/dns)\n\n\n# License\n\n `go-srvlb` is released under the Apache 2.0 license. See the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimprobable-eng%2Fgo-srvlb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimprobable-eng%2Fgo-srvlb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimprobable-eng%2Fgo-srvlb/lists"}