How to integrate Amazon SQS with Dynamodb

Can I send / push messages automatically in Amazon SQS on DynamoDB? I want to send my messages to SQS, and for some time I want to send this to DynamoDB. Another service should receive the DynamoDB table and send it as email using SES.

Please help me with this. I will use it for the purpose of notifying the user from the social network site.

Thanks.

+6
source share
4 answers

There is NO AWS mechanism for automatically publishing SQS messages to DynamoDB. You have to create some lambda code that retrieves SQS messages and writes them to DynamoDB or SES.

+3
source

Yes, I agree with Hyangelo, you can do this using the Simple Workflow Service (SWF).

SWF will provide you with a control function over your application that allows you to distribute and perform various services or tasks whenever you want.

Here is the link to the documentation: http://aws.amazon.com/swf/

+1
source

As a workflow system, how do you describe what you want, do you consider a simple Workflow service?

0
source

SQS cannot be processed without retrieving messages. You can use SWF to solve your use case or use SNS.

SNS binding <=> SQS is provided by AWS for free. Send your messages to SNS, bind SNS using the SQS & lambda function.

When you run the lambda function - you can create a DynamodB record and send it to another SNS2.

Bind SNS2 <=> SES, which will trigger the email.

Checkout: https://aws.amazon.com/premiumsupport/knowledge-center/lambda-sns-ses-dynamodb/

0
source

Source: https://habr.com/ru/post/1495334/


All Articles