Skip to content

Increase rate limit#91

Merged
DavidASix merged 1 commit intomainfrom
staging
Feb 19, 2026
Merged

Increase rate limit#91
DavidASix merged 1 commit intomainfrom
staging

Conversation

@DavidASix
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings February 19, 2026 03:51
@DavidASix DavidASix merged commit 631163f into main Feb 19, 2026
7 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request increases the rate limits for the fetch-updated-data API endpoint, which is called by 11ty during client website rebuilds to fetch the latest Google reviews and business statistics. The endpoint makes external Google API calls and is protected by multiple middleware layers including API key validation, paid access checks, and nested rate limiting.

Changes:

  • Increased daily rate limit from 100 to 500 requests (5x increase)
  • Increased 5-minute rate limit from 10 to 25 requests (2.5x increase)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

{
eventType: "fetch_updated_data_5m",
maxRequests: 10,
maxRequests: 25,
Copy link

Copilot AI Feb 19, 2026

Choose a reason for hiding this comment

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

The daily rate limit increase (5x from 100 to 500) is significantly larger than the 5-minute rate limit increase (2.5x from 10 to 25). This changes the ratio between these limits from 10:1 to 20:1.

This means the new limits allow for more sustained, evenly-distributed traffic throughout the day relative to burst traffic. If this is intentional to support a specific use case (e.g., more frequent 11ty rebuilds), consider documenting the rationale. If the increases should be proportional, consider adjusting the 5-minute limit to 50 requests to maintain the 10:1 ratio.

Suggested change
maxRequests: 25,
maxRequests: 50,

Copilot uses AI. Check for mistakes.
{
eventType: "fetch_updated_data_1d",
maxRequests: 100,
maxRequests: 500,
Copy link

Copilot AI Feb 19, 2026

Choose a reason for hiding this comment

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

This endpoint makes external Google API calls (via updateBusinessReviews and updateBusinessStats) which may have associated costs or quotas. A 5x increase in the daily rate limit could significantly increase API usage and costs. Consider whether this increase aligns with Google API quotas and budget constraints, especially since this endpoint is called by 11ty during client website rebuilds.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants