Skill 1.1.8
Write code to use messaging services
Key Concepts
With Amazon SQS, producers call SendMessage or SendMessageBatch (up to 10 messages). Consumers call ReceiveMessage, ideally with long polling, process each message and then call DeleteMessage using the receipt handle. A message that is not deleted reappears after the visibility timeout. FIFO queues also require a MessageGroupId and a deduplication ID unless content-based deduplication is enabled.
With Amazon SNS, publishers call Publish on a topic, adding message attributes that subscription filter policies can match. Lambda can consume both services directly, and for SQS triggers you can report partial batch failures so that only failed messages are retried.