Skip to content

Add an official rate limiting middleware API. #4416

@gocronx

Description

@gocronx

Feature Description

Add an official rate limiting middleware API.

Image

The middleware could:
• Support memory store (default) and Redis store (for distributed rate limiting)
• Provide hooks for custom key extraction (UserID, IP, etc.)
• Return structured JSON errors on 429 responses
• Export metrics (success/limited count) via Prometheus hooks

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalGot an idea for a feature that Gin doesn't have currently? Submit your idea here!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions