nishu
nishu

Reputation: 81

Is there a combination available between AWS SQS and SES?

We are planning to use AWS SES with SQS. The idea is to push the email content to SQS then SES fetch the queue item and send the emails. We are using PHP. We just want the idea to implement this without hampering the webserver performance.

Upvotes: 4

Views: 8840

Answers (2)

Ashwin Chandran
Ashwin Chandran

Reputation: 351

Answer is summed up in previous answer but still I want to put a word for it. Flow that I implemented was like this: Invoking sender lambda of sqs -> sqs queue triggers reciever lambda of ses -> ses sends mail.

The answer to why it is to be done? To avoid bottlenek at SES. A Lambda function can process items from multiple queues (using one Lambda event source for each queue). You can use the same queue with multiple Lambda functions.

Other ways to maximize throughput of SES given in docs: https://docs.aws.amazon.com/ses/latest/dg/troubleshoot-throughput-problems.html

Upvotes: 2

Arafat Nalkhande
Arafat Nalkhande

Reputation: 11708

SES cannot fetch stuff from SQS. You will have to have a compute tier in between (either on EC2 or Lambda or some other server), which could poll the SQS and then call SES.

Scheduled Lambda can be ideal for this use case.

Out of curiosity, who is putting the message in SQS and do tou have any specific use case for putting the message in SQS. Why can't the routine that places the message on SQS, simply call the SES and get the email sent

Upvotes: 6

Related Questions