Ravi Sir's Cards › AWS
Save to DynamoDB before SNS or after?
This interview card answers: Save to DynamoDB before SNS or after? Save first. If publish fails you still have the lead. Notify-only with no store loses messages during email outages. PutItem then sns.publish; log publish errors but still return 201 with messageId.
Read card text
What this card says
What it is
Save first. If publish fails you still have the lead.
Why it matters
Notify-only with no store loses messages during email outages.
How / example
PutItem then sns.publish; log publish errors but still return 201 with messageId.