{"id":21322093,"url":"https://github.com/advantageous/lokate","last_synced_at":"2025-03-15T22:44:51.693Z","repository":{"id":77191100,"uuid":"52471358","full_name":"advantageous/lokate","owner":"advantageous","description":"service discovery library","archived":false,"fork":false,"pushed_at":"2017-03-28T19:39:08.000Z","size":234,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-01-22T11:47:57.617Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/advantageous.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-24T20:13:23.000Z","updated_at":"2017-03-28T19:37:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"431931ad-f252-485c-8d2a-d583270aff1d","html_url":"https://github.com/advantageous/lokate","commit_stats":null,"previous_names":["advantageous/service-discovery-lib"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advantageous%2Flokate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advantageous%2Flokate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advantageous%2Flokate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advantageous%2Flokate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/advantageous","download_url":"https://codeload.github.com/advantageous/lokate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801612,"owners_count":20350106,"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":[],"created_at":"2024-11-21T20:13:14.172Z","updated_at":"2025-03-15T22:44:51.667Z","avatar_url":"https://github.com/advantageous.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discovery Service\nVert.x service for service discovery.\n\n## Configuration URIs\n\n\nDNS\n```\ndns://localhost:8600/\n```\n\nConsul\n```\nconsul:http://192.168.99.100:8500\n```\n## Query URIs\n\n\n\nDNS A Record Query.\n```\ndiscovery:dns:A:///admin.rbss-impressions-service-staging.service.consul?port=9090\ndiscovery:dns:A://localhost:8600/admin.rbss-impressions-service-staging.service.consul?port=8080\n```\n\nDNS SVR Record Query.\n\n```\ndiscovery:dns:SRV:///admin.rbss-impressions-service-staging.service.consul\ndiscovery:dns:SRV://localhost:8600/admin.rbss-impressions-service-staging.service.consul\n```\n\nConsul Query\n```\ndiscovery:consul:///impressions-service?name=eventbus\u0026staging\ndiscovery:consul:http://consul.rbmhops.net:3500/impressions-service?name=eventbus\u0026staging\n```\n\n\n## Echo\n\nOne service\n```\ndiscovery:echo:http://foo.com:8080\n```\n\nMany\n```\ndiscovery:echo:http://foo.com:9090,http://bar.com:9091\n```\n\n\nYou can use echo for testing locally. \n\n## Notes\nWe used to support Docker, EC2 and Mesos\n\nDocker\n```\ndocker:http://localhost:3500/\n```\n\n\nDocker Query using custom host/port\n```\ndiscovery:docker:http://localhost:3500/impressions-service?containerPort=8080\n```\n\n\nDocker Query using default host and port.\n```\ndiscovery:docker:///impressions-service?containerPort=8080\n```\n\nWe dropped the support. We might add it back. \nIf we add it back, we will do it as a separate jar file.\n\nWe use [JDK services](https://docs.oracle.com/javase/7/docs/api/java/util/ServiceLoader.html).\n\nResources/META-INF.services/io.advantageous.discovery.DiscoveryServiceFactory\n```\nio.advantageous.discovery.impl.DnsDiscoveryServiceFactory\nio.advantageous.discovery.impl.ConsulDiscoveryServiceFactory\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvantageous%2Flokate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadvantageous%2Flokate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvantageous%2Flokate/lists"}