amazon-dynamodbaws-lambdamoonmail

MoonMail Missing recipients using createRecipient endpoint


I created 5,000 recipients in a list. These emails were success+{uniqueInt}@simulator.amazonses.com and bounce+{uniqueInt}@simulator.amazonses.com.

For some unknown reason, only 4,135 emails were added. I found this using:

aws dynamodb scan --table-name XXX-sentEmails --select "COUNT"

I found no exceptions in the logs:

aws logs filter-log-events
        --log-group-name /aws/lambda/XX-createRecipient
        --filter-pattern Exception
        --output text

Any ideas what could happens? Can DynamoDB reject records silently?


Solution

  • It could be because either you had duplicated emails or you run out of write capacity in DynamoDB. If you're using the createRecipient endpoint, then you're saving items one by one, which leads to a waste of DynamoDB resources. Try to import in bulk instead