{"id":18773896,"url":"https://github.com/ejunjsh/spring-cloud-code","last_synced_at":"2025-06-12T00:05:39.593Z","repository":{"id":109691095,"uuid":"150836175","full_name":"ejunjsh/spring-cloud-code","owner":"ejunjsh","description":"some code for me to practice the spring-cloud","archived":false,"fork":false,"pushed_at":"2018-11-10T04:45:08.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-21T02:46:16.776Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ejunjsh.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":"2018-09-29T07:12:57.000Z","updated_at":"2018-11-10T04:45:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"d57974e0-6f27-425d-955f-9fa5b0de29f3","html_url":"https://github.com/ejunjsh/spring-cloud-code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ejunjsh/spring-cloud-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fspring-cloud-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fspring-cloud-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fspring-cloud-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fspring-cloud-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejunjsh","download_url":"https://codeload.github.com/ejunjsh/spring-cloud-code/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fspring-cloud-code/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259368020,"owners_count":22846824,"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-07T19:36:10.209Z","updated_at":"2025-06-12T00:05:39.576Z","avatar_url":"https://github.com/ejunjsh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-cloud-code\n\nsomething code for me to practice the spring-cloud\n\n## precondition\n\n    sh mvn.sh\n    sudo docker-compose up\n    \nabove command will launch a cluster that consist of one eureka server,two providers,one consumer,one config server and one config client\n\n\n## spring-cloud-config\n\nyou can check config client service `http://[docker host ip]:9200/` to see if it get config from config server\n\n## spring-cloud-eureka\n\nyou can check `http://[docker host ip]:9001/eureka` to see the eureka cluster.\n\nyou can check consumer service `http://[docker host ip]:9003/hello` and you will see below\n\n    hello world and this is from eureka-provider-2\n    \nrefresh again\n\n    hello world and this is from eureka-provider-1\n    \nconsumer balances the requests to providers\n\n\n## spring-cloud-hystrix \n\n\nvisit `http://[docker host ip]:9003/hystrix/error`,`http://[docker host ip]:9003/hystrix/timeout` and `http://[docker host ip]:9003/hystrix/nonresponse`\n\nyou will see \n\n````\nserver have been crash, try again later.\n````\n\nabove three links show hystrix can deal with exception,timeout and wrong backend server response in hystrix method,\n\ndetails in [HystrixTestController.java](https://github.com/ejunjsh/spring-cloud-code/blob/master/spring-cloud-eureka-consumer/src/main/java/com/sky/code/springcloudeureka/consumer/controller/HystrixTestController.java)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejunjsh%2Fspring-cloud-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejunjsh%2Fspring-cloud-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejunjsh%2Fspring-cloud-code/lists"}