{"id":16619975,"url":"https://github.com/cepr0/sb-consul-demo","last_synced_at":"2026-04-24T22:36:07.781Z","repository":{"id":130472476,"uuid":"262774536","full_name":"Cepr0/sb-consul-demo","owner":"Cepr0","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-11T11:26:59.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T11:02:34.204Z","etag":null,"topics":["k6","load-balancing","microservices","service-discovery","spring-boot","spring-cloud-consul","traefik"],"latest_commit_sha":null,"homepage":null,"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/Cepr0.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":"2020-05-10T11:43:24.000Z","updated_at":"2020-05-19T07:44:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e1b3913-d277-4ff7-b088-d0a23ec7ce12","html_url":"https://github.com/Cepr0/sb-consul-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Cepr0/sb-consul-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cepr0%2Fsb-consul-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cepr0%2Fsb-consul-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cepr0%2Fsb-consul-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cepr0%2Fsb-consul-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cepr0","download_url":"https://codeload.github.com/Cepr0/sb-consul-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cepr0%2Fsb-consul-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32243538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["k6","load-balancing","microservices","service-discovery","spring-boot","spring-cloud-consul","traefik"],"created_at":"2024-10-12T02:43:12.309Z","updated_at":"2026-04-24T22:36:07.744Z","avatar_url":"https://github.com/Cepr0.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Spring Boot microservices with Consul cluster and Traefik\n\nDemo of working Spring Boot microservices with [Consul](https://www.consul.io/) cluster, for service discovering, and \n[Traefik](https://docs.traefik.io/) for external automatic and dynamic routing and load balancing.\n\n1. Build project\n\n```\nmvn clean package\n```\n\n2. Run Consul cluster and Traefik \n\n```\ndocker-compose up -d\n```\n\n3. Run microservices (two instances per service)\n\n```\ndocker-compose -f services-compose.yml up -d --scale first-service=2 --scale second-service=2 --build\n```\n\n4. Watch how they 'talk' with each other:\n\n```\ndocker-compose -f services-compose.yml logs -f\n```\n\n5. Run external requests\n\n- manually:\n\n```\ncurl 'http://localhost/demo/one'\ncurl 'http://localhost/demo/two'\n```\n\n- or with [k6](https://k6.io/)\n\n```\nk6 run src/test/js/load-test.js --duration 1m\n```\n\nThen watch reflection of their work in the logs. \n\n6. Stop the environment\n\n```\ndocker-compose -f services-compose.yml down\ndocker-compose down\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcepr0%2Fsb-consul-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcepr0%2Fsb-consul-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcepr0%2Fsb-consul-demo/lists"}