We will experiment with SNS. Java coding is optional.
Steps:
-
Login and go to SNS Dashboard.
-
Click Create New Topic.
-
Provide a topic name (e.g. BuddyTopic) and Display name (e.g. BuddyTopic)
-
Click ‘Create Topic’
-
Note: Display name is mainly for SMS anc can be upto 10 characters only.
-
-
Select the topic and click on ‘Create Subscription’
-
Select Protocol as Email-JSON
-
Provide an email address
-
Click subscribe
-
A success message is shown that says, confirmation message will be sent to subscriber and once confirmed they will get notifications, and subscriptions will expire after 3 days if not confirme
-
-
Check email and confirm subscription.
-
Verify that the subscription id column changes from ‘PendingConfirmation’ to actual subscription id.
-
Publish a message
-
You may specify a TTL. TTL is the time to live in seconds. Message will be deleted if undelivered after TTL.
-
You can change the default message format for each protocol.
-
-
Verify the result in email.
-
(optional): Create a Java publisher and subscriber and verify pub/sub behaviour.
TODO:
-
Add the sample mail you get in email (as comments).
-
Attach your git project link for optional java publisher and subscriber (as comments).
Note: You will get redeemable points for every comment you add.
- heartin's blog
- Log in or register to post comments
Recent comments