1,124 questions
1
vote
1
answer
40
views
One aync lock call or multiple async lock calls, what is better and safer in Python?
I trying to make ratelimiter for users in aiogram bot with middlware, now I created class for requests and class for ratelimiter, where reuqest are. My problem is what is better for performance and ...
-3
votes
1
answer
140
views
Temporarily block IPs that are scanning my API in Azure's APIM
I am trying to block scans targeting my website, e.g., requests that end in /.env
The requests go through Azure FD to a Node.js server to APIM then to my BE server. In the Azure API-Management level, ...
Best practices
0
votes
1
replies
156
views
Best Practices for Handling API Rate Limits in Python Applications
I am developing a Python application that interacts with a third-party API. The API enforces strict rate limits, and I want to make sure my application handles these efficiently without causing errors ...
1
vote
1
answer
101
views
How to implement session-based rate limiting instead of IP-based for WordPress plugin? [closed]
I'm developing a WordPress plugin that provides chat functionality via REST API endpoints. Currently, I'm using IP-based rate limiting, but this causes issues in university/company environments where ...
Tooling
0
votes
1
replies
72
views
Dealing with third party rate limits
I have been working on AWS Serverless Lambdas and now having issues with third party rate limits.
Context
A Lambda invocation triggered by an event:
calls a third-party API 4 times,
runs some logic,...
Advice
0
votes
1
replies
111
views
Why does my OpenAI API (ChatGPT) return 429 ‘rate limit exceeded’ even for low traffic?
I’m integrating OpenAI’s GPT API using Node.js. My app runs fine for a while, but then randomly throws:
Error: 429 - You exceeded your current quota, please check your plan and billing details.
Even ...
0
votes
0
answers
229
views
Bucket4j Spring Boot Starter: "No Bucket4j cache configuration found" error with Redis Cluster
I'm trying to configure Bucket4j rate limiting with Redis Cluster in my Spring Boot application, but I keep getting the error:
No Bucket4j cache configuration found - cache-to-use: null
Action:
...
0
votes
0
answers
607
views
Gemini API RPD Limit Not Resetting After Upgrading to Paid Tier (Rate Limit Stuck)
upgraded my Google AI Studio project to Paid Tier 1 today, but my daily rate limit (RPD) for the Gemini API is still stuck and not resetting. I cannot send any requests, even after waiting over 24 ...
0
votes
1
answer
242
views
Parallelize asynchronous API calls in Python
I’m building a data ingestion pipeline in Python that collects data from a third-party REST API.
The API allows a maximum of 100 requests per minute, and I need to fetch data for tens of thousands of ...
0
votes
1
answer
571
views
Having problem, implementing basic rate limiting properly in an ASP.NET Core 8 Web API
I am trying to learn using basic rate limiting in an ASP.NET Core 8.0 Web API. I set 'permit limit' to 5, 'window' to 1 minute and 'queue limit' of 2.
At this juncture, let me tell you that I have ...
0
votes
0
answers
92
views
Single API request responds with rate limit message
I have been testing out the free X api.
I have my bearer token and other details set up in Postman.
I have made a single GET request to
https://api.x.com/2/users/by?usernames=fuzigish
The response I ...
0
votes
0
answers
90
views
How to distinguish an OpenAI API "quota exceeded" 429 from a standard rate limit 429?
I'm integrating the OpenAI API into my application and keep encountering a 429 error with the message "You exceeded your current quota, please check your plan and billing details".
I ...
3
votes
1
answer
131
views
Google Cloud Logging API "Control Requests" Quota Exceeded in Calling Project for Cross-Project Operations
Problem:
Our backend service (in Project A) interacts with resources in Project B (e.g., fetching Logging buckets). While resource-specific quotas (e.g., log ingestion) are correctly consumed by ...
0
votes
1
answer
168
views
Local rate limiter with multiple keys in descriptor entry not being processed [closed]
I'm having trouble making local rate limiter work with multiple keys in descriptor entry.
Here is a full EnvoyFilter:
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
labels:
...
3
votes
1
answer
400
views
How to properly rate-limit message sending in aiogram Telegram bot?
I'm building a Telegram bot using aiogram, and I need to limit the rate of sending messages:
No more than 25 messages per second globally (across all chats).
No more than 3 messages per 3 seconds per ...