Mixpanel Community Icon

"The number of requests sent exceeds the quota limit."

·
·

"The number of requests sent exceeds the quota limit."

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Hi Ritvik H., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹

    Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    This error message suggests that you've encountered a rate limit issue with Mixpanel's API. Mixpanel implements rate limits to ensure system integrity and prevent a single project from monopolizing resources. Let's look at the specific rate limits and how to handle them: 1. Ingestion API: - Limit: 2GB of uncompressed JSON/minute or ~30k events per second, measured on a rolling 1-minute basis. Rate Limits2. Query API: - Limit: Maximum of 5 concurrent queries and 60 queries per hour. Rate Limits3. Raw Data Export API: - Limit: Maximum of 100 concurrent queries, 60 queries per hour, and 3 queries per second. Rate LimitsWhen you exceed these limits, you'll receive a 429 (Too Many Requests) status code.To handle rate limiting, Mixpanel recommends the following strategies: 1. Implement exponential backoff with jitter: - Start with a 2-second backoff - Double the backoff time until reaching 60 seconds - Add 1-5 seconds of jitter2. For the Ingestion API: - Use 10-20 concurrent clients sending 2K events per batch - Use gzip compression to reduce network egress and transfer time3. General recommendations: - Spread your queries over a longer period - Consolidate multiple queries into a single query where possibleIngestion APIIf you're an Enterprise customer and need a higher limit for a one-time backfill, contact your sales representative with your project_id and use case.Remember, don't retry validation errors (400 status code) as they will consistently fail and count toward the rate limit.

    kapa.ai is still learning and improving, please let me know how I did by reacting below.

    ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.