{"id":21822180,"url":"https://github.com/stylepatrick/spring-cloud-eureka-load-balancer","last_synced_at":"2025-08-10T00:12:30.470Z","repository":{"id":120903122,"uuid":"476392389","full_name":"stylepatrick/spring-cloud-eureka-load-balancer","owner":"stylepatrick","description":"Spring Cloud Eureka with one feign-client, one spring-cloud-gateway, one gateway-client and two servers with ribbon load balancer. Spring Security used for authentication.","archived":false,"fork":false,"pushed_at":"2022-04-01T18:30:50.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T11:22:46.165Z","etag":null,"topics":["netflix-eureka","spring-actuator","spring-boot","spring-cloud","spring-cloud-gateway","spring-retry","spring-security"],"latest_commit_sha":null,"homepage":"","language":"Java","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/stylepatrick.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":"2022-03-31T16:38:05.000Z","updated_at":"2024-05-06T03:16:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb291ade-262f-4db3-8aa6-d47b3e61a1ea","html_url":"https://github.com/stylepatrick/spring-cloud-eureka-load-balancer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stylepatrick/spring-cloud-eureka-load-balancer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylepatrick%2Fspring-cloud-eureka-load-balancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylepatrick%2Fspring-cloud-eureka-load-balancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylepatrick%2Fspring-cloud-eureka-load-balancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylepatrick%2Fspring-cloud-eureka-load-balancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stylepatrick","download_url":"https://codeload.github.com/stylepatrick/spring-cloud-eureka-load-balancer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylepatrick%2Fspring-cloud-eureka-load-balancer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269655716,"owners_count":24454511,"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-08-09T02:00:10.424Z","response_time":111,"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":["netflix-eureka","spring-actuator","spring-boot","spring-cloud","spring-cloud-gateway","spring-retry","spring-security"],"created_at":"2024-11-27T17:13:31.594Z","updated_at":"2025-08-10T00:12:30.441Z","avatar_url":"https://github.com/stylepatrick.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-cloud-eureka-load-balancer\n\nThe project consists of:\n\n- **an eureka-discovery-service (multiple replicas are possible) -\u003e 8761**\n- **feign-client -\u003e 8080**\n- **cloud-gateway -\u003e 8282**\n- **gateway-client -\u003e 8081**\n- **two servers (provides the same API) -\u003e 71, 72**\n\nEverything is secured by basic auth with spring-security.\n\nThe feign-client contacts one of the two servers via the eureka-discovery-service, depending on the ribbon load balancer. \nIf one request fails (server goes offline, etc.), spring-retry will contact the next one. Client will not see any fail response.\n\nA cloud-gateway and gateway-client is available to demonstrate how the load balancing could work, without having a feign-client.\nThe gateway-client does not need to part of the eureka-discovery-service and should simulate an external client, who access the servers over the cloud-gateway. \nAlso here spring-retry is used to contact the next server if the first request fails.\n\nActuator endpoint /info and /health is open, metrics are secured by spring-security.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylepatrick%2Fspring-cloud-eureka-load-balancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstylepatrick%2Fspring-cloud-eureka-load-balancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylepatrick%2Fspring-cloud-eureka-load-balancer/lists"}