This project demonstrates how to handle third-party API rate limiting with Cloudflare Queues. It provides a practical example of implementing rate limiting in your application to ensure smooth email sending operations using Resend while respecting the rate limits.
- Demonstrates rate limiting for email sending
- Uses Resend API for email operations
- Provides a simple and scalable approach to handle rate limits
To get started with this project, follow these steps:
- Clone the repository
git clone https://github.com/harshil1712/queues-rate-limit.git
cd queues-rate-limit- Install dependencies
npm install- Set up your Resend API key
- Follow the steps mentioned in the Resend documentation to obtain your API key.
- Rename
.dev.vars.exampleto.dev.varsand replaceYOUR_RESEND_API_KEYwith your actual API key.
- Start the development server
npm run devContributions are welcome! Please feel free to submit a Pull Request or report issues.
This project is open source and available under the MIT License.