Skip to content

Scalability & Resilience #103

Description

@Sergo706

Goal: Remove "Single-Node" limitations and mitigate Layer 7 DoS risks.

  • Redis Integration:
    - Refactor accessTokensCache and consecutiveCache to implement a TokenStore Interface.
    - Implementation: Create a Redis adapter to replace in-memory arrays. This allows
    the Auth Service to run across multiple Docker containers/replicas while sharing rate
    limits and blocklists.

  • Bot Detector Optimization (Async Logging):
    - Current Issue: updateVisitors writes to the primary DB on every request.
    - Optimization: Move visitor logging to a "Fire-and-Forget" Queue (Redis List or BullMQ).

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