Simple Notification Service vs Simple Queue Service

Simple Notification Service vs Simple Queue Service

Both SNS and SQS are messaging platforms. They serve different kind of requirements. The differences are in the way message is received and delivered, the guarantee of the message delivery are the key differences.

  • Delivery type:
    • SQS: First in First Out
    • SNS: Broadcast / topic-subscribers
  • Guarantee of delivery:
    • SQS:Ordered delivery, once delivery, undelivered message queues
    • SNS: One time at the worst case
  • Typical use cases
    • SQS: Asynchronous messages, emails, sms, push notifications etc
    • SNS: Broadcast messages

There are use cases, an application may use both based on the nature of the messaging.

This post is written as part of #WriteAPageADay campaign of BlogChatter