DEV Community

Cover image for ๐Ÿ“… Day 15 | AWS SNS & SQS โ€” Messaging Services in AWS ๐Ÿš€
Sudarshan Yadav
Sudarshan Yadav

Posted on

๐Ÿ“… Day 15 | AWS SNS & SQS โ€” Messaging Services in AWS ๐Ÿš€

๐Ÿ“… Day 15 | AWS SNS & SQS โ€” Messaging Services in AWS ๐Ÿš€

Today, I learned about AWS SNS (Simple Notification Service) and AWS SQS (Simple Queue Service), which are core messaging services used in AWS & DevOps architectures for communication between applications and services.
These services help in building decoupled, scalable, and reliable systems.

๐Ÿ”” AWS SNS & ๐Ÿ“ฆ AWS SQS (DevOps โ€“ Point to Point)

๐Ÿ”” AWS SNS (Simple Notification Service)

Service Type

  • Push-based messaging service

Main Purpose

  • Used to send notifications and alerts

Messaging Model

  • Publish / Subscribe (Pub-Sub)

Flow

Delivery

  • Message is pushed automatically to subscribers

Subscribers Can Be

  • Email
  • SMS
  • AWS Lambda
  • HTTP / HTTPS
  • SQS

Message Storage

  • SNS does not store messages
  • If the subscriber is unavailable, the message is lost

Use in DevOps

  • CloudWatch alarms
  • Deployment notifications
  • System failure alerts

Scalability

  • Fully managed and highly scalable

Interview One Line

SNS is used to send real-time notifications to multiple subscribers.


๐Ÿ“ฆ AWS SQS (Simple Queue Service)

Service Type

  • Pull-based message queue service

Main Purpose

  • Used to decouple applications

Messaging Model

  • Queue-based

Flow

Message Retrieval

  • Consumer polls (pulls) messages from the queue

Message Storage

  • Messages are stored safely until processed

Visibility Timeout

  • Message is hidden while being processed

Types of Queues

  • Standard Queue

    • High throughput
    • At-least-once delivery
  • FIFO Queue

    • Ordered processing
    • Exactly-once delivery

Use in DevOps

  • Background jobs
  • Auto Scaling workloads
  • CI/CD task handling

Interview One Line

SQS is used to store messages and process them asynchronously.


๐Ÿ”„ SNS vs SQS โ€“ Point to Point Difference

Feature SNS SQS
Message Type Push Pull
Purpose Send notifications Store & process messages
Consumers Multiple subscribers One consumer per message
Storage No Yes
Use Case Alerts & notifications Task & job processing

๐Ÿ” SNS + SQS Together (DevOps Use Case)

  • Application sends message to SNS
  • SNS topic fans out the message
  • Multiple SQS queues receive the message
  • Each service processes independently

๐Ÿ‘‰ Used in Microservices Architecture & CI/CD Pipelines


โญ Final Interview Line

SNS is for sending messages, SQS is for queuing messages until they are processed.

Thank You

๐Ÿ”— Connect With Me

๐ŸŒ Platform ๐Ÿ”— Link
๐Ÿ™ GitHub https://lnkd.in/d2F3JPa3
โœ๏ธ Dev.to Blog https://lnkd.in/dNtgqAME
๐Ÿ’ผ LinkedIn https://lnkd.in/d3NctxFT
๐Ÿ“„ Resume (Google Drive) https://lnkd.in/dHDNsd_D

๐Ÿ”– Hashtags

AWS #DevOps #CloudComputing #AWSLearning #EBS #VolumeMounting #DataPersistence #LearningJourney #CareerGrowth #DevOpsEngineer #AWSCommunity

Top comments (0)