Publishing a message will publish the message to a topic and then push the message to subscribers. A topic's subscribers can be on different protocols and SNS knows the format to deliver messages as per the endpoint's protocol. So from the publisher side, it will publish the data in a unified way (subject and message) which SNS understands and SNS then delivers messages as per the endpoint's format.
Note
We can also publish messages to specific mobile devices by passing EndpointArn
in the TargetArn
parameters.
Go to AWS SNS Management Console at https://console.aws.amazon.com/sns/v2/home and perform the following steps:
Figure 8.9: Topic details
- Click
Publish to topic
:
Figure 8.10: Publishing to topic
Provide details as follows: