AWS SES

Integrate AWS SES with Convex for reliable email delivery using queuing, rate limiting, and durable execution via workpools.

Installation

npm install convex-aws-ses

About AWS SES

This component integrates AWS Simple Email Service (SES) with your Convex project.

Features:

- Queueing: Send as many emails as you want, as fast as you want—they'll all be delivered (eventually).
- Durable execution: Uses Convex workpools to ensure emails are eventually delivered, even in the face of temporary failures or network outages.
- Rate limiting: Honors AWS SES API rate limits.
- Event tracking: Receive delivery notifications via SNS webhooks.

Benefits

Use cases

how to send emails from Convex backend reliably

The AWS SES Convex Component provides a queue-based email system that integrates directly with your Convex backend. It handles rate limiting, retries, and delivery tracking automatically through Convex workpools, ensuring emails are sent even during temporary AWS outages.

Convex email delivery with retry logic

This component uses Convex workpools to implement durable execution for email delivery. If AWS SES is temporarily unavailable or rate limits are hit, the component automatically retries email sending until successful delivery is confirmed.

AWS SES integration for Convex applications

The convex-aws-ses component connects your Convex project to AWS Simple Email Service with built-in queuing and event tracking. It respects AWS SES API rate limits and provides SNS webhook integration for delivery notifications.

bulk email sending with Convex and AWS

This component handles high-volume email sending by queuing messages and processing them according to AWS SES rate limits. The workpool-based architecture ensures all emails are eventually delivered without overwhelming the AWS API.

Frequently asked questions

Does the AWS SES Convex Component handle AWS rate limits automatically?

Yes, the AWS SES Convex Component automatically respects AWS SES API rate limits to prevent throttling. It queues emails and processes them at a pace that stays within your AWS account's sending limits, ensuring reliable delivery without API errors.

What happens if AWS SES is temporarily unavailable when using this component?

The AWS SES Convex Component uses Convex workpools for durable execution, meaning emails will be retried automatically until successful delivery. If AWS SES experiences outages or network issues, queued emails will be processed once the service becomes available again.

Can I track email delivery status with the AWS SES Convex Component?

Yes, the AWS SES Convex Component includes event tracking through SNS webhooks. You can receive delivery notifications, bounces, and complaints directly in your Convex application, allowing you to monitor email performance and handle delivery issues programmatically.

How does email queuing work in the AWS SES Convex Component?

The AWS SES Convex Component implements a queue system that accepts emails at any rate and processes them through Convex workpools. This decouples email sending from your application logic, allowing you to send thousands of emails instantly while they are delivered in the background according to AWS limits.

Links