Skip to content

[FEATURE REQUEST] - Implement Rate Limiting for API Endpoints #39

Description

@rishyym0927

🚀 Overview

Currently, the API does not have rate limiting implemented in main.go. This makes it vulnerable to abuse, such as excessive requests that can overload the server.

🛠 Use Case

  • Prevents API abuse and protects against DDoS attacks.
  • Ensures fair usage and maintains server stability.
  • Improves overall API performance and reliability.

📊 Expected Behavior

  • Implement rate limiting middleware to restrict excessive API calls.
  • Define reasonable limits per IP or user (e.g., X requests per minute).
  • Return appropriate HTTP status codes (e.g., 429 Too Many Requests) when limits are exceeded.

Thank you for contributing to StoreHUB! 👨‍💻👩‍💻

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions