Messaging Services: SQS & SNS

AWS Messaging Services
Share this page:

If you’ve just landed here, we’re doing a “Become a Cloud Architect” Unicorn Workshop by building a Unicorn Pursuit Web App step by step, and you’re more then welcome to join!

About Messaging Services: SQS & SNS

SQS

SQS is a distributed messaging system, used to decouple component from an application, so that they are independent. There are 2 types of queues:

  • Standard (default), best effort, message gets delivered at least once.
  • FIFO, no duplication, good for transactions such as banking.

SQS is a PULL web service.

SNS

Messaging service, sending (pushing) notifications to subscribers. You can use:

  • Email
  • SMS
  • Push directly to mobile device
  • Trigger a Lambda
  • HTTP endpoint
  • SQS queues

SNS uses Topics, that you need to subscribe to… from there, it’s PUSH.

SNS is a PUSH web service, that follows Pub/Sub paradigm.

SES is a Simple Email Service:

  • unlike SNS - it’s email only.
  • SES can trigger SNS or Lambda.
  • Can be used for both, incoming and outgoing emails.

Code

Deep Dive

Where to find more info




Last modified May 1, 2020: s3 done (627e93e)