The following are the protocols SNS supports for subscription:
- AWS Lambda function: SNS topics allow us to add subscriptions for AWS Lambda. Any message published on SNS topic is delivered to the subscribed AWS Lambda so that it can process the message.
- AWS SQS: AWS SQS can be subscribed to an SNS topic. AWS SNS and SQS work in a similar pattern, with the only difference being that SNS follows a push mechanism whereas SQS follows a poll mechanism. From SNS, we can send messages to one or more SQS. There will be another application which will poll SQS to read messages from SQS and process ahead.
- HTTP/HTTPS: AWS SNS is able to send messages over HTTP/HTTPS using the POST method. While adding a subscription, it is mandatory that your HTTP/HTTPS endpoint is up and running, so that SNS will send the subscription confirmation URL. Using this subscription confirmation...