SlideShare a Scribd company logo
2
Most read
7
Most read
11
Most read
AWS SNS/SQS
DURGESH VAISHNAV
SNS
“Amazon Simple Notification Service (Amazon SNS) is a fast, flexible, fully
managed push notification service that lets you send individual messages or to
fan-out messages to large numbers of recipients”
Amazon SNS makes it simple and cost effective to send push notifications to
mobile device users, email recipients or even send messages to other
distributed services.
SNS
SNS
◦ Deliver messages instantly to applications or users and eliminate polling in your apps.
◦ Scale as you needs grow
◦ Send messages to individual devices or broadcast to multiple destinations at once.
◦ SDK available in iOS, Android, Java, Python, PHP, Node.js or .NET.
◦ Send notification to Apple, Android and other mobile devices and also destinations like SQS,
Lambda and email address SMS and http endpoints.
◦ You can get delivery status information via cloud watch success and failure rates.
SNS
Developers can get started with Amazon SNS by using just three APIs:
CreateTopic,
Subscribe, and
Publish.
Additional APIs are available, which provide more advanced functionality.
SNS
Supported Transport protocols for subscribers :
◦ “HTTP”, “HTTPS” (POST)
◦ ”Email”, “Email-JSON”
◦ “SQS” – Note that FIFO queues are not currently supported.
◦ “SMS Text Messages”
SQS
“Amazon Simple Queue Service (SQS) is a fast, reliable, scalable, fully managed
message queuing service.”
“Amazon SQS can be used to transmit any volume of data.”
SQS
The diagram shows that a single queue, which has its messages (labeled A-E), is redundantly saved
across multiple Amazon SQS servers.
SQS
Features:
◦ Reliable
◦ It runs within Amazon’s high-availability data centers.
◦ Simple
◦ Only three APIs to start: SendMessage, ReceiveMessage, and DeleteMessage
◦ Flexible
◦ Standard queues for High throughput and FIFO queues for strict ordering
◦ Scalable
◦ Automatically scales and unlimited queue and messages available
◦ Secure and Inexpensive
◦ Similar like other AWS Products
SQS
..more
◦ Designed to provide high durability.
◦ Hold messages until you explicitly delete them
◦ Unlimited backlog up to 14 days
◦ Amazon CloudWatch metrics and alerts for queue depth, message rate and more.
◦ Payload size up to 256KB and more
◦ Message batching for higher throughput and reduced cost
◦ Support long polling for reduced cost and latency
◦ Cross–origin resource sharing support
SQS
Javascript SDK
var sqs = new AWS.SQS();
var params = { QueueName: 'STRING_VALUE', /* required */
Attributes: { someKey: 'STRING_VALUE', /* anotherKey: ... */ }
};
sqs.createQueue(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
SQS
Types Of Queue
Standard Queue FIFO Queues
Unlimited number of transactions per
second
First-in-first-out delivery, limited to 300
transactions per second
Guarantee that a message is delivered at
least once
Exactly-once processing
Ex: Schedule multiple entries to be added
to a database.
Ex: Prevent a student from enrolling in a
course before registering for an account.
SQS
Configuration
Question

More Related Content

PPTX
Amazon_SNS.pptx
PDF
Auto scaling using Amazon Web Services ( AWS )
PPTX
AWS Cloud Watch
PDF
Data modelling 101
PPTX
Amazon SQS overview
PPTX
Sephora in japan
PPTX
AWS Elastic Compute Cloud (EC2)
PPTX
AWS Simple Storage Service (s3)
Amazon_SNS.pptx
Auto scaling using Amazon Web Services ( AWS )
AWS Cloud Watch
Data modelling 101
Amazon SQS overview
Sephora in japan
AWS Elastic Compute Cloud (EC2)
AWS Simple Storage Service (s3)

What's hot (20)

PPTX
AWS CloudWatch
PPTX
AWS Lambda
PDF
AWS RDS
ODP
Introduction to Amazon Web Services
PPTX
PDF
Aws cloud watch
PPTX
Introduction to Amazon Web Services (AWS)
PPTX
AWS Lambda Features and Uses
PPTX
AWS Route53 Fundamentals
PDF
Sqs and loose coupling
PPTX
What is AWS?
PPTX
Elastic Compute Cloud (EC2) on AWS Presentation
PDF
AWS Lambda
PDF
AWS EC2
PPTX
Introduction to Docker - 2017
PPTX
Aws overview
PPTX
PDF
Introduction to Azure
PDF
AWS EBS
AWS CloudWatch
AWS Lambda
AWS RDS
Introduction to Amazon Web Services
Aws cloud watch
Introduction to Amazon Web Services (AWS)
AWS Lambda Features and Uses
AWS Route53 Fundamentals
Sqs and loose coupling
What is AWS?
Elastic Compute Cloud (EC2) on AWS Presentation
AWS Lambda
AWS EC2
Introduction to Docker - 2017
Aws overview
Introduction to Azure
AWS EBS
Ad

Similar to AWS SQS SNS (20)

PPTX
AWS Serverless key services
PPTX
Mule sqs
PDF
Cloud Computing With Amazon Web Services, Part 4: Reliable Messaging With SQS
PDF
AWS (Amazon Web Services).pdf
PDF
Amazon Web Service.pdf
PDF
AWS Application Services Lambda, SES, SNS, SQS, SWF
PPTX
AWS Serverless Introduction
PPTX
AWS Serverless Introduction
PDF
PDF
UNIT V.pdf
PPTX
Cloud computing 2
PPTX
amazon web service PPT presentation.pptx
PPTX
Cloud computing & aws concepts
PPTX
Unit 6.pptx
PPTX
Module 2 of cloud computing of CSE student. hope this helps in your subject
PPTX
CLOUD COMPUTING.pptx
PDF
Message queues
PPTX
AWS Messaging
PDF
윈도 닷넷 개발자를 위한 솔루션 클라우드 데브옵스 솔루션
PPT
Sameer Mitter | What are Amazon Web Services (AWS)
AWS Serverless key services
Mule sqs
Cloud Computing With Amazon Web Services, Part 4: Reliable Messaging With SQS
AWS (Amazon Web Services).pdf
Amazon Web Service.pdf
AWS Application Services Lambda, SES, SNS, SQS, SWF
AWS Serverless Introduction
AWS Serverless Introduction
UNIT V.pdf
Cloud computing 2
amazon web service PPT presentation.pptx
Cloud computing & aws concepts
Unit 6.pptx
Module 2 of cloud computing of CSE student. hope this helps in your subject
CLOUD COMPUTING.pptx
Message queues
AWS Messaging
윈도 닷넷 개발자를 위한 솔루션 클라우드 데브옵스 솔루션
Sameer Mitter | What are Amazon Web Services (AWS)
Ad

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPT
Teaching material agriculture food technology
PPTX
Big Data Technologies - Introduction.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Approach and Philosophy of On baking technology
Machine learning based COVID-19 study performance prediction
Advanced methodologies resolving dimensionality complications for autism neur...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Spectral efficient network and resource selection model in 5G networks
Building Integrated photovoltaic BIPV_UPV.pdf
Encapsulation theory and applications.pdf
Modernizing your data center with Dell and AMD
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25 Week I
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Teaching material agriculture food technology
Big Data Technologies - Introduction.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Diabetes mellitus diagnosis method based random forest with bat algorithm
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation_ Review paper, used for researhc scholars
Approach and Philosophy of On baking technology

AWS SQS SNS

  • 2. SNS “Amazon Simple Notification Service (Amazon SNS) is a fast, flexible, fully managed push notification service that lets you send individual messages or to fan-out messages to large numbers of recipients” Amazon SNS makes it simple and cost effective to send push notifications to mobile device users, email recipients or even send messages to other distributed services.
  • 3. SNS
  • 4. SNS ◦ Deliver messages instantly to applications or users and eliminate polling in your apps. ◦ Scale as you needs grow ◦ Send messages to individual devices or broadcast to multiple destinations at once. ◦ SDK available in iOS, Android, Java, Python, PHP, Node.js or .NET. ◦ Send notification to Apple, Android and other mobile devices and also destinations like SQS, Lambda and email address SMS and http endpoints. ◦ You can get delivery status information via cloud watch success and failure rates.
  • 5. SNS Developers can get started with Amazon SNS by using just three APIs: CreateTopic, Subscribe, and Publish. Additional APIs are available, which provide more advanced functionality.
  • 6. SNS Supported Transport protocols for subscribers : ◦ “HTTP”, “HTTPS” (POST) ◦ ”Email”, “Email-JSON” ◦ “SQS” – Note that FIFO queues are not currently supported. ◦ “SMS Text Messages”
  • 7. SQS “Amazon Simple Queue Service (SQS) is a fast, reliable, scalable, fully managed message queuing service.” “Amazon SQS can be used to transmit any volume of data.”
  • 8. SQS The diagram shows that a single queue, which has its messages (labeled A-E), is redundantly saved across multiple Amazon SQS servers.
  • 9. SQS Features: ◦ Reliable ◦ It runs within Amazon’s high-availability data centers. ◦ Simple ◦ Only three APIs to start: SendMessage, ReceiveMessage, and DeleteMessage ◦ Flexible ◦ Standard queues for High throughput and FIFO queues for strict ordering ◦ Scalable ◦ Automatically scales and unlimited queue and messages available ◦ Secure and Inexpensive ◦ Similar like other AWS Products
  • 10. SQS ..more ◦ Designed to provide high durability. ◦ Hold messages until you explicitly delete them ◦ Unlimited backlog up to 14 days ◦ Amazon CloudWatch metrics and alerts for queue depth, message rate and more. ◦ Payload size up to 256KB and more ◦ Message batching for higher throughput and reduced cost ◦ Support long polling for reduced cost and latency ◦ Cross–origin resource sharing support
  • 11. SQS Javascript SDK var sqs = new AWS.SQS(); var params = { QueueName: 'STRING_VALUE', /* required */ Attributes: { someKey: 'STRING_VALUE', /* anotherKey: ... */ } }; sqs.createQueue(params, function (err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
  • 12. SQS Types Of Queue Standard Queue FIFO Queues Unlimited number of transactions per second First-in-first-out delivery, limited to 300 transactions per second Guarantee that a message is delivered at least once Exactly-once processing Ex: Schedule multiple entries to be added to a database. Ex: Prevent a student from enrolling in a course before registering for an account.