{"id":19028738,"url":"https://github.com/researchgate/archaius-consul","last_synced_at":"2025-10-11T21:37:26.646Z","repository":{"id":141869783,"uuid":"47120003","full_name":"researchgate/archaius-consul","owner":"researchgate","description":"Consul Connector for Archaius","archived":false,"fork":false,"pushed_at":"2017-01-02T11:41:29.000Z","size":28,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-23T15:52:55.965Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/researchgate.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-30T13:25:01.000Z","updated_at":"2022-11-24T10:06:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"fde982ae-b10e-4de3-b01b-ed12d580568b","html_url":"https://github.com/researchgate/archaius-consul","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/researchgate/archaius-consul","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/researchgate%2Farchaius-consul","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/researchgate%2Farchaius-consul/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/researchgate%2Farchaius-consul/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/researchgate%2Farchaius-consul/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/researchgate","download_url":"https://codeload.github.com/researchgate/archaius-consul/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/researchgate%2Farchaius-consul/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008859,"owners_count":26084518,"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-11T02:00:06.511Z","response_time":55,"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":"2024-11-08T21:12:10.940Z","updated_at":"2025-10-11T21:37:26.629Z","avatar_url":"https://github.com/researchgate.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Consul configuration source for archaius\n\nAdds a consul configuration source to archaius that uses the key value store.\n\n[ ![Download](https://api.bintray.com/packages/researchgate/maven/archaius-consul/images/download.svg) ](https://bintray.com/researchgate/maven/archaius-consul/_latestVersion)\n[![Build Status](https://travis-ci.org/researchgate/archaius-consul.svg?branch=master)](https://travis-ci.org/researchgate/archaius-consul)\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n\n## Basic usage\n```java\nString rootPath = \"/myServiceConf\";\n\nConsulConfigurationSource consulConfigurationSource = new ConsulConfigurationSource(rootPath);\nDynamicConfiguration dynamicConfiguration = new DynamicConfiguration(consulConfigurationSource, new FixedDelayPollingScheduler(-1, 5000, false));\nConfigurationManager.install(dynamicConfiguration);\n```\n\nNow for example hystrix is configurable with the consul key value store. By default it connects to the default of the consul client you can find in https://github.com/Ecwid/consul-api. (Usually it is localhost:8500)\nAs an alternative you can set the agent host:port on the constructor and also lists as \"host:port,host2:port\".\n\n## Consul is not available\nIf that happens the configuration will stay as it is and the configuration source will try to connect on the next interval again.\nBut if consul is not available on startup the configuration source doesn't set any configuration and tries to connect the next time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresearchgate%2Farchaius-consul","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fresearchgate%2Farchaius-consul","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresearchgate%2Farchaius-consul/lists"}