Reading notes about code for my future reference.
SNS is a distributed publish-subscribe service
SQS is distributed queuing service.
SQS : Pull Mechanism — Consumers poll messages from SQS. SNS : Push Mechanism — SNS pushes messages to consumers.
SQS : Messages are persisted for some duration is no consumer available. The retention period value is from 1 minute to 14 days. The default is 4 days.
SNS : No persistence. Whichever consumer is present at the time of message arrival, get the message and the message is deleted. If no consumers available then the message is lost.
In a fanout pattern, using SNS you can send messages yo multiple subscribers and endpoints. This is also a reliable method.
It sends multiple notifications to different devices. It can leverge off of other services to deliever the notification.
It uses the First in First Out queue system to make a priority chain based off of the incoming traffic.