Skip to content

core: Implementing rate-limiting interceptors using Spring Boot, Bucket4j #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

shortthirdman
Copy link
Owner

Overview

This PR introduces rate-limiting interceptors implemented using Spring Boot and Bucket4j. The primary goal is to enhance API performance and reliability by controlling request rates at the application level.

Key Changes:

  • Integrated Bucket4j for efficient rate-limiting with flexible configuration options.
  • Developed Spring Boot interceptors to apply rate limits to API endpoints.
  • Added customizable settings for rate limits, including burst capacity and refill rates.
  • Implemented error handling to manage rate-limit breaches gracefully.

Benefits:

  • Improved API resilience under high load.
  • Fine-grained control over request throttling.
  • Easy configuration and scalability.

Testing:

  • Unit tests for interceptor logic and Bucket4j integration.
  • Integration tests to verify rate-limiting behavior under simulated load conditions.

@shortthirdman shortthirdman added documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers labels Apr 2, 2025
@shortthirdman shortthirdman self-assigned this Apr 2, 2025
@shortthirdman shortthirdman merged commit 9640075 into main Apr 4, 2025
@shortthirdman shortthirdman deleted the develop branch April 4, 2025 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant