{"id":18446565,"url":"https://github.com/esastack/esa-servicekeeper","last_synced_at":"2025-08-24T09:33:58.469Z","repository":{"id":39636710,"uuid":"365465274","full_name":"esastack/esa-servicekeeper","owner":"esastack","description":"A lightweight service governance framework.","archived":false,"fork":false,"pushed_at":"2022-05-31T06:35:54.000Z","size":701,"stargazers_count":22,"open_issues_count":4,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-18T06:42:32.415Z","etag":null,"topics":["circuit-breaker","concurrent-limiter","fallback","rate-limiting"],"latest_commit_sha":null,"homepage":"http://www.esastack.io/esa-servicekeeper/","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/esastack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-08T08:50:42.000Z","updated_at":"2024-08-24T12:09:05.000Z","dependencies_parsed_at":"2022-09-20T06:22:13.754Z","dependency_job_id":null,"html_url":"https://github.com/esastack/esa-servicekeeper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/esastack/esa-servicekeeper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esastack%2Fesa-servicekeeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esastack%2Fesa-servicekeeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esastack%2Fesa-servicekeeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esastack%2Fesa-servicekeeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esastack","download_url":"https://codeload.github.com/esastack/esa-servicekeeper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esastack%2Fesa-servicekeeper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271836204,"owners_count":24831186,"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-24T02:00:11.135Z","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":["circuit-breaker","concurrent-limiter","fallback","rate-limiting"],"created_at":"2024-11-06T07:09:42.078Z","updated_at":"2025-08-24T09:33:58.419Z","avatar_url":"https://github.com/esastack.png","language":"Java","funding_links":[],"categories":["容错组件"],"sub_categories":["Spring Cloud框架"],"readme":"# ServiceKeeper\n\n![Build](https://github.com/esastack/esa-servicekeeper/workflows/Build/badge.svg?branch=main)\n[![codecov](https://codecov.io/gh/esastack/esa-servicekeeper/branch/main/graph/badge.svg?token=CCQBCBQJP6)](https://codecov.io/gh/esastack/esa-servicekeeper)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.esastack/servicekeeper-parent/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.esastack/servicekeeper-parent/)\n[![GitHub license](https://img.shields.io/github/license/esastack/esa-servicekeeper)](https://github.com/esastack/esa-servicekeeper/blob/main/LICENSE)\n\nServiceKeeper is a lightweight service governance framework that provides many awesome features such as rate limit, concurrent limit, circuit breaker,\nretry and fallback... You can get start and customize the configuration easily with `annotation`.\n\n# Features\n- Concurrent Limit\n- Rate Limit\n- Circuit Breaker\n- Fallback\n- Manual fallback\n- Parameter-level concurrent limit, circuit breaker and such on\n\n# Quick Start\nStep one: Add maven dependency\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.esastack\u003c/groupId\u003e\n    \u003cartifactId\u003eservicekeeper-springboot-adapter\u003c/artifactId\u003e\n    \u003cversion\u003e${servicekeeper.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nStep two: Add customize configuration by annotation\n```java\n@SpringBootApplication\npublic class AppMain {\n\n    @Bean\n    public HelloService helloService() {\n        return new HelloService();\n    }\n\n    public static void main(String[] args) {\n        ConfigurableApplicationContext ctx = SpringApplication.run(AppMain.class);\n\n        final HelloService service = ctx.getBean(HelloService.class);\n        int errorCount = 0;\n        for (int i = 0 ; i \u003c 20; i++) {\n            try {\n                service.hello();\n            } catch (RateLimitOverflowException ex) {\n                errorCount++;\n            }\n        }\n\n        System.out.println(\"RateLimitOverflowException count: \" + errorCount);\n        ctx.close();\n    }\n\n    public class HelloService {\n\n        @RateLimiter(limitForPeriod = 10)\n        public String hello() {\n            return \"Hello World!\";\n        }\n\n    }\n}\n```\nSee more details in [Reference Doc](https://www.esastack.io/esa-servicekeeper)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesastack%2Fesa-servicekeeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesastack%2Fesa-servicekeeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesastack%2Fesa-servicekeeper/lists"}