how sqs and sns works?
SNS is a distributed publish-subscribe system. Messages are pushed to subscribers as and when they are sent by publishers to SNS. SQS is distributed queuing system. ... Polling inherently introduces some latency in message delivery in SQS unlike SNS where messages are immediately pushed to subscribers.