Skip to content

Commit

Permalink
Add missing content. (#1678)
Browse files Browse the repository at this point in the history
Signed-off-by: bgravenorst <[email protected]>
  • Loading branch information
bgravenorst authored Oct 28, 2024
1 parent 3b37407 commit 6f37eae
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions services/how-to/avoid-rate-limiting.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ or the number of credits per second (throughput).

:::info

The credit pricing model replaces request-based billing for free-tier (Core) customers. Customers on
The credit pricing model replaces request-based billing for Core (free-tier) customers. Customers on
Developer and Team plans will be transitioned to the credit model on September 30, 2024.

**Existing customers on Growth and Custom plans will remain on request-based billing**.

:::

For rate limiting designed to protect our service in the event of an attack, Infura uses a combination of:
- Source IP address.
- JSON-RPC method.
- API key.

The throughput of an an account will be throttled once the daily credit limit is reached. Credit
The throughput of an account will be throttled once the daily credit limit is reached. Credit
quota limits will be reset everyday at 00:00 UTC for all customers.

## Rate limit implications
Expand Down Expand Up @@ -87,13 +90,13 @@ If you're consistently rate limited, consider these workarounds:
- **Cache Ethereum data locally.** Barring rare deep reorganizations of the chain, blocks more than a
couple of blocks below the head of the chain can be cached indefinitely. Ask for the data once then
keep it locally.
- **Limit RPCs at dapp startup.** Likewise, limit the number of RPCs your dapp calls immediately
- **Limit RPCs at dapp startup.** Likewise, limit the number of RPCs your dapp calls
at startup. Only request data as the user accesses that portion of the dapp, and cache anything
from older blocks for next time.
- **Don't poll Infura in a tight loop.** New blocks come roughly every 15 seconds, so requesting new
data at a faster rate usually doesn't make sense. Consider using `eth_subscribe` to be notified
data at a faster rate often doesn't make sense. Consider using `eth_subscribe` to be notified
when new blocks are available.

You can have Infura notify you when you're near your daily daily credit limit by selecting
You can have Infura notify you when you're near your daily credit limit by selecting
**Email Notifications** in the **Accounts** page of the Infura **Settings**. Infura sends emails
when your daily credits reach 75%, 85%, and 100% of the allowed limit.

0 comments on commit 6f37eae

Please sign in to comment.