Skip to content
ArticleBeginner

Handle rate limits of external APIs

Use Cloudflare Queues to stay within an external API's rate limits, demonstrated with an app that sends email notifications through Resend.

Last updated
Oct 12, 2026
Read the original

Instead of calling a rate-limited API directly, send work to a queue and let a consumer process it at a pace the API accepts. The example sends email with Resend, but the pattern works for any external API.

What you’ll learn

  • Set up a queue and bindings
  • Send messages to the queue
  • Process messages within rate limits
  • Send email with Resend and deploy

Cloudflare products used

Queues, Workers.

Follow the full, step-by-step tutorial in Cloudflare’s documentation.

Keep learning