Official Convex integration for Resend email service with queuing, batching, rate limiting, and guaranteed delivery via durable execution.
npm install @convex-dev/resendThis component is the official way to integrate the Resend email service with your Convex project.
Features:
Queueing: Send as many emails as you want, as fast as you want—they'll all be delivered (eventually).
Batching: Automatically batches large groups of emails and sends them to Resend's /emails/batch endpoint efficiently.
Durable execution: Uses Convex workpools to ensure emails are eventually delivered, even in the face of temporary failures or network outages.
Idempotency: Manages Resend idempotency keys to guarantee emails are delivered exactly once, preventing accidental spamming from retries.
Rate limiting: Honors API rate limits established by Resend.
The @convex-dev/resend component integrates directly with your Convex mutations and actions to send transactional emails like order confirmations or password resets. It handles queuing and delivery guarantees so your application logic stays fast and reliable.
This component automatically batches large email volumes and respects Resend's API rate limits. You can trigger thousands of emails from a single Convex function without worrying about API throttling or failed deliveries.
Using Convex workpools for durable execution, the component automatically retries failed email sends due to network issues or temporary API outages. Idempotency keys prevent duplicate emails during retries, ensuring exactly-once delivery.
The @convex-dev/resend component automatically respects Resend's API rate limits by queuing emails and controlling send rates. It uses Convex's durable execution to retry sends that are throttled, ensuring all emails are eventually delivered without hitting rate limit errors.
Yes, the Convex Resend component queues all email sends asynchronously using Convex workpools. Your mutations and actions return immediately while emails are processed in the background. Large batches are automatically sent to Resend's batch endpoint for efficiency.
The @convex-dev/resend component uses Convex's durable execution to automatically retry failed sends due to network outages or API downtime. Emails remain queued and will be delivered once the service recovers, with idempotency keys preventing duplicates.
The Convex Resend component automatically manages Resend idempotency keys for every email send. This guarantees exactly-once delivery even when retries occur due to network failures or temporary API issues, preventing accidental spam to your users.