{"id":26032714,"url":"https://github.com/apache/geronimo-safeguard","last_synced_at":"2026-02-24T20:42:44.492Z","repository":{"id":65979368,"uuid":"102574204","full_name":"apache/geronimo-safeguard","owner":"apache","description":"Mirror of Apache Safeguard (Geronimo project around Fault Tolerance)","archived":false,"fork":false,"pushed_at":"2020-05-01T16:39:56.000Z","size":203,"stargazers_count":4,"open_issues_count":1,"forks_count":7,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-03T04:16:55.918Z","etag":null,"topics":["geronimo","http","java","javaee","network-server","web-framework"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"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/apache.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}},"created_at":"2017-09-06T07:00:08.000Z","updated_at":"2023-07-25T14:11:18.000Z","dependencies_parsed_at":"2023-02-19T19:01:22.558Z","dependency_job_id":null,"html_url":"https://github.com/apache/geronimo-safeguard","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fgeronimo-safeguard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fgeronimo-safeguard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fgeronimo-safeguard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fgeronimo-safeguard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apache","download_url":"https://codeload.github.com/apache/geronimo-safeguard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247899684,"owners_count":21014941,"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":["geronimo","http","java","javaee","network-server","web-framework"],"created_at":"2025-03-06T22:52:24.424Z","updated_at":"2025-10-09T08:41:04.234Z","avatar_url":"https://github.com/apache.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apache Safeguard\nApache Safeguard is a library around Fault Tolerance, giving your application resilience in a highly distributed microservices framework. It is designed for use with CDI applications.\n\n## What is Fault Tolerance?\n\nIn today's microservices runtimes, Fault Tolerance allows an application to handle the situations where another service it is consuming is unavialable.  \n\n## Types of Fault Tolerance\n\nFault Tolerance is a broad subject, has multiple areas of support typically found in a framework.\n\n### Fallback\n\nWhen a given invocation fails, you can declare a Fallback for that method.\n\n### Timeout\n\nAllows method invocations to be bounded to a specific duration.  Once that boundary hits, an exception is thrown or a fallback is invoked.\n\n### Retry\n\nAllows a method to be invoked a number of times, as well as for a given duration.\n\n### Circuit Breaker\n\nAllows invocations to a given method as long as it is returning successfully.  Based on thresholds defined, when a method begins failing invocations will be blocked.  After a duration has passed invocations will begin to attempt again.\n\n### Bulkhead\n\nA bulkhead throttles concurrent access to a method.  The throttling can either by based on a semaphore or a thread pool.  Semaphores are invoked on the caller's thread and are not bound by any limit to pending requests.  Thread pools are used to invoke the component asynchronously and have a finite amount of waiting invocations.\n\n## Getting Started\n\nApache Safeguard is currently in development; however a 1.0 release was created that passes the MicroProfile Fault Tolerance TCK.  You can add the following dependencies to your project:\n\n```xml\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003eorg.apache.geronimo.safeguard\u003c/groupId\u003e\n        **\u003cartifactId\u003esafeguard-impl\u003c/artifactId\u003e**\n        \u003cversion\u003e1.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\nApache Safeguard implements the [MicroProfile Fault Tolerance v1.0 specification](https://github.com/eclipse/microprofile-fault-tolerance/releases/tag/1.0)\n\n### Integration\n\nFor `@Asynchronous` executor customization you can use:\n\n```java\n@ApplicationScoped\npublic class MyExecutionManagerProvider {\n    @Resource\n    @Produces\n    @Safeguard\n    private ManagedScheduledExecutorService executor;\n}\n\n\n```\n\n## Dev tip\n\nTo find the interceptor priority you can use this shell command:\n\n`find . -name *Interceptor.java | xargs grep '@Priority'  | sed 's/\\([^:]*\\):\\(.*\\)/\\2 : \\1/g' | sed 's/@Priority(Interceptor.Priority.PLATFORM_AFTER + \\([0-9]*\\))/priority = \\1/' | sort`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fgeronimo-safeguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapache%2Fgeronimo-safeguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fgeronimo-safeguard/lists"}