{"id":18930525,"url":"https://github.com/techprimers/ratelimiter-example","last_synced_at":"2025-04-15T16:31:23.470Z","repository":{"id":85853700,"uuid":"576732496","full_name":"TechPrimers/ratelimiter-example","owner":"TechPrimers","description":"Example repo for Rate Limiter using Spring Cloud Gateway","archived":false,"fork":false,"pushed_at":"2022-12-10T20:09:46.000Z","size":95,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T22:51:15.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/TechPrimers.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":"2022-12-10T19:54:44.000Z","updated_at":"2024-10-09T04:57:02.000Z","dependencies_parsed_at":"2023-03-10T23:45:30.997Z","dependency_job_id":null,"html_url":"https://github.com/TechPrimers/ratelimiter-example","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/TechPrimers%2Fratelimiter-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechPrimers%2Fratelimiter-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechPrimers%2Fratelimiter-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechPrimers%2Fratelimiter-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechPrimers","download_url":"https://codeload.github.com/TechPrimers/ratelimiter-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249108157,"owners_count":21213986,"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-11-08T11:38:00.669Z","updated_at":"2025-04-15T16:31:23.462Z","avatar_url":"https://github.com/TechPrimers.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rate Limiter using Spring Cloud Gateway\n\n## Architecture\n![Architecture](./architecture.png)\n\n## Code Changes\n\nThe following config enables rate limiters and routes the traffic to backend instance which is a dropwizard app.\nThis app runs on `8082` port.\n\n```\nspring:\n  redis:\n    host: localhost\n    port: 6379\n  application:\n    name: ratelimiter-example\n  cloud:\n    gateway:\n      routes:\n        - id: route1\n          uri: http://localhost:8080/hello\n          predicates:\n            - Path=/hello\n          filters:\n            - name: RequestRateLimiter\n              args:\n                redis-rate-limiter.replenishRate: 20\n                redis-rate-limiter.burstCapacity: 40\n                redis-rate-limiter.requestedTokens: 1\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechprimers%2Fratelimiter-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechprimers%2Fratelimiter-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechprimers%2Fratelimiter-example/lists"}