{"id":18555693,"url":"https://github.com/romeh/spring-cloud-gateway-resilience4j","last_synced_at":"2025-04-09T23:32:26.265Z","repository":{"id":137544552,"uuid":"229985373","full_name":"Romeh/spring-cloud-gateway-resilience4j","owner":"Romeh","description":"Sample spring cloud gateway project to show how to use resilience4j as a gateway circuitbreaker ","archived":false,"fork":false,"pushed_at":"2020-05-25T16:23:13.000Z","size":48,"stargazers_count":35,"open_issues_count":3,"forks_count":16,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T13:50:44.486Z","etag":null,"topics":["circuit-breaker","mock-server","resilience4j","spring-boot-2","spring-boot-starter","spring-cloud-gateway","test-containers"],"latest_commit_sha":null,"homepage":null,"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/Romeh.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":"2019-12-24T18:08:54.000Z","updated_at":"2025-02-21T21:57:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1496514-f5d4-4046-b4a3-57d0d076eecb","html_url":"https://github.com/Romeh/spring-cloud-gateway-resilience4j","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romeh%2Fspring-cloud-gateway-resilience4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romeh%2Fspring-cloud-gateway-resilience4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romeh%2Fspring-cloud-gateway-resilience4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romeh%2Fspring-cloud-gateway-resilience4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Romeh","download_url":"https://codeload.github.com/Romeh/spring-cloud-gateway-resilience4j/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248129944,"owners_count":21052668,"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":["circuit-breaker","mock-server","resilience4j","spring-boot-2","spring-boot-starter","spring-cloud-gateway","test-containers"],"created_at":"2024-11-06T21:27:36.387Z","updated_at":"2025-04-09T23:32:26.257Z","avatar_url":"https://github.com/Romeh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Cloud Gateway with Resilient4J circuit breaker\n\nIn this project I'm showing how you can use spring cloud circuit-breaker starter for resilience4j with resilience4j spring boot starter so you can configure externally your circuitBreaker definitions\nin:  [Spring Cloud Gateway](https://cloud.spring.io/spring-cloud-gateway/reference/html/)\n\n## Getting Started \n\nCurrently you may find here examples of: \n1. Circuit Breaker and Fallback with [resilience4j](https://resilience4j.readme.io/docs/getting-started) - the detailed explanation is my on blog: https://mromeh.com/2019/12/26/spring-cloud-gateway-with-resilience4j-circuit-breaker/\n2. How to mock http service using mock server test containers for micro-services integration tests\n3. How to configure externally in spring config Resilience4j circuit breakers and integrate it with Spring cloud circuit breaker starter\n4. How to configure externally in spring config Resilience4j time limter and integrate it with Spring cloud circuit breaker starter\n5. How to check http status code and make circuit breaker act accordingly in the spring cloud gateway\n\n### Usage \n1. To build and run the main application you need to have Maven, JDK8+ and Docker.\n2. To build it run command `mvn clean install`\n3. During Maven build the JUnit integration tests are running. We are using [Testcontainers](https://www.testcontainers.org/) for mocking downstream service.\n\nFeel free to propose your code changes / extensions ! \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromeh%2Fspring-cloud-gateway-resilience4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromeh%2Fspring-cloud-gateway-resilience4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromeh%2Fspring-cloud-gateway-resilience4j/lists"}