Skip to content

Conversation

@lunika
Copy link
Member

@lunika lunika commented Sep 5, 2025

Purpose

We want to configure the throttle on all doc's viewsets. In order to
monitor them, we use the MonitoredScopedRateThrottle class and a custom
callback capturing the message in sentry at the warning level.

Proposal

  • 🔒️(backend) configure throttle on every viewsets
  • ⬆️(backend) upgrade django-lasuite to version 0.0.14
@lunika lunika requested review from AntoLC and qbey September 5, 2025 13:34
@lunika lunika self-assigned this Sep 5, 2025
@lunika lunika added the enhancement improve an existing feature label Sep 5, 2025
@lunika lunika force-pushed the configure-api-throttle branch from 4d4e2bb to 9186a58 Compare September 8, 2025 06:16
We want to configure the throttle on all doc's viewsets. In order to monitor them, we use the MonitoredScopedRateThrottle class and a custom callback caputing the message in sentry at the warning level.
@lunika lunika force-pushed the configure-api-throttle branch from 9186a58 to 0ac9f05 Compare September 8, 2025 07:23
@lunika lunika merged commit 0ac9f05 into main Sep 8, 2025
21 of 22 checks passed
@lunika lunika deleted the configure-api-throttle branch September 8, 2025 09:21
default="30/minute",
environ_name="API_CONFIG_THROTTLE_RATE",
environ_prefix=None,
),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be in this list as well ?

AI_DOCUMENT_RATE_THROTTLE_RATES = {
"minute": 5,
"hour": 100,
"day": 500,
}
AI_USER_RATE_THROTTLE_RATES = {
"minute": 3,
"hour": 50,
"day": 200,
}

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

Labels

enhancement improve an existing feature

4 participants