Skip to content

Implement sliding window rate limiter with Postgres #182

Description

@testtest126

Implement a sliding window rate limiter using Postgres as the shared counter store.

This solution would:

  • Use Postgres upserts to maintain shared rate limit counters (leveraging existing Postgres infrastructure)
  • Implement a sliding window algorithm to prevent 2× burst across fixed window boundaries
  • Support multi-instance deployments with consistent rate limits
  • Avoid adding a new dependency (Redis) to the infrastructure

Related to: #79

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions