What is the difference between Amazon SNS and Amazon SQS?

后端 未结 6 731
广开言路
广开言路 2020-12-22 15:52

I don\'t understand when I would use SNS versus SQS, and why are they always coupled together?

6条回答
  •  情歌与酒
    2020-12-22 16:09

    In simple terms, SNS - sends messages to the subscriber using push mechanism and no need of pull. SQS - it is a message queue service used by distributed applications to exchange messages through a polling model, and can be used to decouple sending and receiving components.

    A common pattern is to use SNS to publish messages to Amazon SQS queues to reliably send messages to one or many system components asynchronously. Reference from https://aws.amazon.com/sns/faqs/

提交回复
热议问题