{"id":16142866,"url":"https://github.com/neelp03/throttlex","last_synced_at":"2026-03-05T14:03:49.073Z","repository":{"id":257814363,"uuid":"859046024","full_name":"neelp03/ThrottleX","owner":"neelp03","description":"A distributed rate-limiting solution built with Go and Redis, designed to control API traffic and ensure system stability. Supports multiple rate-limiting policies and is scalable with Docker for easy deployment.","archived":false,"fork":false,"pushed_at":"2025-07-11T09:18:28.000Z","size":146,"stargazers_count":72,"open_issues_count":7,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-06T01:57:38.740Z","etag":null,"topics":["api-gateway","api-management","go","golang","open-source","openapi","opensource","rate-limiting","ratelimiter","redis","throttler","throttlex"],"latest_commit_sha":null,"homepage":"","language":"Go","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/neelp03.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-09-18T01:39:12.000Z","updated_at":"2025-08-13T22:49:08.000Z","dependencies_parsed_at":"2024-10-08T09:22:55.100Z","dependency_job_id":"1788609e-9f60-4db4-977d-9f60e00a7833","html_url":"https://github.com/neelp03/ThrottleX","commit_stats":null,"previous_names":["neelp03/throttlex"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/neelp03/ThrottleX","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neelp03%2FThrottleX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neelp03%2FThrottleX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neelp03%2FThrottleX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neelp03%2FThrottleX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neelp03","download_url":"https://codeload.github.com/neelp03/ThrottleX/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neelp03%2FThrottleX/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30130031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T12:40:50.676Z","status":"ssl_error","status_checked_at":"2026-03-05T12:39:32.209Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-gateway","api-management","go","golang","open-source","openapi","opensource","rate-limiting","ratelimiter","redis","throttler","throttlex"],"created_at":"2024-10-10T00:07:35.078Z","updated_at":"2026-03-05T14:03:49.054Z","avatar_url":"https://github.com/neelp03.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThrottleX: Scalable Rate Limiting for Go APIs\n\n[![CI](https://github.com/neelp03/throttlex/actions/workflows/ci.yml/badge.svg)](https://github.com/neelp03/throttlex/actions/workflows/ci.yml)\n[![Coverage Status](https://codecov.io/gh/neelp03/throttlex/branch/main/graph/badge.svg)](https://codecov.io/gh/neelp03/throttlex)\n[![Go Report Card](https://goreportcard.com/badge/github.com/neelp03/throttlex?v=1)](https://goreportcard.com/report/github.com/neelp03/throttlex)\n[![GoDoc](https://godoc.org/github.com/neelp03/throttlex?status.svg)](https://godoc.org/github.com/neelp03/throttlex)\n[![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)\n\n---\n\n## **Overview**\n\nThrottleX is an advanced, flexible rate-limiting library designed to handle high traffic loads across distributed environments. Built in Go, ThrottleX combines multiple rate-limiting algorithms with concurrency control to ensure efficient API request management and system stability.\n\nFor more detailed setup instructions and examples, visit the **[ThrottleX Wiki](https://github.com/neelp03/ThrottleX/wiki)**.\n\n---\n\n## **Key Features**\n\n- **Enhanced Rate Limiting Algorithms**:\n  - Fixed Window\n  - Sliding Window\n  - Token Bucket\n  - Leaky Bucket with Concurrency Limiting (new in `v1.0.0-rc2`)\n\n- **Multiple Storage Options**:\n  - In-Memory Store\n  - Redis Store, optimized for distributed setups\n\n- **Optimized for Performance**:\n  - Concurrency control with goroutines and mutex management.\n  - Customizable request limits, intervals, and policies.\n  - Efficient memory management and optimized Redis configuration.\n\n- **Real-Time Monitoring**:\n  - Integrated with Prometheus for metrics collection and Grafana for visualization.\n\n---\n\n## **Installation**\n\nInstall ThrottleX via `go get`:\n\n```bash\ngo get -u github.com/neelp03/throttlex\n```\n\nSee the **[Installation and Setup Wiki Page](https://github.com/neelp03/ThrottleX/wiki/Installation-and-Setup)** for complete instructions.\n\n---\n\n## **Usage**\n\n### Example Initialization\n\n```go\nimport (\n    \"github.com/neelp03/throttlex/ratelimiter\"\n    \"github.com/neelp03/throttlex/store\"\n)\n\nfunc main() {\n    redisStore := store.NewRedisStore(redisClient)\n    limiter, err := ratelimiter.NewLeakyBucketLimiter(redisStore, 100, time.Second, 5) // Capacity: 100, Leak rate: 1 req/sec, Concurrency: 5\n    if err != nil {\n        log.Fatalf(\"Failed to initialize rate limiter: %v\", err)\n    }\n\n    if allowed, _ := limiter.Allow(\"client-id\"); allowed {\n        // Process request\n    }\n}\n```\n\nFor more example integrations, visit the **[Examples Wiki Page](https://github.com/neelp03/ThrottleX/wiki/ThrottleX-Examples)**.\n\n---\n\n## **Rate Limiting Algorithms**\n\nThrottleX offers the following algorithms to adapt to various rate-limiting needs:\n\n- **Fixed Window Limiter**: Limits requests within set time frames.\n- **Sliding Window Limiter**: Smoothes out request patterns over sliding intervals.\n- **Token Bucket Limiter**: Allows bursts while limiting sustained traffic.\n- **Leaky Bucket Limiter** (new): Controls request processing rate with a concurrency limiter to prevent overloads.\n\nFor detailed information, see the **[Rate Limiting Algorithms Wiki Page](https://github.com/neelp03/ThrottleX/wiki/Rate-Limiting-Algorithms-in-ThrottleX)**.\n\n---\n\n## **Changelog**\n\nChanges between releases are documented in the `CHANGELOG.md` file. View the **[Changelog](https://github.com/neelp03/ThrottleX/blob/main/CHANGELOG.md)** for a detailed list of updates and bug fixes.\n\n---\n\n## **Contributing**\n\nTo contribute:\n\n1. **Fork the Repository**.\n2. **Clone Your Fork**:\n\n   ```bash\n   git clone https://github.com/your-username/throttlex.git\n   cd throttlex\n   ```\n\n3. **Create a Branch**:\n\n   ```bash\n   git checkout -b feature/your-feature-name\n   ```\n\n4. **Make Changes and Run Tests**:\n\n   ```bash\n   go test -race -v ./...\n   ```\n\n5. **Commit and Push**:\n\n   ```bash\n   git add .\n   git commit -m \"Add your feature\"\n   git push origin feature/your-feature-name\n   ```\n\n6. **Create a Pull Request** on the `main` branch.\n\n---\n\n## **License**\n\nThis project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n## **Acknowledgments**\n\nThrottleX was created to address the need for flexible, high-performance rate limiting in Go applications. Special thanks to the Go community for their guidance and contributions.\n\n---\n\n## **Contact**\n\nFor questions or support, please open an issue on the **[GitHub repository](https://github.com/neelp03/throttlex/issues)**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneelp03%2Fthrottlex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneelp03%2Fthrottlex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneelp03%2Fthrottlex/lists"}