{"id":36420727,"url":"https://github.com/failurewall/failurewall","last_synced_at":"2026-01-11T17:33:59.291Z","repository":{"id":2997683,"uuid":"48129462","full_name":"failurewall/failurewall","owner":"failurewall","description":"Destroys failures.","archived":false,"fork":false,"pushed_at":"2025-12-05T04:40:38.000Z","size":218,"stargazers_count":66,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-12-08T12:18:13.055Z","etag":null,"topics":["akka","circuit-breaker","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/failurewall.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-12-16T19:06:04.000Z","updated_at":"2025-12-05T04:40:40.000Z","dependencies_parsed_at":"2023-07-05T19:49:28.813Z","dependency_job_id":"bad5b36b-e464-4e66-b194-45844fa6ed7e","html_url":"https://github.com/failurewall/failurewall","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/failurewall/failurewall","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/failurewall%2Ffailurewall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/failurewall%2Ffailurewall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/failurewall%2Ffailurewall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/failurewall%2Ffailurewall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/failurewall","download_url":"https://codeload.github.com/failurewall/failurewall/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/failurewall%2Ffailurewall/sbom","scorecard":{"id":391486,"data":{"date":"2025-08-11","repo":{"name":"github.com/failurewall/failurewall","commit":"05d959ba81fb912e62fe7f0b0484edb4b880e690"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.5,"checks":[{"name":"Code-Review","score":9,"reason":"Found 29/30 approved changesets -- score normalized to 9","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":5,"reason":"6 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/failurewall/failurewall/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/failurewall/failurewall/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/failurewall/failurewall/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/failurewall/failurewall/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/failurewall/failurewall/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/failurewall/failurewall/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/failurewall/failurewall/release.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:7"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T17:55:38.183Z","repository_id":2997683,"created_at":"2025-08-18T17:55:38.183Z","updated_at":"2025-08-18T17:55:38.183Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28315879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"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":["akka","circuit-breaker","scala"],"created_at":"2026-01-11T17:33:58.794Z","updated_at":"2026-01-11T17:33:59.280Z","avatar_url":"https://github.com/failurewall.png","language":"Scala","funding_links":[],"categories":["容错组件"],"sub_categories":["微服务框架"],"readme":"# Failurewall\n\nThis is a library to protect applications against failures, and helpful in developing stable, responsive and resilient systems.\n\nFailurewall is inspired by [Hystrix](https://github.com/Netflix/Hystrix) and adapted for `scala.concurrent.Future`.\n\n## Getting Started\n\nYou should add the following dependency.\n\n```\nlibraryDependencies += \"com.okumin\" %% \"failurewall-core\" % \"0.5.0\"\n```\n\nIf you are using Akka 2.4, you can use `failurewall-akka`.\n`failurewall-akka` provides the following failurewalls.\n\n- circuit breaker\n- retry with backoff\n- timeout\n\n```\nlibraryDependencies += \"com.okumin\" %% \"failurewall-akka\" % \"0.5.0\"\n```\n\nIf you are using Akka 2.3, see also [failurewall-akka23](https://github.com/failurewall/failurewall-akka23).\n\n## How to use\n\n### As a Proxy\n\nFailurewall is simple to use, wrapping `scala.concurrent.Future` to be protected.\nEach failurewall has abilities to handle failures.\n\n```scala\nobject HttpClient {\n  def get(url: String): Future[Response] = ???\n}\n\nval wall: Failurewall[Response, Response] = ???\nval response: Future[Response] = wall.call(HttpClient.get(\"http://okumin.com/\"))\n```\n\n### Composability\n\nFailurewalls has their own ability, e.g. retrying, checking rate limits and throttling.\n`Failurewall#compose` makes Failurewalls decorate such features.\n\n```scala\nval wallSina: Failurewall[Int, String] = ???\nval wallRose: Failurewall[Int, Int] = ???\nval wallMaria: Failurewall[Double, Int] = ???\n\nval walls: [Double, String] = wallSina compose wallRose compose wallMaria\n```\n\n## Built-in walls(failurewall-core)\n\n### [RetryFailurewall](https://github.com/failurewall/failurewall/blob/main/failurewall-core/src/main/scala/failurewall/retry/RetryFailurewall.scala)\n\nRetries on temporary failures.\n\n```scala\nval wall = RetryFailurewall[Response](10, executionContext)\nwall.call(Future.failed(new RuntimeException)) // retry 10 times\n```\n\n### [StdSemaphoreFailurewall](https://github.com/failurewall/failurewall/blob/main/failurewall-core/src/main/scala/failurewall/semaphore/StdSemaphoreFailurewall.scala)\n\nKeeps resource usage constant.\n\n```scala\nval wall = StdSemaphoreFailurewall[Response](10, executionContext)\nval results = (1 to 100).map { _ =\u003e\n  // fails immediately while other 10 calls are running\n  wall.call(doSomeOperation())\n}\n```\n\n### [StopwatchFailurewall](https://github.com/failurewall/failurewall/blob/main/failurewall-core/src/main/scala/failurewall/stopwatch/StopwatchFailurewall.scala)\n\nMeasures the execution time.\n\n```scala\nval wall = StopwatchFailurewall[Response](executionContext)\nwall.call(doSomeOperation()) // returns Future[(Try[Response], FiniteDuration)]\n```\n\n## Built-in walls(failurewall-akka)\n\n### [AkkaCircuitBreakerFailurewall](https://github.com/failurewall/failurewall/blob/main/failurewall-akka/src/main/scala/failurewall/circuitbreaker/AkkaCircuitBreakerFailurewall.scala)\n\nPrevents a failure from leading to cascading other failures.\n\n```scala\n// has a little complicated constructor\nval wall: AkkaCircuitBreakerFailurewall[Response] = ???\nval results = (1 to 100).map { _ =\u003e\n  // fail-fast after failure times exceeds the threshold\n  wall.call(Future {\n    throw new RuntimeException\n  })\n}\n```\n\n### [AkkaRetryFailurewall](https://github.com/failurewall/failurewall/blob/main/failurewall-akka/src/main/scala/failurewall/retry/AkkaRetryFailurewall.scala)\n\nRetries with backoff on temporary failures.\n\n```scala\nval backoffStrategy = ExponentialBackoffStrategy(\n  minBackoff = 100.millis,\n  maxBackoff = 10.seconds,\n  multiplier = 2.0\n)\nval wall = AkkaRetryFailurewall[Response](\n  10,\n  backoffStrategy,\n  akkaScheduler,\n  executionContext\n)\n// retry 10 times with exponential backoff\nwall.call(Future.failed(new RuntimeException))\n```\n\n### [AkkaTimeoutFailurewall](https://github.com/failurewall/failurewall/blob/main/failurewall-akka/src/main/scala/failurewall/timeout/AkkaTimeoutFailurewall.scala)\n\nTimes out when it takes some duration.\n\n```scala\nval wall = AkkaTimeoutFailurewall[String](5.seconds, akkaScheduler, executionContext) {\n  logger.error(\"Timed out.\")\n}\n// fails with FailurewallException\nwall.call(Future {\n  Thread.sleep(10000)\n  \"mofu\"\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffailurewall%2Ffailurewall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffailurewall%2Ffailurewall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffailurewall%2Ffailurewall/lists"}