{"id":16356973,"url":"https://github.com/previousdeveloper/global-ratelimit","last_synced_at":"2025-12-09T06:30:13.945Z","repository":{"id":148581994,"uuid":"362067753","full_name":"previousdeveloper/global-ratelimit","owner":"previousdeveloper","description":"Distributed rate limiter, using Redis.","archived":false,"fork":false,"pushed_at":"2021-04-27T10:16:06.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-29T06:30:02.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/previousdeveloper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-04-27T10:12:46.000Z","updated_at":"2021-12-10T16:37:03.000Z","dependencies_parsed_at":"2023-06-17T01:31:08.192Z","dependency_job_id":null,"html_url":"https://github.com/previousdeveloper/global-ratelimit","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/previousdeveloper%2Fglobal-ratelimit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previousdeveloper%2Fglobal-ratelimit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previousdeveloper%2Fglobal-ratelimit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previousdeveloper%2Fglobal-ratelimit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/previousdeveloper","download_url":"https://codeload.github.com/previousdeveloper/global-ratelimit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239670773,"owners_count":19677867,"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":[],"created_at":"2024-10-11T01:44:40.164Z","updated_at":"2025-12-09T06:30:13.914Z","avatar_url":"https://github.com/previousdeveloper.png","language":"Go","readme":"# global-ratelimit\nDistributed rate limiter, using Redis.\n\nThis package allows us to have a distributed rate limiter, using Redis or Couchbase as a central counter.\n\nWe can use it for sidecar model. Now rate limiter supports two rate limit algorithm which are token based and window rate.\n\n## How it works\n\n\n```yaml \nrate_limits:\n  - actions:\n       endpoint: '/product-recommendation/:id/*'\n       method: GET\n       keys: \"id\"\n       requests_per_unit: 1\n       unit: minute\n       header_key: \"test\"\n  - actions:\n       endpoint: '/product-recommendation/*'\n       method: POST\n       from: \"body\"\n       body_keys: \"supplierId\"\n       requests_per_unit: 5\n       unit: hour\n```\n\nYou create config decleration, by specifying a limit and an interval. For example, maybe you want limit by using path variable or query string variable.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreviousdeveloper%2Fglobal-ratelimit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpreviousdeveloper%2Fglobal-ratelimit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreviousdeveloper%2Fglobal-ratelimit/lists"}