{"id":33178981,"url":"https://github.com/mokies/ratelimitj","last_synced_at":"2026-01-14T03:01:17.772Z","repository":{"id":9120263,"uuid":"60940117","full_name":"mokies/ratelimitj","owner":"mokies","description":"A Java library for Rate-Limiting, providing extensible storage and application framework adaptors.","archived":false,"fork":false,"pushed_at":"2023-05-15T08:19:49.000Z","size":1159,"stargazers_count":482,"open_issues_count":21,"forks_count":92,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-11-20T21:05:16.098Z","etag":null,"topics":["dropwizard","java","rate-limits","redis","sliding-windows"],"latest_commit_sha":null,"homepage":"","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/mokies.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-12T03:27:46.000Z","updated_at":"2025-09-15T08:00:36.000Z","dependencies_parsed_at":"2024-11-15T02:55:33.458Z","dependency_job_id":"9ebf2df8-ab0d-4b1b-96d2-e3cef74f52af","html_url":"https://github.com/mokies/ratelimitj","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/mokies/ratelimitj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokies%2Fratelimitj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokies%2Fratelimitj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokies%2Fratelimitj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokies%2Fratelimitj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mokies","download_url":"https://codeload.github.com/mokies/ratelimitj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokies%2Fratelimitj/sbom","scorecard":{"id":657479,"data":{"date":"2025-08-11","repo":{"name":"github.com/mokies/ratelimitj","commit":"a0ffd87e2d708346486f1ac22a9c48ef86c140cf"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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":"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":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","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":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/gradle-wrapper-validation.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":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gradle-wrapper-validation.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/mokies/ratelimitj/gradle-wrapper-validation.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gradle-wrapper-validation.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/mokies/ratelimitj/gradle-wrapper-validation.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/gradle-wrapper-validation.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/mokies/ratelimitj/gradle-wrapper-validation.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   2 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":"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":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"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":"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 25 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-21T15:05:26.117Z","repository_id":9120263,"created_at":"2025-08-21T15:05:26.117Z","updated_at":"2025-08-21T15:05:26.117Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["dropwizard","java","rate-limits","redis","sliding-windows"],"created_at":"2025-11-16T03:00:36.817Z","updated_at":"2026-01-14T03:01:17.413Z","avatar_url":"https://github.com/mokies.png","language":"Java","funding_links":[],"categories":["容错组件"],"sub_categories":[],"readme":"#### This project is no longer supported, please consider using [Bucket4j](https://github.com/bucket4j/bucket4j) instead\n\n\n![RateLimitJ Logo](https://github.com/mokies/ratelimitj/blob/master/img/ratelimitj-logo-small.png \"RateLimitJ\")\n\nRateLimitJ\n============\n\n[![Build Status](https://travis-ci.com/mokies/ratelimitj.svg?branch=master)](https://travis-ci.com/mokies/ratelimitj)\n[![Codecov](https://codecov.io/github/mokies/ratelimitj/coverage.svg?branch=master)](https://codecov.io/github/mokies/ratelimitj?branch=master)\n[![Maven Central](https://img.shields.io/maven-central/v/es.moki.ratelimitj/ratelimitj-core.svg?style=flat-square)](https://maven-badges.herokuapp.com/maven-central/es.moki.ratelimitj/ratelimitj-core/)\n[![license](https://img.shields.io/github/license/mokies/ratelimitj.svg?style=flat-square)](https://github.com/mokies/ratelimitj/blob/master/LICENSE)\n\n\nA Java library for rate limiting, assembled using extensible storage and application framework adaptors. The library's interfaces support thread-safe sync, async, and reactive usage patterns.\n\n#### Modules\nRateLimitJ provides the following stable plugable modules:\n\n* [Redis sliding window rate limiter](ratelimitj-redis)\n* [In-memory sliding window rate limiter](ratelimitj-inmemory)\n* [Dropwizard integration](ratelimitj-dropwizard)\n\n\n#### Features\n* Uses an efficient approximated sliding window algorithm for rate limiting\n* Multiple limit rules per instance\n\nBinaries/Download\n----------------\n\nBinaries and dependency information for Maven, Ivy, Gradle and others can be found at [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22es.moki.ratelimitj%22).\n\nExample for Maven:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ees.moki.ratelimitj\u003c/groupId\u003e\n  \u003cartifactId\u003eratelimitj-redis\u003c/artifactId\u003e\n  \u003cversion\u003e${ratelimitj-redis.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n#### Prerequisite\n\n* RateLimitJ requires Java 8\n\n#### Roadmap\n\n| Feature       | Status      |\n| ------------- |-------------| \n| Redis sliding window rate limiter | production |\n| Dropwizard integration - Bundle | production |\n| In-memory sliding window rate limiter | stable |\n| In-memory concurrent rate limiter | beta |\n| Rate limiting toggles (dark launch) for framework integration | beta |\n| Hazelcast sliding window rate limiter | beta/dev |\n| Redis concurrent rate limiter | dev/active |\n| Enhanced metrics logging | back log |\n| Whitelisting \u0026 blacklisting of keys | back log |\n| Rate limit HTTP header responses | back log |\n| Async in-memory rate limit buffer/cache (inspired by Google's SRE book) | back log |\n| Spring integration | back log |\n\nBuilding\n-----------\n\nRateLimitJ is built with Gradle and requires docker to spin up Redis for the Redis module. \n\nTo build:\n\n```\n$ git clone https://github.com/mokies/ratelimitj.git\n$ cd ratelimij/\n$ ./gradlew\n```\n\n\n#### Credits\nThis library was inspired by the following articles on sliding window rate limiting with Redis:\n\n* [Introduction to Rate Limiting with Redis Part 1](http://www.dr-josiah.com/2014/11/introduction-to-rate-limiting-with.html)\n* [Introduction to Rate Limiting with Redis Part 2](http://www.dr-josiah.com/2014/11/introduction-to-rate-limiting-with_26.html)\n\n#### Background Reading\n\n* [Stripe Blog - Scaling your API with rate limiters](https://stripe.com/blog/rate-limiters)\n* [An alternative approach to rate limiting](https://medium.com/figma-design/an-alternative-approach-to-rate-limiting-f8a06cf7c94c)\n\n#### Authors\n\n* [Craig Baker](https://github.com/mokies)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmokies%2Fratelimitj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmokies%2Fratelimitj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmokies%2Fratelimitj/lists"}