跳到正文
文章入门

用 Queues 应对外部 API 的速率限制

使用 Cloudflare Queues 让请求不超出外部 API 的速率限制,示例应用通过 Resend 发送邮件通知。

最近更新
2026年10月12日
阅读原文

该介绍目前仅提供英文版本。

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.

继续学习